Re: system table storing sequence attributes

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: system table storing sequence attributes
Date: 2007-05-22 13:22:43
Message-ID: 20070522132243.GI32759@a-kretschmer.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Sabin Coanda 2007-05-22 13:47:03 Re: system table storing sequence attributes
Previous Message Sabin Coanda 2007-05-22 13:12:06 Re: system table storing sequence attributes