pgsql: Add decoding of sequences to test_decoding - Mailing list pgsql-committers

From Tomas Vondra
Subject pgsql: Add decoding of sequences to test_decoding
Date
Msg-id E1nIfi8-0000bE-FB@gemulon.postgresql.org
Whole thread Raw
Responses Re: pgsql: Add decoding of sequences to test_decoding
List pgsql-committers
Add decoding of sequences to test_decoding

Commit 0da92dc530 improved the logical decoding infrastructure to handle
sequences, and did various changes to related parts (WAL logging etc.).
But it did not include any implementation of the new callbacks added to
OutputPluginCallbacks.

This extends test_decoding with two callbacks to decode sequences. The
decoding of sequences may be disabled using 'include-sequences', a new
option of the output plugin.

Author: Tomas Vondra, Cary Huang
Reviewed-by: Peter Eisentraut, Hannu Krosing, Andres Freund
Discussion: https://postgr.es/m/d045f3c2-6cfb-06d3-5540-e63c320df8bc@enterprisedb.com
Discussion: https://postgr.es/m/1710ed7e13b.cd7177461430746.3372264562543607781@highgo.ca

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/80901b32913ffa59bf157a4d88284b2b3a7511d9

Modified Files
--------------
contrib/test_decoding/Makefile                     |   3 +-
contrib/test_decoding/expected/ddl.out             |  12 +-
.../test_decoding/expected/decoding_in_xact.out    |   2 +-
.../test_decoding/expected/decoding_into_rel.out   |  10 +-
contrib/test_decoding/expected/mxact.out           |   8 +-
contrib/test_decoding/expected/ondisk_startup.out  |   4 +-
contrib/test_decoding/expected/replorigin.out      |   4 +-
contrib/test_decoding/expected/rewrite.out         |   4 +-
contrib/test_decoding/expected/sequence.out        | 327 +++++++++++++++++++++
contrib/test_decoding/expected/slot.out            |   2 +-
contrib/test_decoding/expected/toast.out           |  10 +-
contrib/test_decoding/expected/truncate.out        |   2 +-
contrib/test_decoding/specs/mxact.spec             |   2 +-
contrib/test_decoding/specs/ondisk_startup.spec    |   2 +-
contrib/test_decoding/sql/ddl.sql                  |  12 +-
contrib/test_decoding/sql/decoding_in_xact.sql     |   2 +-
contrib/test_decoding/sql/decoding_into_rel.sql    |  10 +-
contrib/test_decoding/sql/replorigin.sql           |   4 +-
contrib/test_decoding/sql/rewrite.sql              |   4 +-
contrib/test_decoding/sql/sequence.sql             | 119 ++++++++
contrib/test_decoding/sql/slot.sql                 |   2 +-
contrib/test_decoding/sql/toast.sql                |  10 +-
contrib/test_decoding/sql/truncate.sql             |   2 +-
contrib/test_decoding/test_decoding.c              |  65 ++++
24 files changed, 567 insertions(+), 55 deletions(-)


pgsql-committers by date:

Previous
From: Peter Geoghegan
Date:
Subject: pgsql: Simplify lazy_scan_heap's handling of scanned pages.
Next
From: Peter Geoghegan
Date:
Subject: pgsql: Add VACUUM instrumentation for scanned pages, relfrozenxid.