pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedPostgresql : pg_temp & pg_toast_temp
2+ messages / 2 participants
[nested] [flat]
* Postgresql : pg_temp & pg_toast_temp
@ 2023-12-07 06:12 Vishwanath Kummera <kvishu83@gmail.com>
2023-12-07 14:09 ` Re: Postgresql : pg_temp & pg_toast_temp Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 2+ messages in thread
From: Vishwanath Kummera @ 2023-12-07 06:12 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
Hello Team
I am seeing there are many schemas created, this is specially when
enabled "CONCURRENTLY" option for refreshing materialized views through
table trigger.
pg_temp_1... pg_temp_30
pg_toast_temp_1... pg_toast_temp_30
If this is by design the temp schemas get created with the "CONCURRENTLY"
option, is there any way to clean-up them automatically?
Thanks,
Vishu
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Postgresql : pg_temp & pg_toast_temp
2023-12-07 06:12 Postgresql : pg_temp & pg_toast_temp Vishwanath Kummera <kvishu83@gmail.com>
@ 2023-12-07 14:09 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2023-12-07 14:09 UTC (permalink / raw)
To: Vishwanath Kummera <kvishu83@gmail.com>; +Cc: pgsql-general@lists.postgresql.org
Vishwanath Kummera <kvishu83@gmail.com> writes:
> I am seeing there are many schemas created, this is specially when
> enabled "CONCURRENTLY" option for refreshing materialized views through
> table trigger.
> pg_temp_1... pg_temp_30
> pg_toast_temp_1... pg_toast_temp_30
Yes, that's by design. There's a separate temp schema for each backend
session "slot", which gets created when first needed.
> If this is by design the temp schemas get created with the "CONCURRENTLY"
> option, is there any way to clean-up them automatically?
No. It'd just lead to thrashing/bloat in the pg_namespace catalog,
since they'd be needed again eventually.
regards, tom lane
> Thanks,
> Vishu
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2023-12-07 14:09 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2023-12-07 06:12 Postgresql : pg_temp & pg_toast_temp Vishwanath Kummera <kvishu83@gmail.com>
2023-12-07 14:09 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox