Skip to content

Commit

Permalink
Allow Replica Identity (Alter Table) on CAGGs
Browse files Browse the repository at this point in the history
This commit is a follow up of #5515, which added support for
ALTER TABLE ... REPLICA IDENTITY (FULL | INDEX) on hypertables.

This commit allows the execution against materialized hypertables
to enable update / delete operations on continuous aggregates
when logical replication in enabled for them.
  • Loading branch information
noctarius committed Jul 11, 2023
1 parent eaa1206 commit 662c8cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .unreleased/PR_5868
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Implements: #5868 Allows ALTER TABLE ... REPLICA IDENTITY (FULL|INDEX) on materialized hypertables (continuoues aggregates)
1 change: 1 addition & 0 deletions src/process_utility.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ check_continuous_agg_alter_table_allowed(Hypertable *ht, AlterTableStmt *stmt)
case AT_AddIndex:
case AT_ReAddIndex:
case AT_SetRelOptions:
case AT_ReplicaIdentity:
/* allowed on materialization tables */
continue;
default:
Expand Down

0 comments on commit 662c8cc

Please sign in to comment.