pgsql: Implement List support for TransactionId

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Implement List support for TransactionId
Date: 2022-07-04 13:14:05
Message-ID: E1o8Ltr-001A0w-N9@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Implement List support for TransactionId

Use it for RelationSyncEntry->streamed_txns, which is currently using an
integer list.

The API support is not complete, not because it is hard to write but
because it's unclear that it's worth the code space, there being so
little use of XID lists.

Discussion: https://postgr.es/m/202205130830.g5ntonhztspb@alvherre.pgsql
Reviewed-by: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/f10a025cfe97c1a341f636368e67af5ca644c5d8

Modified Files
--------------
src/backend/nodes/list.c | 42 ++++++++++++++++++++++++++++-
src/backend/nodes/outfuncs.c | 4 +++
src/backend/replication/pgoutput/pgoutput.c | 14 +++-------
src/include/nodes/nodes.h | 1 +
src/include/nodes/pg_list.h | 21 +++++++++++++++
5 files changed, 70 insertions(+), 12 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2022-07-04 13:55:30 Re: pgsql: Change timeline field of IDENTIFY_SYSTEM to int8
Previous Message Zhihong Yu 2022-07-04 10:46:11 Re: pgsql: dshash: Add sequential scan support.