Re: alter table set TABLE ACCESS METHOD

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: alter table set TABLE ACCESS METHOD
Дата
Msg-id YMFynNmWfxUScsXu@paquier.xyz
обсуждение исходный текст
Ответ на Re: alter table set TABLE ACCESS METHOD  (Zhihong Yu <zyu@yugabyte.com>)
Список pgsql-hackers
On Wed, Jun 09, 2021 at 01:45:52PM -0700, Zhihong Yu wrote:
> +           /* check if another access method change was already requested
> */
> +           if (tab->newAccessMethod)
> +               ereport(ERROR,
> +                       (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
> +                        errmsg("cannot change access method setting
> twice")));
>
> I think the error message can be refined - changing  access method twice is
> supported, as long as the two changes don't overlap.

Hmm.  Do we actually need this one?  ATPrepSetAccessMethod() checks
already that this command cannot be specified multiple times, with an
error message consistent with what SET TABLESPACE does.
--
Michael

Вложения

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: please update ps display for recovery checkpoint
Следующее
От: Kyotaro Horiguchi
Дата:
Сообщение: Re: Transactions involving multiple postgres foreign servers, take 2