Re: We broke the defense against accessing other sessions' temp tables

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: We broke the defense against accessing other sessions' temp tables
Дата
Msg-id aNA4bk3IAZCoHi4r@momjian.us
обсуждение исходный текст
Ответ на We broke the defense against accessing other sessions' temp tables  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: We broke the defense against accessing other sessions' temp tables
Список pgsql-hackers
On Sun, Sep 21, 2025 at 01:32:59PM -0400, Tom Lane wrote:
> but that's gone missing :-(.  Apparently, we refactored things enough
> that ReadBufferExtended is not used for a simple seqscan, and since
> that's where the check for an other-session temp table is, we get
> no error and instead bogus results.  I did not bother to bisect to
> find a culprit commit, but given that the failure manifests in 17,
> I'm betting the stream I/O stuff is at fault.
> 
> I experimented with moving the check into PinBufferForBlock, and
> that seems to work correctly, but I wonder if someone who's messed
> with this code more recently than I would prefer a different
> solution.

Given that this problem exists in PG 17, I assume this will not affect
the PG 18 release this week.

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EDB                                      https://enterprisedb.com

  Do not let urgent matters crowd out time for investment in the future.



В списке pgsql-hackers по дате отправления: