Re: Alter index rename concurrently to

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Alter index rename concurrently to
Дата
Msg-id 87683f04-d63f-5bb4-793f-2be883b6e577@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: Alter index rename concurrently to  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Ответы Re: Alter index rename concurrently to
Список pgsql-hackers
On 17/10/2018 23:11, Peter Eisentraut wrote:
> On 13/10/2018 04:01, Andres Freund wrote:
>> I don't see how this could be argued. It has to be a self-conflicting
>> lockmode, otherwise you'd end up doing renames of tables where you
>> cannot see the previous state. And you'd get weird errors about updating
>> invisible rows etc.
> 
>> I don't buy this description. Imo it's a fundamental correctness
>> thing. Without it concurrent DDL would potentially overwrite the rename,
>> because they could start updating while still seeing the old version.
> 
> OK, I can refine those descriptions/comments.  Do you have any concerns
> about the underlying principle of this patch?

Patch with updated comments to reflect your input.

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

Вложения

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

Предыдущее
От: MyungKyu LIM
Дата:
Сообщение: RE: [Todo item] Add entry creation timestamp column topg_stat_replication
Следующее
От: Richard Guo
Дата:
Сообщение: Re: Pull up sublink of type 'NOT NOT (expr)'