Re: when do pg_temp SCHEMAS get purged?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Harald Armin Massa" <haraldarminmassa(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: when do pg_temp SCHEMAS get purged?
Date: 2006-08-02 12:58:04
Message-ID: 14847.1154523484@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Harald Armin Massa" <haraldarminmassa(at)gmail(dot)com> writes:
> Now I looked at system objects and detected, that schemas named PG_TEMPn,
> where n is a slowly growing integer,
> are created.

> Those schemas seem to get more and more and more. Is anyprocess taking care
> of purging the ones no longer needed?

We don't bother. One row in pg_namespace is not worth removing,
especially when it's likely to be needed again someday.

(Now, if any of the *contents* of the temp namespaces don't go away at
backend exit, that's another story...)

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Harald Armin Massa 2006-08-02 13:05:12 Re: when do pg_temp SCHEMAS get purged?
Previous Message Tom Lane 2006-08-02 12:53:58 Re: pgstat.c: send/EINTR issue