Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id E54449FBC0A for ; Thu, 18 Oct 2007 14:46:16 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 93766-02-7 for ; Thu, 18 Oct 2007 14:46:10 -0300 (ADT) Received: from mx1.hub.org (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id D740F9FBEFD for ; Thu, 18 Oct 2007 14:46:11 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from mail63.csoft.net (leary.csoft.net [205.205.214.5]) by mx1.hub.org (Postfix) with SMTP id 1F52A607B97 for ; Thu, 18 Oct 2007 14:46:10 -0300 (ADT) Received: (qmail 25036 invoked by uid 1112); 18 Oct 2007 17:45:59 -0000 Date: Thu, 18 Oct 2007 13:45:58 -0400 (EDT) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Andrei Ilitchev cc: pgsql-jdbc@postgresql.org, Marina Vatkina Subject: Re: Fw: postgresql experts please help In-Reply-To: <001101c81189$2f3f52d0$4c349c0a@ca.oracle.com> Message-ID: References: <001101c81189$2f3f52d0$4c349c0a@ca.oracle.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/98 X-Sequence-Number: 17670 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