postgres/contrib/test_decoding/specs
Amit Kapila 5b148706c5 Add optional pid parameter to pg_replication_origin_session_setup().
Commit 216a784829 introduced parallel apply workers, allowing multiple
processes to share a replication origin. To support this,
replorigin_session_setup() was extended to accept a pid argument
identifying the process using the origin.

This commit exposes that capability through the SQL interface function
pg_replication_origin_session_setup() by adding an optional pid parameter.
This enables multiple processes to coordinate replication using the same
origin when using SQL-level replication functions.

This change allows the non-builtin logical replication solutions to
implement parallel apply for large transactions.

Additionally, an existing internal error was made user-facing, as it can
now be triggered via the exposed SQL API.

Author: Doruk Yilmaz <doruk@mixrank.com>
Author: Hayato Kuroda <kuroda.hayato@fujitsu.com>
Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>
Reviewed-by: Euler Taveira <euler@eulerto.com>
Discussion: https://postgr.es/m/CAMPB6wfe4zLjJL8jiZV5kjjpwBM2=rTRme0UCL7Ra4L8MTVdOg@mail.gmail.com
Discussion: https://postgr.es/m/CAE2gYzyTSNvHY1+iWUwykaLETSuAZsCWyryokjP6rG46ZvRgQA@mail.gmail.com
2025-09-19 05:38:40 +00:00
..
catalog_change_snapshot.spec Fix assertion failures while processing NEW_CID record in logical decoding. 2022-10-20 08:49:48 +05:30
concurrent_ddl_dml.spec Do more cleanup of isolation tests for test_decoding 2019-08-24 12:34:37 +09:00
concurrent_stream.spec Remove incidental md5() function uses from several tests 2023-07-04 14:31:57 +02:00
delayed_startup.spec Introduce logical decoding. 2014-03-03 16:32:18 -05:00
invalidation_distribution.spec Fix re-distributing previously distributed invalidation messages during logical decoding. 2025-06-16 17:36:01 -07:00
mxact.spec Revert "Logical decoding of sequences" 2022-04-07 20:06:36 +02:00
oldest_xmin.spec Fix xmin advancement during fast_forward decoding. 2025-04-28 11:35:54 +05:30
ondisk_startup.spec Revert "Logical decoding of sequences" 2022-04-07 20:06:36 +02:00
parallel_session_origin.spec Add optional pid parameter to pg_replication_origin_session_setup(). 2025-09-19 05:38:40 +00:00
skip_snapshot_restore.spec Fix typos and grammar in code comments and docs 2024-09-03 14:49:04 +09:00
slot_creation_error.spec Close race condition in slot_creation_error.spec. 2022-03-18 18:18:00 -07:00
snapshot_transfer.spec Introduce xid8-based functions to replace txid_XXX. 2020-04-07 12:04:32 +12:00
subxact_without_top.spec Stop demanding that top xact must be seen before subxact in decoding. 2020-02-19 08:15:49 +05:30
twophase_snapshot.spec Add option to enable two_phase commits via pg_create_logical_replication_slot. 2021-03-03 07:34:11 +05:30