Huge number of pg_temp and pg_toast_temp schemas - Mailing list pgsql-general

From Andrus
Subject Huge number of pg_temp and pg_toast_temp schemas
Date
Msg-id 6F99845517EB402E9269BD6767CCE53C@dell2
Whole thread Raw
Responses Re: Huge number of pg_temp and pg_toast_temp schemas
List 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
factorcreated or
 
continues to create those schemas. Postgres 12.2 in Debian 10 is used.

Andrus.

Attachment

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Different Lock Behavior With Create and Drop Foreign Key
Next
From: Tom Lane
Date:
Subject: Re: Huge number of pg_temp and pg_toast_temp schemas