| From: | Marcin Stępnicki <mstepnicki(at)gmail(dot)com> | 
|---|---|
| To: | pgsql-sql(at)postgresql(dot)org | 
| Subject: | Re: system table storing sequence attributes | 
| Date: | 2007-05-22 12:41:38 | 
| Message-ID: | pan.2007.05.22.12.41.38.862364@gmail.com | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | 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(at)jabber(dot)org *---' http://www.naszedzieci.org 
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Sabin Coanda | 2007-05-22 13:12:06 | Re: system table storing sequence attributes | 
| Previous Message | A. Kretschmer | 2007-05-22 12:38:04 | Re: system table storing sequence attributes |