how to loop until eof in a cursor with pgsql - Mailing list pgsql-general

From Thomas Radnetter
Subject how to loop until eof in a cursor with pgsql
Date
Msg-id 20136.1118158808@www6.gmx.net
Whole thread Raw
List pgsql-general
hi folks,

any idea how to loop through a cursor until it's eof?

i'll try to do it this way:

declare cursor ..... (with param)


open cursor .... (param);
fetch into record ....

while found
 ... anything here
 fetch into record
end loop



am i right? can not try it at the moment.

any suggestions?

thanx,
tom

--
Geschenkt: 3 Monate GMX ProMail gratis + 3 Ausgaben stern gratis
++ Jetzt anmelden & testen ++ http://www.gmx.net/de/go/promail ++

pgsql-general by date:

Previous
From: Phil Endecott
Date:
Subject: Re: CPU-intensive autovacuuming
Next
From: John Barham
Date:
Subject: Recovery when old WAL segment has been overwritten?