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

From Kris Jurka
Subject Re: Fw: postgresql experts please help
Date
Msg-id Pine.BSO.4.64.0710181343220.25640@leary.csoft.net
Whole thread Raw
In response to Fw: postgresql experts please help  ("Andrei Ilitchev" <andrei.ilitchev@oracle.com>)
List pgsql-jdbc

On Thu, 18 Oct 2007, Andrei Ilitchev wrote:

> I created a table with identity:
> CREATE TABLE MAN (ID  SERIAL, NAME VARCHAR(40), PRIMARY KEY (ID))
> then through jdbc connection inserted a row into the table,
> then attempted to select pk value back through the same jdbc connection using
> currval - that failed with "not yet defined in this session" exception.
>

Any chance you have two man_id_seq sequences in different schemas?  The
table insert might use one and the direct currval/nextval calls might use
another?

Kris Jurka

pgsql-jdbc by date:

Previous
From: Kris Jurka
Date:
Subject: Re: Fw: postgresql experts please help
Next
From: Michael Schmidt
Date:
Subject: Re: Fw: postgresql experts please help