Re: system table storing sequence attributes - Mailing list pgsql-sql

From A. Kretschmer
Subject Re: system table storing sequence attributes
Date
Msg-id 20070522132243.GI32759@a-kretschmer.de
Whole thread Raw
In response to Re: system table storing sequence attributes  ("Sabin Coanda" <sabin.coanda@deuromedia.ro>)
List pgsql-sql
am  Tue, dem 22.05.2007, um 16:12:06 +0300 mailte Sabin Coanda folgendes:
> I close the session, and I open another one.
> 
> I call SELECT currval( pg_get_serial_sequence('"tbFoo"','ID') ), and I get 
> the error again:
> ERROR: currval of sequence "tbFoo_ID_seq" is not yet defined in this session
> SQL state: 55000

Try 'select last_value from "tbFoo_ID_seq";' instead.


A. Kretschmer
-- 
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA   http://wwwkeys.de.pgp.net


pgsql-sql by date:

Previous
From: "Sabin Coanda"
Date:
Subject: Re: system table storing sequence attributes
Next
From: "Sabin Coanda"
Date:
Subject: Re: system table storing sequence attributes