Re: [PATCH] Use indexes on the subscriber when REPLICA IDENTITY is full on the publisher
Önder Kalacı <onderkalaci@gmail.com>
From: Önder Kalacı <onderkalaci@gmail.com>
To: Amit Kapila <amit.kapila16@gmail.com>
Cc: vignesh C <vignesh21@gmail.com>,
"shiy.fnst@fujitsu.com" <shiy.fnst@fujitsu.com>, "wangw.fnst@fujitsu.com" <wangw.fnst@fujitsu.com>,
Marco Slot <marco.slot@gmail.com>, Tom Lane <tgl@sss.pgh.pa.us>, Andres Freund <andres@anarazel.de>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2023-03-10T14:28:33Z
Lists: pgsql-hackers
Attachments
- v43_0002_use_index_on_subs_when_pub_rep_ident_full.patch (application/octet-stream) patch v43-0002
- v43_0001_Skip-dropped_columns_for_tuples_equal.patch (application/octet-stream) patch v43-0001
Hi Amit, all > I'll look for more opportunities and reply to the thread. I wanted to send > this mail so that you can have a look at (1) earlier. > > > I merged SUBSCRIPTION CREATE/DROP INDEX WORKS WITHOUT ISSUES into SUBSCRIPTION CAN USE INDEXES WITH EXPRESSIONS AND COLUMNS. Also, merged SUBSCRIPTION USES INDEX WITH PUB/SUB DIFFERENT DATA and A UNIQUE INDEX THAT IS NOT PRIMARY KEY OR REPLICA IDENTITY So, we have 6 test cases left. I start to feel that trying to merge further is going to start making the readability get worse. Do you have any further easy test case merge suggestions? I think one option could be to drop some cases altogether, but not sure we'd want that. As a semi-related question: Are you aware of any setting that'd make pg_stat_all_indexes reflect the changes sooner? It is hard to debug what is the bottleneck in the tests, but I have a suspicion that there might be several poll_query_until() calls on pg_stat_all_indexes, which might be the reason? Attaching v43.
Commits
-
Add the testcases for 89e46da5e5.
- 805b821e77a3 16.0 landed
-
Allow the use of indexes other than PK and REPLICA IDENTITY on the subscriber.
- 89e46da5e511 16.0 landed
-
Rework query relation permission checking
- a61b1f74823c 16.0 cited
-
Generalize ri_RootToPartitionMap to use for non-partition children
- fb958b5da86d 16.0 cited
-
Add wait_for_subscription_sync for TAP tests.
- 0c20dd33db16 16.0 cited
-
Logical replication
- 665d1fad99e7 10.0 cited