Re: Huge number of pg_temp and pg_toast_temp schemas

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Andrus <kobruleht2(at)hot(dot)ee>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Huge number of pg_temp and pg_toast_temp schemas
Date: 2020-04-10 18:30:53
Message-ID: ae91b677-f554-02b2-8387-5ec37dfe7724@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 4/10/20 11:06 AM, Andrus wrote:
> Hi!
>
> Thank you.
>
>> This is an unsurprising state, if you routinely have a hundred-plus
>> connections that sometimes create temp tables.  Each such session
>> needs schemas to keep its temp tables in.  The temp tables are
>> deleted at session exit, but we don't bother to remove the schema
>> entries, figuring that they'll probably be needed again later, and
>> a couple of rows in pg_namespace is negligible overhead anyway.
>
> How to hide temp schemas from pgAdmin 4 tree?
> For such large number of temporary schemas  pgAdmin schema tree view
> becomes polluted and makes database management difficult.
> I turned most of Nodes options in PgAdmin options off but pgadmin still
> shows them. It shows also pg_toast schema.

That's something you probably need to ask the pgAdmin folks:

https://www.postgresql.org/list/pgadmin-support/

>
> Andrus.

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Andrus 2020-04-10 20:20:04 Forcibly disconnect users from one database
Previous Message Andrus 2020-04-10 18:06:43 Re: Huge number of pg_temp and pg_toast_temp schemas