pg.ddx.io pgsql-sql@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Marcin Stępnicki <mstepnicki@gmail.com>
To: pgsql-sql@postgresql.org
Subject: Re: system table storing sequence attributes
Date: Tue, 22 May 2007 14:41:38 +0200
Message-ID: <pan.2007.05.22.12.41.38.862364@gmail.com> (raw)
References: <f2u4jn$a03$1@news.hub.org>
<pan.2007.05.22.07.43.23.678145@gmail.com>
<f2unc1$kdo$1@news.hub.org>
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
view thread (9+ messages) latest in thread
Message-ID: <pan.2007.05.22.12.41.38.862364@gmail.com> Permalink: ../pan.2007.05.22.12.41.38.862364@gmail.com/ Also on: postgresql.org/message-id/pan.2007.05.22.12.41.38.862364@gmail.com ·
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: mstepnicki@gmail.com Subject: Re: system table storing sequence attributes In-Reply-To: <pan.2007.05.22.12.41.38.862364@gmail.com> * 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