Re: [HACKERS] Oid Questions
Bruce Momjian <maillist@candle.pha.pa.us>
From: Bruce Momjian <maillist@candle.pha.pa.us>
To: mrogan@fpelectronics.com
Cc: hackers@postgreSQL.org, zeev@php.net
Date: 1998-01-22T21:25:19Z
Lists: pgsql-hackers
> > > Hello. > > Zeev Suraski <zeev@php.net> is making some changes to the PostgreSQL code > in PHP3 so that the Oid is returned in the pg_exec funtion if it is an > insert. > > What is the size of the Oid (unsigned, signed etc) and will it ever be > zero. typedef unsigned int Oid; A zero value for OID is reserved for an Invalid OID. If it returns a zero, I would pass it back to the application. You may want to call libpq's PQoidStatus() to get this information. That is a new function for 6.2.1. -- Bruce Momjian maillist@candle.pha.pa.us