Re: OID Usage

From: Bo Lorentsen <bl(at)netgroup(dot)dk>
To: Michael Fuhr <mike(at)fuhr(dot)org>
Cc: "pgsql-general postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: OID Usage
Date: 2005-01-14 18:39:16
Message-ID: 41E811D4.8040403@netgroup.dk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Michael Fuhr wrote:

>You could query the system catalogs for the table's primary key,
>either on the client side or in a server-side function. The
>pg_attrdef table even has the default value's nextval() expression
>with the sequence name, which could be converted into a currval()
>call.
>
>
This is not a bad ideer, I will take a look in the "pg_attrdef" table to
see what I can find, and some good caching may help alot too :-)

But, does this mean that the oid sollution I have decriped (and
implimentet) have some unknown problems, or will oid's become obsolete
in the near future ?

/BL

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bo Lorentsen 2005-01-14 18:44:18 Re: OID Usage
Previous Message Martijn van Oosterhout 2005-01-14 18:38:39 Re: [HACKERS] Much Ado About COUNT(*)