Re: [HACKERS] Oid Questions - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] Oid Questions
Date
Msg-id 199801222125.QAA14383@candle.pha.pa.us
Whole thread Raw
In response to Oid Questions  ("Michael J. Rogan" <mrogan@fpelectronics.com>)
Responses Re: [HACKERS] Oid Questions
List 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

pgsql-hackers by date:

Previous
From: "Michael J. Rogan"
Date:
Subject: Oid Questions
Next
From: The Hermit Hacker
Date:
Subject: Re: [HACKERS] Current open 6.3 issues