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 ---------------------------(end of broadcast)--------------------------- TIP 6: explain analyze is your friend