Re: Cursors in plpgsql - Mailing list pgsql-sql

From Josh Berkus
Subject Re: Cursors in plpgsql
Date
Msg-id web-40638@davinci.ethosmedia.com
Whole thread Raw
In response to Cursors in plpgsql  ("Preeti Kamble" <preeti.kamble@wipro.com>)
List pgsql-sql
Preeti,

> Is there a command in plpgsql similar to  %NOTFOUND of oracle?

Cursors are not currently supported for PL/pgSQL.  There are plans to
include them for and upcoming version of Postgres.  But dont' wait your
application on it.

> i want to write a load script which takes each row from the temporary
> table, do some processing and insert into actual tables. Any idea how
> i
> can accomplish this???

Yes.  Please see my post from last week called: "Re: [SQL] Calling plSQL
functions".

-Josh Berkus

______AGLIO DATABASE SOLUTIONS___________________________                                      Josh Berkus Complete
informationtechnology      josh@agliodbs.com  and data management solutions       (415) 565-7293 for law firms, small
businesses       fax 621-2533   and non-profit organizations.      San Francisco
 


pgsql-sql by date:

Previous
From: "Josh Berkus"
Date:
Subject: Re: Re: Using Random Sequence as Key
Next
From: Rini Dutta
Date:
Subject: Re: [GENERAL] drastic reduction in speed of inserts as the table grows