Re: Fw: postgresql experts please help - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: Fw: postgresql experts please help
Date
Msg-id 4717F5CD.8070603@opencloud.com
Whole thread Raw
In response to Re: Fw: postgresql experts please help  (Kris Jurka <books@ejurka.com>)
List pgsql-jdbc
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

pgsql-jdbc by date:

Previous
From: Kris Jurka
Date:
Subject: Re: Fw: postgresql experts please help
Next
From: João Paulo Pires
Date:
Subject: PostgreSQL JDBC Driver versus Encoding