postgresql/contrib/test_decoding
Amit Kapila 45fdc9738b Extend the logical decoding output plugin API with stream methods.
This adds seven methods to the output plugin API, adding support for
streaming changes of large in-progress transactions.

* stream_start
* stream_stop
* stream_abort
* stream_commit
* stream_change
* stream_message
* stream_truncate

Most of this is a simple extension of the existing methods, with
the semantic difference that the transaction (or subtransaction)
is incomplete and may be aborted later (which is something the
regular API does not really need to deal with).

This also extends the 'test_decoding' plugin, implementing these
new stream methods.

The stream_start/start_stop are used to demarcate a chunk of changes
streamed for a particular toplevel transaction.

This commit simply adds these new APIs and the upcoming patch to "allow
the streaming mode in ReorderBuffer" will use these APIs.

Author: Tomas Vondra, Dilip Kumar, Amit Kapila
Reviewed-by: Amit Kapila
Tested-by: Neha Sharma and Mahendra Singh Thalor
Discussion: https://postgr.es/m/688b0b7f-2f6c-d827-c27b-216a8e3ea700@2ndquadrant.com
2020-07-28 08:09:44 +05:30
..
expected Replace superuser check by ACLs for replication origin functions 2020-06-14 12:40:37 +09:00
specs Introduce xid8-based functions to replace txid_XXX. 2020-04-07 12:04:32 +12:00
sql Replace superuser check by ACLs for replication origin functions 2020-06-14 12:40:37 +09:00
.gitignore
logical.conf Add logical_decoding_work_mem to limit ReorderBuffer memory usage. 2019-11-19 07:32:36 +05:30
Makefile Stop demanding that top xact must be seen before subxact in decoding. 2020-02-19 08:15:49 +05:30
test_decoding.c Extend the logical decoding output plugin API with stream methods. 2020-07-28 08:09:44 +05:30