Re: Roll Back dont roll back counters

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Roll Back dont roll back counters
Дата
Msg-id 10439.997983171@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Roll Back dont roll back counters  ("Ben-Nes Michael" <miki@canaan.co.il>)
Список pgsql-general
"Ben-Nes Michael" <miki@canaan.co.il> writes:
> Its not that I care about holes, but if roll back mean to return the DB to
> its original status because a foul sql chain command then logically I expect
> that everything will roll back like the action was never accorded

That's the general rule, but we specifically exempt sequences from the
rule, because it works better that way.  Allowing sequence operators
to be non-blocking is considerably more useful for most people than
avoiding holes in the set of resulting row IDs.

All of this is documented in the CREATE SEQUENCE reference page, BTW.

            regards, tom lane

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

Предыдущее
От: Jan Wieck
Дата:
Сообщение: Re: Storing images in PG?
Следующее
От: "Ben-Nes Nimrod"
Дата:
Сообщение: unix timestamp