pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: A. Kretschmer <andreas.kretschmer@schollglas.com>
To: pgsql-sql@postgresql.org
Subject: Re: system table storing sequence attributes
Date: Tue, 22 May 2007 15:22:43 +0200
Message-ID: <20070522132243.GI32759@a-kretschmer.de> (raw)
In-Reply-To: <f2uq6o$112t$1@news.hub.org>
References: <f2u4jn$a03$1@news.hub.org>
	<pan.2007.05.22.07.43.23.678145@gmail.com>
	<f2unc1$kdo$1@news.hub.org>
	<pan.2007.05.22.12.41.38.862364@gmail.com>
	<f2uq6o$112t$1@news.hub.org>

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



view thread (9+ messages)  latest in thread

Message-ID: <20070522132243.GI32759@a-kretschmer.de>
Permalink:  ../20070522132243.GI32759@a-kretschmer.de/
Also on:    postgresql.org/message-id/20070522132243.GI32759@a-kretschmer.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: andreas.kretschmer@schollglas.com
  Subject: Re: system table storing sequence attributes
  In-Reply-To: <20070522132243.GI32759@a-kretschmer.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox