Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#23163] YSQL: pg_partman: make 'apply_publications' idempotent
Summary: Currently transactional DDL is not supported in YugabyteDB . Due to which if any procedure or function which is performing multiple DDLs in a transactional context can lead to issue of some DDLs getting executed and committed even if stored procedure failed due to some exception while running stored procedure or Postgres backend process or tserver process kill. This diff makes apply_publications.sql function idempotent such that multiple calls to don't have any additional consequences. - This function is used to add child tables to publication - Changes done - Added a check to not invoke ALTER PUBLICATION <publication> ADD table <child_table> if child_table is already part of the publication. Jira: DB-12101 Test Plan: jenkins: compile only Reviewers: skumar, jason, hsunder Reviewed By: jason Subscribers: yql Differential Revision: https://phorge.dev.yugabyte.com/D36677
- Loading branch information