per suggestion from Tom Lane. This fixes crash-bug reported by Stefan Schwarzer.
"contrib/tablefunc/tablefunc-test.sql", and adds a standard regression test suite to contrib/tablefunc. Joe Conway