Re: Global temporary tables

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com>
Cc: Kirk Wolak <wolakk(at)gmail(dot)com>, Andrew Dunstan <andrew(at)dunslane(dot)net>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Global temporary tables
Date: 2026-06-30 20:32:19
Message-ID: CAFj8pRCBXJW186F0do6aWjqDmf9zGN8BB0ho-LmBFagLaXZ61Q@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

út 30. 6. 2026 v 22:21 odesílatel Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com>
napsal:

> On Tue, 30 Jun 2026 at 20:29, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
> wrote:
> >
> > I am testing this patchset. Generally, it looks very well. I didn't see
> any bloat on catalog
> >
> > I found an issue - TRUNCATE waits when gtt is used by different
> transactions, and TRUNCATE removes content in all sessions.
> >
> > Is it expected?
>
> Thanks for testing!
>
> The waiting issue for TRUNCATE is interesting. I hadn't considered
> that at all, so TRUNCATE on a global temporary table still takes an
> access exclusive lock, like any other table, but I guess that's not
> necessary. I wonder what lock level we could reduce it to.
>
> I can't reproduce TRUNCATE removing content in all sessions, but
> that's definitely not supposed to happen. Can you share what you did
> to cause that?
>
>
I cannot reproduce it now. I was confused. I am sorry for the noise.

Regards

Pavel

> Regards,
> Dean
>

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Erik Wienhold 2026-06-30 20:34:55 Re: Fix psql pager selection for wrapped expanded output
Previous Message Tom Lane 2026-06-30 20:32:15 Improving display of octal GUCs