Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 9296ccf

Browse files
tglsfdcCommitfest Bot
authored and
Commitfest Bot
committed
Demonstrate crash in brininsertcleanup during logical replication.
A cross-partition update crashes if the subscriber's table has a BRIN index. This is easily demonstrated by adding such an index to 013_partition.pl. I'm not sure if we actually want to include this in the final patchset, so it's a separate patch for now. Bug: #18815 Reported-by: Sergey Belyashov <sergey.belyashov@gmail.com> Discussion: https://postgr.es/m/18815-2a0407cc7f40b327@postgresql.org Backpatch-through: TBD
1 parent a1f7f80 commit 9296ccf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/subscription/t/013_partition.pl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@
4949
$node_subscriber1->safe_psql('postgres',
5050
"CREATE TABLE tab1 (c text, a int PRIMARY KEY, b text) PARTITION BY LIST (a)"
5151
);
52+
$node_subscriber1->safe_psql('postgres',
53+
"CREATE INDEX ON tab1 USING brin (c)"
54+
);
5255
$node_subscriber1->safe_psql('postgres',
5356
"CREATE TABLE tab1_1 (b text, c text DEFAULT 'sub1_tab1', a int NOT NULL)"
5457
);

0 commit comments

Comments
 (0)