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

PQoidValue have no use?

From: songsubosongtebo songsubosongtebo <songsubosongtebo(at)yahoo(dot)com>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: PQoidValue have no use?
Date: 2004-11-29 12:16:35
Message-ID: (view raw or whole thread)
Lists: pgsql-interfaces
I posted this to pgsql-generl(at)postgresql(dot)org
yesterday, and wait someone can enlighten me.

The oid may overlap; Insert may fail if i create a
primary key on the oid column(Thank Richard Huxton and
Michael Glaesemann). So I can't locate the single
record I Insert by the oid obtained from PQoidValue.
Then, PQoidValue have no use?

I can use currtid2 to get the ctid after Delete. But
in this method the speed is slow down by the extra sql
query(SELECT currtid2('a'::text,...). I am very
pleasure if the ctid is not changed after Delete or a
function such as 'PQctidValue' can be found in

How to get ctid after Insert?

I want my code can deal with any table, so I can't add
addtional primary key on tables.


Do You Yahoo!?
登記免費的 中文電子郵件 @
Get your free address at

pgsql-interfaces by date

Next:From: Dave CramerDate: 2004-11-29 17:47:27
Subject: Aubit 4GL for postgresql
Previous:From: Bruce MomjianDate: 2004-11-29 01:56:49
Subject: Re: Borland c++ compile problems

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