Re: Don't treate IndexStmt like AlterTable when DefineIndex is called from ProcessUtilitySlow.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Don't treate IndexStmt like AlterTable when DefineIndex is called from ProcessUtilitySlow.
Дата
Msg-id 2053950.1668724012@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Don't treate IndexStmt like AlterTable when DefineIndex is called from ProcessUtilitySlow.  (正华吕 <kainwen@gmail.com>)
Ответы Re: Don't treate IndexStmt like AlterTable when DefineIndex is called from ProcessUtilitySlow.
Список pgsql-hackers
=?UTF-8?B?5q2j5Y2O5ZCV?= <kainwen@gmail.com> writes:
>   Recently read the code, I find that when calling DefineIndex
>   from ProcessUtilitySlow, is_alter_table will be set true if
>   this statement is came from expandTableLikeClause.

Yeah.

>   Based on the above, I think  we can always a false value
>   for is_alter_table when DefineIndex is called from
>   ProcessUtilitySlow.

Why do you think this is an improvement?  Even if it's correct,
the code savings is so negligible that I'm not sure I want to
expend brain cells on figuring out whether it's correct.  The
comment you want to remove does not suggest that it's optional
which value we should pass, so I think the burden of proof
is to show that this patch is okay not that somebody else
has to demonstrate that it isn't.

            regards, tom lane



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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: allow segment size to be set to < 1GiB
Следующее
От: Thomas Munro
Дата:
Сообщение: Re: Strange failure on mamba