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 'inherit_template_properties' 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 `inherit_template_properties` function idempotent such that multiple calls to don't have any additional consequences. - This function is used to inherit the properties of the template table to newly created child tables. - For PG11, it is used to inherit non-partition-key unique indexes & primary keys. - Changes Done - Before creating a new index on the child table check if that index is already present for the child table to avoid duplicate index creation. Jira: DB-12101 Test Plan: jenkins: compile only Reviewers: skumar, jason, hsunder Reviewed By: jason Subscribers: yql Differential Revision: https://phorge.dev.yugabyte.com/D36676
- Loading branch information