Re: Ignore heap rewrites for materialized views in logical replication
Euler Taveira <euler@eulerto.com>
From: "Euler Taveira" <euler@eulerto.com>
To: "Amit Kapila" <amit.kapila16@gmail.com>
Cc: "PostgreSQL Hackers" <pgsql-hackers@lists.postgresql.org>
Date: 2022-05-31T00:56:26Z
Lists: pgsql-hackers
Attachments
- v2-0001-Ignore-heap-rewrites-for-materialized-views-in-lo.patch (text/x-patch) patch v2-0001
- v2-0002-test-heap-rewrite-for-materialized-view-in-logica.patch (text/x-patch) patch v2-0002
On Sat, May 28, 2022, at 7:07 AM, Amit Kapila wrote: > I agree with your analysis and the fix looks correct to me. Thanks for checking. > Instead of waiting for an error, we can try to insert into a new table > created by the test case after the 'Refresh ..' command and wait for > the change to be replicated by using wait_for_caught_up. That's a good idea. [modifying the test...] I used the same table. Whenever the new row arrives on the subscriber or it reads that error message, it bails out. > Let's try to see if we can simplify the test so that it can be > committed along with a fix. If we are not able to find any reasonable > way then we can think of skipping it. The new test is attached. -- Euler Taveira EDB https://www.enterprisedb.com/
Commits
-
Ignore heap rewrites for materialized views in logical replication.
- 37fd181d6dea 10.22 landed
-
Handle heap rewrites even better in logical decoding
- 325f2ec5557f 11.0 cited
-
Handle heap rewrites better in logical replication
- 1a499c252049 10.0 cited