Re: [SQL] Looking for information on PostgreSQL Stored Procedures

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Foster, Stephen" <stephenlfoster(at)comcast(dot)net>
Cc: "'Michael Fuhr'" <mike(at)fuhr(dot)org>, pgsql-general(at)postgresql(dot)org, pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] Looking for information on PostgreSQL Stored Procedures
Date: 2005-12-11 18:08:06
Message-ID: 17602.1134324486@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

"Foster, Stephen" <stephenlfoster(at)comcast(dot)net> writes:
> WHILE (--Lost on variable name for end of query;
> EmptyQueryResponse <> 0? --)

WHILE FOUND
LOOP
...
END LOOP

Although as Michael mentioned, this is all the hard way; any experienced
plpgsql programmer would forget the cursor entirely and just write a
FOR-loop.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tobias Bußmann 2005-12-11 20:16:15 Re: Winbashing
Previous Message Foster, Stephen 2005-12-11 18:07:26 Re: [SQL] Looking for information on PostgreSQL Stored Procedures

Browse pgsql-sql by date

  From Date Subject
Next Message Premsun Choltanwanich 2005-12-13 08:54:49 lo function changed in PostgreSQL 8.1.1
Previous Message Foster, Stephen 2005-12-11 18:07:26 Re: [SQL] Looking for information on PostgreSQL Stored Procedures