Re: Using oids

From: Dennis Gearon <gearond(at)fireserve(dot)net>
To: Oliver Elphick <olly(at)lfix(dot)co(dot)uk>
Cc: Martijn van Oosterhout <kleptog(at)svana(dot)org>, pgsql-general(at)postgresql(dot)org
Subject: Re: Using oids
Date: 2003-09-03 15:46:42
Message-ID: 3F560CE2.3020004@fireserve.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Why is that, anyway, and why should it be?

Oliver Elphick wrote:

>On Wed, 2003-09-03 at 12:19, Martijn van Oosterhout wrote:
>
>
>>If I were doing it would extract the primary key of each table on startup
>>and then change that one line of code to:
>>
>>os << "SELECT * FROM " << sTable << " WHERE "
>> << prikey << " = currval('" << sTable << "_" << prikey << "_seq')";
>>
>>
>
>You cannot use currval() until you have used nextval() on the same
>sequence in the same session.
>
>
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dennis Gearon 2003-09-03 15:50:18 Re: What is the good equivalent for ENUM ?
Previous Message Dennis Gearon 2003-09-03 15:43:37 Re: Using oids

Browse pgsql-hackers by date

  From Date Subject
Next Message Merlin Moncure 2003-09-03 15:59:59 Re: Win32 native port
Previous Message Dennis Gearon 2003-09-03 15:43:37 Re: Using oids