Skip site navigation (1) Skip section navigation (2)

Re: 8.1, OID's and plpgsql

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: "Uwe C(dot) Schroeder" <uwe(at)oss4u(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: 8.1, OID's and plpgsql
Date: 2005-12-01 20:37:09
Message-ID: 20051201203709.GB1287@svana.org (view raw or flat)
Thread:
Lists: pgsql-generalpgsql-hackers
On Thu, Dec 01, 2005 at 09:01:05AM -0800, Uwe C. Schroeder wrote:
> Now there's the issue with stored procs. A usual construct would be to
> ...
> ...
> INSERT xxxxxx;
> GET DIAGNOSTICS lastoid=RESULT_OID;
> SELECT .... oid=lastoid;
> ....
> ....
> 
> Is there anything one could sanely replace this construct with?

currval()?

Have a nice day,
-- 
Martijn van Oosterhout   <kleptog(at)svana(dot)org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

In response to

pgsql-hackers by date

Next:From: Bruce MomjianDate: 2005-12-01 20:37:22
Subject: Re: [HACKERS] Strange interval arithmetic
Previous:From: Greg StarkDate: 2005-12-01 20:31:41
Subject: Re: Strange interval arithmetic

pgsql-general by date

Next:From: Poul Møller HansenDate: 2005-12-01 20:51:15
Subject: Slow COUNT
Previous:From: Kris JurkaDate: 2005-12-01 20:36:45
Subject: Re: information_schema._pg_keypositions() in 8.1???

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group