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 CAFPpqQEkg3g4jRf4Fxf3UF3F0tHLdEkNo37Q4tnSDnuQR3yCBw@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  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
So it's an optimization to reuse existing but currently unused temp
schemas, correct?

On Mon, Jul 10, 2023 at 11:22 AM David G. Johnston
<david.g.johnston@gmail.com> wrote:
>
> On Mon, Jul 10, 2023 at 9:20 AM Ted Toth <txtoth@gmail.com> wrote:
>>
>> 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.
>>
>
> The first time a session needs a temporary schema it is assigned one which is then immediately cleared out.
>
> David J.



pgsql-general by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: what causes new temp schemas to be created
Next
From: Tom Lane
Date:
Subject: Re: what causes new temp schemas to be created