Search Postgresql Archives

Return Multiple Rows from Store Function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi ,

Returning multiple rows from store functions using "RETURNS TABLE" and RETURN QUERY.  The results set may have more than 50k records. Does it give any performance issues related to memory? if yes  how to avoid it


CREATE OR REPLACE FUNCTION funcq(COL1 character varying)
RETURNS TABLE 
( a VARCHAR,
  b VARCHAR,
  c varchar)
 AS $$

BEGIN
    
      RETURN QUERY SELECT a,b,c from table1 where C= COL1;

END;
$$
LANGUAGE plpgsql;


--
Thanks & Regards,
Brahmeswara Rao J.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux