Re: list of TransactionIds

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
Cc: Pg Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: list of TransactionIds
Date: 2022-05-15 11:35:16
Message-ID: 202205151135.tdtcsblw3g63@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2022-May-14, Amit Kapila wrote:

> On Sat, May 14, 2022 at 1:57 AM Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> wrote:
> >
> > We didn't have any use of TransactionId as members of List, until
> > RelationSyncEntry->streamed_txns was introduced (464824323e57, pg14).
> > It's currently implemented as a list of int. This is not wrong at
> > present, but it may soon be, and I'm sure it rubs some people the wrong
> > way.
> >
> > But is the rubbing way wrong enough to add support for TransactionId in
> > pg_list.h, including, say, T_XidList?
>
> +1. I don't know if we have a need for this at other places but I feel
> it is a good idea to make its current use better.

I hesitate to add this the day just before beta. This is already in
pg14, so maybe it's not a big deal if pg15 remains the same for the time
being. Or we can change it for beta2. Or we could just punt until
pg16. Any preferences?

(Adding this to pg14 seems out of the question. It's probably okay
ABI-wise to add a new node tag at the end of the list, but I'm not sure
it's warranted.)

--
Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/
"No deja de ser humillante para una persona de ingenio saber
que no hay tonto que no le pueda enseñar algo." (Jean B. Say)

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2022-05-15 12:20:34 Make name optional in CREATE STATISTICS
Previous Message Nikolay Shaplov 2022-05-15 09:41:39 Re: [PATCH] New [relation] option engine