[postgis-devel] RETURNS TABLE - SRF

Sandro Santilli strk at keybit.net
Mon May 2 06:31:10 PDT 2011


Is there anything I should know about set-returning functions
in terms of policies before starting to implement one ?

So far I've been creating types and returning SETOF <created_type>,
like with ST_Dump for instance. But since 8.4 PostgreSQL also supports
anonymous TABLE returns, which _might_ be a better choice to reduce
definition.

So, are there known reasons _not_ to use the 8.4 RETURNS TABLE syntax ?

--strk; 

  ()   Free GIS & Flash consultant/developer
  /\   http://strk.keybit.net/services.html



More information about the postgis-devel mailing list