Thread: plpgsql : adding record variable to table

plpgsql : adding record variable to table

From
thomas veymont
Date:
hi,

say I have the following (simplified for discussion) pl/pgsql function:

FUNCTION myfunction ( ...)  RETURNS TABLE ( elem1 integer, elem2 text, ...)
DECLAREg RECORD
BEGIN FOR g in SELECT colum1, column2 FROM someTable   LOOP