In that case, name in AlterTableCmd->name would be null.
Add a null check here to avoid crash.
Note to reviewer: I have opened the pull request against naisila/pg17_columnar_issue as the fix from that PR is necessary to see what this PR is fixing. Naturally, this fix will be merged after https://github.com/citusdata/citus/pull/7738 has been merged
PG 17 added support for DEFAULT in ALTER TABLE .. SET ACCESS METHOD
Relevant PG commit: d61a6cad6418f643a5773352038d0dfe5d3535b8 https://github.com/postgres/postgres/commit/d61a6cad6418f643a5773352038d0dfe5d3535b8
In that case, name in
AlterTableCmd->name
would be null. Add a null check here to avoid crash.Note to reviewer: I have opened the pull request against
naisila/pg17_columnar_issue
as the fix from that PR is necessary to see what this PR is fixing. Naturally, this fix will be merged after https://github.com/citusdata/citus/pull/7738 has been merged