pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joel Burton <joel@joelburton.com>
To: dan@langille.org
Cc: pgsql-admin@postgresql.org
Subject: Re: SERIAL Field
Date: Mon, 6 May 2002 12:43:24 -0400
Message-ID: <JGEPJNMCKODMDHGOBKDNOEPLCMAA.joel@joelburton.com> (raw)
In-Reply-To: <20010507124341.00EE03F43@bast.unixathome.org>

> -----Original Message-----
> From: Dan Langille [mailto:dan@langille.org]
> Sent: Monday, May 06, 2002 12:41 PM
> To: Joel Burton
> Cc: pgsql-admin@postgresql.org
> Subject: Re: [ADMIN] SERIAL Field
>
> > In any event, inserting then using currval() is the standard practice
> > around here, and it works great. Nothing fishy at all here,
> nothing to see,
> > move on.
>
> Why is that "less risk"?

It's not; nextval() is just fine. I was half asleep and thinking, I think,
of another database when I wrote that.

"You say nextval() + write, I say write + currval()..."

J.

Joel BURTON | joel@joelburton.com | joelburton.com | aim: wjoelburton
Knowledge Management & Technology Consultant




view thread (12+ messages)  latest in thread

Message-ID: <JGEPJNMCKODMDHGOBKDNOEPLCMAA.joel@joelburton.com>
Permalink:  ../JGEPJNMCKODMDHGOBKDNOEPLCMAA.joel@joelburton.com/
Also on:    postgresql.org/message-id/JGEPJNMCKODMDHGOBKDNOEPLCMAA.joel@joelburton.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: joel@joelburton.com, dan@langille.org
  Subject: Re: SERIAL Field
  In-Reply-To: <JGEPJNMCKODMDHGOBKDNOEPLCMAA.joel@joelburton.com>
  References: <20010507124341.00EE03F43@bast.unixathome.org> <JGEPJNMCKODMDHGOBKDNOEPLCMAA.joel@joelburton.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox