pgsql: Add more tests with triggers on partitions for logical replicati

2021-04-25 Thread Michael Paquier
Add more tests with triggers on partitions for logical replication The tuple routing logic used by a logical replication worker can fire triggers on relations part of a partition tree, but there was no test coverage in this area. The existing script 003_constraints.pl included something, but noth

pgsql: Avoid sending prepare multiple times while decoding.

2021-04-25 Thread Amit Kapila
Avoid sending prepare multiple times while decoding. We send the prepare for the concurrently aborted xacts so that later when rollback prepared is decoded and sent, the downstream should be able to rollback such a xact. For 'streaming' case (when we send changes for in-progress transactions), we

pgsql: Remove unused function argument

2021-04-25 Thread Peter Eisentraut
Remove unused function argument This was already unused in the initial commit 257836a75585934cc05ed7a80bccf8190d41e056. Apparently, it was used in an earlier proposed patch version. Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/3cbea581c76e86d51b8f2babf116e643847

pgsql: Fix typo in reorderbuffer.c.

2021-04-25 Thread Amit Kapila
Fix typo in reorderbuffer.c. Author: Peter Smith Discussion: https://postgr.es/m/CAHut+PtvzuYY0zu=dvrk_wvz5wgos1+otzwgewqjha1ncos...@mail.gmail.com Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/6d2e87a077b3c2394e4adb8eb226b3dcfe3f3346 Modified Files

pgsql: Update comments for rewriteTargetListIU().

2021-04-25 Thread Tom Lane
Update comments for rewriteTargetListIU(). This function's behavior for UPDATE on a trigger-updatable view was justified by analogy to what preptlist.c used to do for UPDATE on regular tables. Since preptlist.c hasn't done that since 86dc90056, that argument is no longer sensible, let alone convi

pgsql: Make a test endure log_error_verbosity=verbose.

2021-04-25 Thread Noah Misch
Make a test endure log_error_verbosity=verbose. Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/59773da2b132ced19c84ff1f69b53b5cf95fd69e Modified Files -- src/test/recovery/t/024_archive_recovery.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)