Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 363E04766F5 for ; Mon, 6 May 2002 13:20:29 -0400 (EDT) Received: from temp.joelburton.com (unknown [209.190.238.101]) by postgresql.org (Postfix) with ESMTP id 4A74B475EF6 for ; Mon, 6 May 2002 12:43:19 -0400 (EDT) Received: from joeltf0d13cyyp (unknown [209.190.238.100]) by temp.joelburton.com (Postfix) with SMTP id 7BCAF2B95F; Mon, 6 May 2002 12:47:32 -0400 (EDT) From: "Joel Burton" To: Cc: Subject: Re: SERIAL Field Date: Mon, 6 May 2002 12:43:24 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: <20010507124341.00EE03F43@bast.unixathome.org> X-Archive-Number: 200205/35 X-Sequence-Number: 4210 > -----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