Re: using pl/pgsql - Mailing list pgsql-novice

From Josh Berkus
Subject Re: using pl/pgsql
Date
Msg-id 200305090827.04764.josh@agliodbs.com
Whole thread Raw
In response to using pl/pgsql  (Antoine <asolomon15@nyc.rr.com>)
List pgsql-novice
Antoine,

> Hello all I would like to create a pl/pgsql function that can handle a
> query that will work on different schemas.

Shouldn't be a problem if the function is set to run as the superuser.

> But I am not sure about the
> RECORD type and if I can return more then one row.   could PL/pgsql
> return more then 1 row from the database.

Starting with version 7.3.x, yes.  See:
http://techdocs.postgresql.org/guides/SetReturningFunctions

--
Josh Berkus
Aglio Database Solutions
San Francisco


pgsql-novice by date:

Previous
From: Dani Oderbolz
Date:
Subject: Re: JOINS...
Next
From: Terence Ng
Date:
Subject: Multilingual database