Invalidate pgoutput's replication-decisions cache upon schema rename.
Tom Lane <tgl@sss.pgh.pa.us>
Invalidate pgoutput's replication-decisions cache upon schema rename. A schema rename should cause reporting the new qualified names of tables to logical replication subscribers, but that wasn't happening. Flush the RelationSyncCache to make it happen. (If you ask me, the new test case shows that the behavior in this area is still pretty dubious, but apparently it's operating as designed.) Vignesh C Discussion: https://postgr.es/m/CALDaNm32vLRv5KdrDFeVC-CU+4Wg1daA55hMqOxDGJBzvd76-w@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/replication/pgoutput/pgoutput.c | modified | +20 −5 |
| src/test/subscription/t/100_bugs.pl | modified | +64 −1 |
Discussion
- Logical replication - schema change not invalidating the relation cache 14 messages · 2021-07-02 → 2023-01-06