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

2022-11-17 Thread 正华吕
Hi, thanks a lot for your reply! > Why do you think this is an improvement? I hit the issue in Greenplum Database (Massively Parallel Postgres), the MPP architecture is that coordinator dispatch statement to segments. The dispatch logic is quit different for AlterTable and CreateTableLike: *

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

2022-11-17 Thread Tom Lane
=?UTF-8?B?5q2j5Y2O5ZCV?= 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

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

2022-11-17 Thread 正华吕
Hi, 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. I check the code of DefineIndex, there are only two places use is_alter_table: 1. the function