Re: [HACKERS] Get OID of just inserted record

From: Karel Zak - Zakkr <zakkr(at)zf(dot)jcu(dot)cz>
To: Andrij Korud <akorud(at)polynet(dot)lviv(dot)ua>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Get OID of just inserted record
Date: 1999-11-01 17:39:09
Message-ID: Pine.LNX.3.96.991101182941.29853A-100000@ara.zf.jcu.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 1 Nov 1999, Andrij Korud wrote:

> Hi,
> Is there any way to obtain an OID of record just inserted by SPI_execp?
>

SELECT max(oid) ... which is not implement now :-)

If is any way for this is prabably good idea add this to SPI API (as
SPI_oidStatus()). What?

Karel

------------------------------------------------------------------------------
Karel Zak <zakkr(at)zf(dot)jcu(dot)cz> http://home.zf.jcu.cz/~zakkr/

Kim Project: http://home.zf.jcu.cz/~zakkr/kim/ (process manager)
FTP: ftp://ftp2.zf.jcu.cz/users/zakkr/ (C/ncurses/PgSQL)
------------------------------------------------------------------------------

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1999-11-01 18:00:21 Re: [HACKERS] sort on huge table
Previous Message Andrij Korud 1999-11-01 17:20:01 Re: [HACKERS] Whos idea was this