Re: BUG with accessing to temporary tables of other sessions still exists - Mailing list pgsql-hackers

From Alexander Korotkov
Subject Re: BUG with accessing to temporary tables of other sessions still exists
Date
Msg-id CAPpHfdthPzXJdc4yCz7qS6BiP3ZQTmD4nijWvvkVfoTwqPVuzw@mail.gmail.com
Whole thread
In response to Re: BUG with accessing to temporary tables of other sessions still exists  ("ZizhuanLiu X-MAN" <44973863@qq.com>)
List pgsql-hackers
Hi!

On Sun, Jun 21, 2026 at 3:36 PM ZizhuanLiu X-MAN <44973863@qq.com> wrote:
> Indeed, compared with migrating all the checks into `localbuf.c`, this adjustment involves far fewer code changes.
>
> Thanks for updating the patch to v3. I've reviewed the changes, and everything looks correct
> and consistent with the existing buffer manager architecture.
>
> This placement of the RELATION_IS_OTHER_TEMP check in bufmgr.c perfectly follows
> the existing code pattern, so I have no further comments.

Thank you for your review.  Thanks to Daniil for the patch.  I made
some minor grammar corrections.

I'm going to push and backpatch this to 16 if no objections.
Backpatch to 16, because it's a first release after 31966b151e6, which
introduced a separate local relation extension function
ExtendBufferedRelLocal() lacking of RELATION_IS_OTHER_TEMP() check.

------
Regards,
Alexander Korotkov
Supabase

Attachment

pgsql-hackers by date:

Previous
From: Dean Rasheed
Date:
Subject: Re: Global temporary tables
Next
From: Jelte Fennema-Nio
Date:
Subject: Re: Correct documentation for protocol version