Re: what causes new temp schemas to be created - Mailing list pgsql-general

From Ted Toth
Subject Re: what causes new temp schemas to be created
Date
Msg-id CAFPpqQE+tKnP=M=HGqbDzqbch0WWHtjZEP9cgQVAyPjuH=CgNw@mail.gmail.com
Whole thread Raw
In response to Re: what causes new temp schemas to be created  ("David G. Johnston" <david.g.johnston@gmail.com>)
Responses Re: what causes new temp schemas to be created
List pgsql-general
I don't see that the schema is removed when the session is over and I
see other sessions come along later and use it. I'm assuming here that
a session is started on connect and ended when the connection is
closed.

On Mon, Jul 10, 2023 at 9:21 AM David G. Johnston
<david.g.johnston@gmail.com> wrote:
>
> On Mon, Jul 10, 2023 at 7:18 AM Ted Toth <txtoth@gmail.com> wrote:
>>
>> When a temp table is created I see a pg_temp_NNN (for example
>> pg_temp_3, pg_toast_temp_3) schemas created when/why are additional
>> temp schemas created( pg_temp_4/pg_toast_temp_4)?
>>
>
> Temporary schemas are isolated to the session they are created in.  Hence, you get multiple temporary schemas if you
haveconcurrent sessions using temporary objects. 
>
> David J.



pgsql-general by date:

Previous
From: Mertez
Date:
Subject: Prevent LSN pointer advancement in case of cursor exception (wal2json + pg_logical_slot_get_changes)
Next
From: "David G. Johnston"
Date:
Subject: Re: what causes new temp schemas to be created