Re: system table storing sequence attributes

Поиск
Список
Период
Сортировка
От Marcin Stępnicki
Тема Re: system table storing sequence attributes
Дата
Msg-id pan.2007.05.22.12.41.38.862364@gmail.com
обсуждение исходный текст
Ответ на system table storing sequence attributes  ("Sabin Coanda" <sabin.coanda@deuromedia.ro>)
Список 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 по дате отправления:

Предыдущее
От: "A. Kretschmer"
Дата:
Сообщение: Re: system table storing sequence attributes
Следующее
От: "Sabin Coanda"
Дата:
Сообщение: Re: system table storing sequence attributes