Re: [GENERAL] usage of pg_get_functiondef() -- SQL state 42809

2012-03-19 Thread Tom Lane
writes: > -- This blows up. -- SQL state: 42809 -- ERROR: "array_agg" is an aggregate > function > select > TRG.tgname, TFX.proname, pg_get_functiondef(TFX.oid) as fdef > from > pg_trigger TRG > inner join pg_proc TFX on TFX.oid = TRG.tgfoid > where > TRG.tgisinternal = true >

[GENERAL] usage of pg_get_functiondef() -- SQL state 42809

2012-03-19 Thread david.sahagian
-- This works. select TRG.tgname, TFX.proname, pg_get_functiondef(TFX.oid) as fdef from pg_trigger TRG inner join pg_proc TFX on TFX.oid = TRG.tgfoid where TRG.tgisinternal = true -- This blows up. -- SQL state: 42809 -- ERROR: "array_agg" is an aggregate function select T