Re: unlogged sequences

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: unlogged sequences
Дата
Msg-id 4d869f30-c3d4-2f5d-40b3-44145c8f9192@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: unlogged sequences  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
On 2019-06-21 07:31, Michael Paquier wrote:
> 1) Some SQL queries:
> create unlogged sequence popo;
> alter sequence popo increment 2;

The problem is that the above command does a relation rewrite but the
code doesn't know to copy the init fork of the sequence.  That will need
to be addressed.

> select nextval('popo');
> select nextval('popo');
> 2) Then a hard crash:
> pg_ctl stop -m immediate
> pg_ctl start
> 3) Again, with a crash:
> select nextval('popo');
                                                     
 
> #2  0x000055ce60f3208d in ExceptionalCondition

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



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

Предыдущее
От: Tomas Vondra
Дата:
Сообщение: Re: Multivariate MCV stats can leak data to unprivileged users
Следующее
От: Tomas Vondra
Дата:
Сообщение: Re: Choosing values for multivariate MCV lists