RE: pgoutput: schema cache cleanup after streamed 2PC

From: "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com>
To: 'Ayush Tiwari' <ayushtiwari(dot)slg01(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Cc: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>
Subject: RE: pgoutput: schema cache cleanup after streamed 2PC
Date: 2026-09-17 11:35:24
Message-ID: TYRPR01MB12845905E17A5541EA74184B6F5B82@TYRPR01MB12845.jpnprd01.prod.outlook.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Ayush,

> The attached patch adds the same cleanup to those two callbacks, guarded
> by rbtxn_is_streamed(txn). Is there a reason to keep these entries once
> the prepared transaction has finished?

Sorry if it's a stupid question. Why can't we put in pgoutput_stream_prepare_txn()?
It may be able to avoid checking by rbtxn_is_streamed(txn).

Best regards,
Hayato Kuroda
FUJITSU LIMITED

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Ajit Awekar 2026-09-17 12:01:41 Re: Continuous re-validation of session credentials
Previous Message Henson Choi 2026-09-17 11:21:43 Re: [SQL/PGQ] Native executor for Graph query