Re: row filtering for logical replication
Erik Rijkers <er@xs4all.nl>
Commits
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Release cache tuple when no longer needed
- ed0fbc8e5ac9 15.0 landed
-
Add some additional tests for row filters in logical replication.
- ceb57afd3ce1 15.0 landed
-
Fix one of the tests introduced in commit 52e4f0cd47.
- cfb4e209ec15 15.0 landed
-
Allow specifying row filters for logical replication of tables.
- 52e4f0cd472d 15.0 landed
-
Move scanint8() to numutils.c
- cfc7191dfea3 15.0 cited
-
Replace Test::More plans with done_testing
- 549ec201d613 15.0 cited
-
Reduce relcache access in WAL sender streaming logical changes
- 6ce16088bfed 15.0 cited
-
Small cleanups related to PUBLICATION framework code
- c9105dd3660f 15.0 cited
-
Add a view to show the stats of subscription workers.
- 8d74fc96db5f 15.0 cited
-
Allow publishing the tables of schema.
- 5a2832465fd8 15.0 cited
-
Doc: improve documentation of CREATE/ALTER SUBSCRIPTION.
- 1882d6cca161 15.0 cited
-
Add PublicationTable and PublicationRelInfo structs
- 0c6828fa987b 15.0 cited
-
Remove unused argument "txn" in maybe_send_schema().
- 93d573d86571 15.0 cited
-
Add prepare API support for streaming transactions in logical replication.
- 63cf61cdeb7b 15.0 cited
-
Unify PostgresNode's new() and get_new_node() methods
- 201a76183e20 15.0 cited
-
Use l*_node() family of functions where appropriate
- 2b00db4fb0c7 15.0 cited
-
Add support for prepared transactions to built-in logical replication.
- a8fd13cab0ba 15.0 cited
-
Restore the portal-level snapshot after procedure COMMIT/ROLLBACK.
- ef9480509622 11.13 cited
-
Rename a parse node to be more general
- 91d1f2d30210 14.0 landed
-
Remove unused column atttypmod from initial tablesync query
- 4ad31bb2ef25 14.0 landed
-
SEARCH and CYCLE clauses
- 3696a600e229 14.0 cited
On 2019-09-01 02:28, Euler Taveira wrote: > Em dom, 3 de fev de 2019 às 07:14, Andres Freund <andres@anarazel.de> > escreveu: >> >> As far as I can tell, the patch has not been refreshed since. So I'm >> marking this as returned with feedback for now. Please resubmit once >> ready. >> > I fix all of the bugs pointed in this thread. I decide to disallow > 0001-Remove-unused-atttypmod-column-from-initial-table-sy.patch > 0002-Store-number-of-tuples-in-WalRcvExecResult.patch > 0003-Refactor-function-create_estate_for_relation.patch > 0004-Rename-a-WHERE-node.patch > 0005-Row-filtering-for-logical-replication.patch > 0006-Print-publication-WHERE-condition-in-psql.patch > 0007-Publication-where-condition-support-for-pg_dump.patch > 0008-Debug-for-row-filtering.patch Hi, The first 4 of these apply without error, but I can't get 0005 to apply. This is what I use: patch --dry-run -b -l -F 5 -p 1 < /home/aardvark/download/pgpatches/0130/logrep_rowfilter/20190901/0005-Row-filtering-for-logical-replication.patch checking file doc/src/sgml/catalogs.sgml Hunk #1 succeeded at 5595 (offset 8 lines). checking file doc/src/sgml/ref/alter_publication.sgml checking file doc/src/sgml/ref/create_publication.sgml checking file src/backend/catalog/pg_publication.c checking file src/backend/commands/publicationcmds.c Hunk #1 succeeded at 352 (offset 8 lines). Hunk #2 succeeded at 381 (offset 8 lines). Hunk #3 succeeded at 539 (offset 8 lines). Hunk #4 succeeded at 570 (offset 8 lines). Hunk #5 succeeded at 601 (offset 8 lines). Hunk #6 succeeded at 626 (offset 8 lines). Hunk #7 succeeded at 647 (offset 8 lines). Hunk #8 succeeded at 679 (offset 8 lines). Hunk #9 succeeded at 693 (offset 8 lines). checking file src/backend/parser/gram.y checking file src/backend/parser/parse_agg.c checking file src/backend/parser/parse_expr.c Hunk #4 succeeded at 3571 (offset -2 lines). checking file src/backend/parser/parse_func.c Hunk #1 succeeded at 2516 (offset -13 lines). checking file src/backend/replication/logical/tablesync.c checking file src/backend/replication/logical/worker.c checking file src/backend/replication/pgoutput/pgoutput.c Hunk #1 FAILED at 12. Hunk #2 succeeded at 60 (offset 2 lines). Hunk #3 succeeded at 336 (offset 2 lines). Hunk #4 succeeded at 630 (offset 2 lines). Hunk #5 succeeded at 647 (offset 2 lines). Hunk #6 succeeded at 738 (offset 2 lines). 1 out of 6 hunks FAILED checking file src/include/catalog/pg_publication.h checking file src/include/catalog/pg_publication_rel.h checking file src/include/catalog/toasting.h checking file src/include/nodes/nodes.h checking file src/include/nodes/parsenodes.h Hunk #1 succeeded at 3461 (offset -1 lines). Hunk #2 succeeded at 3486 (offset -1 lines). checking file src/include/parser/parse_node.h checking file src/include/replication/logicalrelation.h checking file src/test/regress/expected/publication.out Hunk #1 succeeded at 116 (offset 9 lines). checking file src/test/regress/sql/publication.sql Hunk #1 succeeded at 69 with fuzz 1 (offset 9 lines). checking file src/test/subscription/t/013_row_filter.pl perhaps that can be fixed? thanks, Erik Rijkers