pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Schmidt <MichaelMSchmidt@msn.com>
To: Kris Jurka <books@ejurka.com>
Cc: Mark Lewis <mark.lewis@mir3.com>
Cc: Andrei Ilitchev <andrei.ilitchev@oracle.com>
Cc: pgsql-jdbc@postgresql.org
Cc: Marina Vatkina <Marina.Vatkina@Sun.COM>
Subject: Re: Fw: postgresql experts please help
Date: Thu, 18 Oct 2007 14:20:06 -0600
Message-ID: <BAYC1-PASMTP06B82BA1B0737436579E17A39E0@CEZ.ICE> (raw)
In-Reply-To: <Pine.BSO.4.64.0710181402410.25640@leary.csoft.net>
References: <001101c81189$2f3f52d0$4c349c0a@ca.oracle.com>
	<1192728857.6447.82.camel@archimedes>
	<BAYC1-PASMTP1354B178A3644A03954E90A39E0@CEZ.ICE>
	<Pine.BSO.4.64.0710181402410.25640@leary.csoft.net>

Kris Jurka wrote:
> 
> 
> On Thu, 18 Oct 2007, Michael Schmidt wrote:
> 
>> Also, from my read of the documentation and experience, you have to 
>> call nextval before you can call currval in the transaction.
>>
> 
> Right, but the insert should trigger the default on the serial column to 
> call nextval behind the scenes.
> 
> Kris Jurka
> 
Exactly, because nextval is the default for the sequence.  However, if 
you do a transaction in which you don't do an insert, then currval won't 
be available.

Michael Schmidt



view thread (19+ messages)  latest in thread

Message-ID: <BAYC1-PASMTP06B82BA1B0737436579E17A39E0@CEZ.ICE>
Permalink:  ../BAYC1-PASMTP06B82BA1B0737436579E17A39E0@CEZ.ICE/
Also on:    postgresql.org/message-id/BAYC1-PASMTP06B82BA1B0737436579E17A39E0@CEZ.ICE

 · 

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-jdbc@postgresql.org
  Cc: MichaelMSchmidt@msn.com, books@ejurka.com, mark.lewis@mir3.com, andrei.ilitchev@oracle.com, Marina.Vatkina@Sun.COM
  Subject: Re: Fw: postgresql experts please help
  In-Reply-To: <BAYC1-PASMTP06B82BA1B0737436579E17A39E0@CEZ.ICE>
  References: <001101c81189$2f3f52d0$4c349c0a@ca.oracle.com> <1192728857.6447.82.camel@archimedes> <BAYC1-PASMTP1354B178A3644A03954E90A39E0@CEZ.ICE> <Pine.BSO.4.64.0710181402410.25640@leary.csoft.net> <BAYC1-PASMTP06B82BA1B0737436579E17A39E0@CEZ.ICE>

* 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