pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Kris Jurka <books@ejurka.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: Fri, 19 Oct 2007 13:09:49 +1300
Message-ID: <4717F5CD.8070603@opencloud.com> (raw)
In-Reply-To: <Pine.BSO.4.64.0710181927161.5403@leary.csoft.net>
References: <001101c81189$2f3f52d0$4c349c0a@ca.oracle.com>
	<Pine.BSO.4.64.0710181343220.25640@leary.csoft.net>
	<00d601c811b7$47c1a6e0$4c349c0a@ca.oracle.com>
	<Pine.BSO.4.64.0710181506040.30980@leary.csoft.net>
	<011701c811ca$03cea740$4c349c0a@ca.oracle.com>
	<Pine.BSO.4.64.0710181927161.5403@leary.csoft.net>

Kris Jurka wrote:

> Both of these problems are 
> solved by using pg_get_serial_sequence, which should perhaps be 
> mentioned more prominently in the documentation.

Alternatively if you really do want a particular sequence name rather 
than letting SERIAL pick one for you, you can use an explicit CREATE 
SEQUENCE and DEFAULT nextval('whatever') yourself. This is essentially 
what SERIAL does under the covers anyway. See 
http://www.postgresql.org/docs/8.2/static/datatype-numeric.html#DATATYPE-SERIAL

-O



view thread (19+ messages)

Message-ID: <4717F5CD.8070603@opencloud.com>
Permalink:  ../4717F5CD.8070603@opencloud.com/
Also on:    postgresql.org/message-id/4717F5CD.8070603@opencloud.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-jdbc@postgresql.org
  Cc: oliver@opencloud.com, books@ejurka.com, andrei.ilitchev@oracle.com, Marina.Vatkina@Sun.COM
  Subject: Re: Fw: postgresql experts please help
  In-Reply-To: <4717F5CD.8070603@opencloud.com>
  References: <001101c81189$2f3f52d0$4c349c0a@ca.oracle.com> <Pine.BSO.4.64.0710181343220.25640@leary.csoft.net> <00d601c811b7$47c1a6e0$4c349c0a@ca.oracle.com> <Pine.BSO.4.64.0710181506040.30980@leary.csoft.net> <011701c811ca$03cea740$4c349c0a@ca.oracle.com> <Pine.BSO.4.64.0710181927161.5403@leary.csoft.net> <4717F5CD.8070603@opencloud.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