Attached is an update to contrib/tablefunc. It introduces a new
authorBruce Momjian
Mon, 2 Sep 2002 05:44:05 +0000 (05:44 +0000)
committerBruce Momjian
Mon, 2 Sep 2002 05:44:05 +0000 (05:44 +0000)
commit6aa4482f2f520bb06fa1016eef3960f80bf88bdf
treee9fe2fdb9b4caf14c42d2fc8d177cf56f9366bb7
parent9fd842c4b20d55746d34a96bc6baec7d2242c2cf
Attached is an update to contrib/tablefunc. It introduces a new
function, connectby(), which can serve as a reference implementation for

the changes made in the last few days -- namely the ability of a
function to return an entire tuplestore, and the ability of a function
to make use of the query provided "expected" tuple description.

Description:

   connectby(text relname, text keyid_fld, text parent_keyid_fld,
     text start_with, int max_depth [, text branch_delim])
   - returns keyid, parent_keyid, level, and an optional branch string
   - requires anonymous composite type syntax in the FROM clause. See
     the instructions in the documentation below.

Joe Conway
contrib/tablefunc/README.tablefunc
contrib/tablefunc/tablefunc-test.sql
contrib/tablefunc/tablefunc.c
contrib/tablefunc/tablefunc.h
contrib/tablefunc/tablefunc.sql.in