sequence locking

Поиск
Список
Период
Сортировка
От Andres Freund
Тема sequence locking
Дата
Msg-id 201109211715.41709.andres@anarazel.de
обсуждение исходный текст
Ответы Re: sequence locking
Список pgsql-hackers
Hi,

I find the current behaviour of locking of sequences rather problematic. 
Multiple things:

- First and foremost I find it highly dangerous that "ALTER SEQUENCE ..." is 
for the biggest part not transactional. I think about the only transaction 
part is the name, owner and schema.
Sure, its documented, but ...

The cited reasons for wanting that behaviour look a bit bogus to me? Why 
should concurrency be important when doing an ALTER SEQUENCE? 

- Its impossible to emulate proper locking yourself because locking is not 
allowed for sequences

The first one looks rather hard to solve to me with my  passing knowledge of 
the sequence, but probably worthy of a TODO entry.

The second one looks easier. Any arguments against allowing it again? It seems 
to have been allowed in prehistoric times.

Greetings,

Andres


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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: Inlining comparators as a performance optimisation
Следующее
От: Florian Pflug
Дата:
Сообщение: Re: Range Types - typo + NULL string constructor