Huge number of pg_temp and pg_toast_temp schemas

From: "Andrus" <kobruleht2(at)hot(dot)ee>
To: "pgsql-general" <pgsql-general(at)postgresql(dot)org>
Subject: Huge number of pg_temp and pg_toast_temp schemas
Date: 2020-04-10 16:32:37
Message-ID: 6F99845517EB402E9269BD6767CCE53C@dell2
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi!

Postgres 12 database contains huge number of pg_temp and pg_toast_temp schemas named

pg_temp_1 .. pg_temp_126

and

pg_toast_temp_1 .. pg_toast_temp_126

There are total 2 * 126 = 252 unnessecary schemas in one database.
Those schemas seems not contain any objects.

Other databases in cluster similar schemas but in smaller amount.

How to delete them automatically and prevent appear in future?

Cluster stopped since disk decomes full and streaming async replication is used. Maybe one of those or some other factor created or
continues to create those schemas. Postgres 12.2 in Debian 10 is used.

Andrus.

Attachment Content-Type Size
image/png 41.9 KB

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2020-04-10 17:27:45 Re: Huge number of pg_temp and pg_toast_temp schemas
Previous Message Tom Lane 2020-04-10 16:13:59 Re: Different Lock Behavior With Create and Drop Foreign Key