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

From Marcin Stępnicki
Subject Re: system table storing sequence attributes
Date
Msg-id pan.2007.05.22.12.41.38.862364@gmail.com
Whole thread Raw
In response to system table storing sequence attributes  ("Sabin Coanda" <sabin.coanda@deuromedia.ro>)
List pgsql-sql
Dnia Tue, 22 May 2007 15:23:44 +0300, Sabin Coanda napisał(a):

> ...
>> select last_value from sequence_name
> 
> Unfortunately there is the same problem. The documentation say: "It is an
> error to call lastval if nextval has not yet been called in the current
> session." .... and I don't want to call nextval before.

I think that you either misunderstood this statement or try to break your
application in a nasty way ;). Please tell us more about your problem
and/or what do you want to achive, because sequences behave this way for a
reason (concurrency issues). Perhaps there is another solution.

-- 
| And Do What You Will be the challenge | http://apcoln.linuxpl.org
|    So be it in love that harms none   | http://biznes.linux.pl
|   For this is the only commandment.   | http://www.juanperon.info
`---*  JID: Aragorn_Vime@jabber.org *---' http://www.naszedzieci.org 




pgsql-sql by date:

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