Re: [COMMITTERS] pgsql: Add DISCARD SEQUENCES command.

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: [COMMITTERS] pgsql: Add DISCARD SEQUENCES command.
Дата
Msg-id CAB7nPqRaBwM-a=O65K3bCf7MnGxtFKwrcxgKPHgX0Sk5HTJKPA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [COMMITTERS] pgsql: Add DISCARD SEQUENCES command.  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-hackers
On Sun, Oct 6, 2013 at 1:25 PM, Alvaro Herrera <alvherre@2ndquadrant.com> wrote:
> Michael Paquier escribió:
>
>> =# discard sequences ;
>> DISCARD SEQUENCES
>> =# select currval('foo');
>> ERROR:  55000: currval of sequence "foo" is not yet defined in this session
>> LOCATION:  currval_oid, sequence.c:780
>> =# select lastval();
>> The connection to the server was lost. Attempting reset: Failed.
>
> I wonder if it would be better to have this "seqtab" thing be a dlist,
> and move the most recently used item to head position on nextval().
> That way we don't have to maintain last_used_seq separately.
Indeed, this could simplify a bit the code.
--
Michael



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Fabien COELHO
Дата:
Сообщение: Re: pgbench - exclude pthread_create() from connection start timing
Следующее
От: Noah Misch
Дата:
Сообщение: Re: pgbench - exclude pthread_create() from connection start timing