citus/src/backend/distributed
Mehmet YILMAZ 62a00b1b34
Error out for ALTER TABLE ... SET ACCESS METHOD DEFAULT (#7803)
PG17 introduced ALTER TABLE ... SET ACCESS METHOD DEFAULT

This PR introduces and enforces an error check preventing ALTER TABLE
... SET ACCESS METHOD DEFAULT on both Citus local tables (added via
citus_add_local_table_to_metadata) and distributed/partitioned
distributed tables. The regression tests now demonstrate that each table
type raises an error advising users to explicitly specify an access
method, rather than relying on DEFAULT. This ensures consistent behavior
across local and distributed environments in Citus.

The reason why we currently don't support this is that we can't simply
propagate the command as it is, because the default table access method
may be different across Citus cluster nodes.

Relevant PG commit:
https://github.com/postgres/postgres/commit/d61a6cad6
2024-12-27 15:07:38 +03:00
..
cdc PG17 compatibility: Resolve compilation issues (#7699) 2024-10-17 15:37:13 +03:00
clock Rename foreach_ macros to foreach_declared_ macros (#7700) 2024-10-16 17:01:39 +03:00
commands Error out for ALTER TABLE ... SET ACCESS METHOD DEFAULT (#7803) 2024-12-27 15:07:38 +03:00
connection PG17 compatibility: Resolve compilation issues (#7699) 2024-10-17 15:37:13 +03:00
deparser PG17 compatibility: account for identity columns in partitioned tables. (#7785) 2024-12-18 13:18:53 +00:00
executor PG17 compatibility: Resolve compilation issues (#7699) 2024-10-17 15:37:13 +03:00
metadata Rename foreach_ macros to foreach_declared_ macros (#7700) 2024-10-16 17:01:39 +03:00
operations Rename foreach_ macros to foreach_declared_ macros (#7700) 2024-10-16 17:01:39 +03:00
planner PG17 Compatibility: Support MERGE features in Citus with clean exceptions (#7781) 2024-12-19 14:02:24 +03:00
progress Rename foreach_ macros to foreach_declared_ macros (#7700) 2024-10-16 17:01:39 +03:00
relay Rename foreach_ macros to foreach_declared_ macros (#7700) 2024-10-16 17:01:39 +03:00
replication Rename foreach_ macros to foreach_declared_ macros (#7700) 2024-10-16 17:01:39 +03:00
shardsplit PG17 compatibility: Resolve compilation issues (#7699) 2024-10-17 15:37:13 +03:00
sql Adds PG17.1 support - Regression tests sanity (#7661) 2024-12-24 17:56:51 +03:00
test PG17 compatibility: Resolve compilation issues (#7699) 2024-10-17 15:37:13 +03:00
transaction PG17 compatibility: Resolve compilation issues (#7699) 2024-10-17 15:37:13 +03:00
utils PG17 Compatibility - Fix HideCitusDependentObjects function (#7796) 2024-12-20 17:59:09 +03:00
worker PG17 compatibility: Resolve compilation issues (#7699) 2024-10-17 15:37:13 +03:00
.gitignore Change SQL migration build process for easier reviews (#2951) 2019-09-13 18:44:27 +02:00
Makefile Makefile changes to build CDC in builddir for pgoutput and wal2json. (#6827) 2023-04-06 17:03:12 +05:30
citus--11.1-1.control Support citus_columnar as separate extension (#5911) 2022-07-13 21:08:29 -07:00
citus.control Bump Citus version into 13.0.0 (#7792) 2024-12-24 11:40:59 +03:00
safeclib Compile safestringlib using regular configure 2020-03-19 11:52:20 +01:00
shared_library_init.c Rename foreach_ macros to foreach_declared_ macros (#7700) 2024-10-16 17:01:39 +03:00