Re: Should new partitions inherit their tablespace from their parent?

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Should new partitions inherit their tablespace from their parent?
Дата
Msg-id 20181216235949.GL5012@paquier.xyz
обсуждение исходный текст
Ответ на Re: Should new partitions inherit their tablespace from their parent?  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Ответы Re: Should new partitions inherit their tablespace from their parent?  (David Rowley <david.rowley@2ndquadrant.com>)
Список pgsql-hackers
On Sun, Dec 16, 2018 at 07:07:35PM -0300, Alvaro Herrera wrote:
> I'll self-review this again tomorrow, 'cause I now have to run.

> -        if (!is_partition)
> -            relation = heap_openrv(parent, ShareUpdateExclusiveLock);
> -        else
> -            relation = heap_openrv(parent, AccessExclusiveLock);
> +        /* caller already got lock */
> +        relation = heap_open(parent, NoLock);

Okay, I think that you should add an assertion on
CheckRelationLockedByMe() as MergeAttributes()'s only caller is
DefineRelation().  Better safe than sorry later.
--
Michael

Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: select limit error in file_fdw
Следующее
От: Alexander Korotkov
Дата:
Сообщение: Re: gist microvacuum doesn't appear to care about hot standby?