pg_toast_temp & pg_temp schemas

Started by akp geekover 15 years ago2 messagesgeneral
Jump to latest
#1akp geek
akpgeek@gmail.com

Dear all -

In the postgres db we have, I see there are many pg_toast_temp and
pg_temp schemas are getting created. Is it ok to drop those schemas ? Is
there a way to prevent them being created? Can you please share you
thoughts?

Regards

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: akp geek (#1)
Re: pg_toast_temp & pg_temp schemas

akp geek <akpgeek@gmail.com> writes:

In the postgres db we have, I see there are many pg_toast_temp and
pg_temp schemas are getting created.

This is expected if you're using temp tables. That's where they live.

Is it ok to drop those schemas ? Is
there a way to prevent them being created?

No, and no (other than not using temp tables).

regards, tom lane