pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feed291 pg_toast_temp schemas?
7+ messages / 3 participants
[nested] [flat]
* 291 pg_toast_temp schemas?
@ 2012-04-26 17:34 Josh Berkus <josh@agliodbs.com>
0 siblings, 1 reply; 7+ messages in thread
From: Josh Berkus @ 2012-04-26 17:34 UTC (permalink / raw)
To: pgsql-bugs
summary: database has 291 empty pg_toast_temp schemas.
severity: head-scratcher
version: 9.0.7
platform: RHEL6
description:
* medium-large production database (300GB)
* does data collection and analytics
* lately has been having chronic lock-blocking issues
* does many, daily batch jobs which involve the creation of many temp
tables.
Today, while investigating the lock-blocking issues, I noticed that the
db has pg_toast_temp_1 through 291. All of these schema are completely
empty:
breakpad=# select schemaname, relname from pg_stat_all_tables where
schemaname LIKE 'pg_toast_temp_%';
schemaname | relname
------------+---------
... so, apparently we still have an issue with cleaning up pg_toast_temp
schema?
--
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: 291 pg_toast_temp schemas?
@ 2012-04-26 18:22 Tom Lane <tgl@sss.pgh.pa.us>
parent: Josh Berkus <josh@agliodbs.com>
0 siblings, 1 reply; 7+ messages in thread
From: Tom Lane @ 2012-04-26 18:22 UTC (permalink / raw)
To: Josh Berkus <josh@agliodbs.com>; +Cc: pgsql-bugs
Josh Berkus <josh@agliodbs.com> writes:
> summary: database has 291 empty pg_toast_temp schemas.
If your max_connections is 300 or more, this isn't surprising in the
least.
> ... so, apparently we still have an issue with cleaning up pg_toast_temp
> schema?
If they are empty, no we don't have a problem with cleaning them up.
The pg_namespace entries are deliberately left there across sessions,
to avoid useless catalog churn.
regards, tom lane
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: 291 pg_toast_temp schemas?
@ 2012-04-26 22:35 Josh Berkus <josh@agliodbs.com>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 2 replies; 7+ messages in thread
From: Josh Berkus @ 2012-04-26 22:35 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-bugs
On 4/26/12 11:22 AM, Tom Lane wrote:
> Josh Berkus <josh@agliodbs.com> writes:
>> summary: database has 291 empty pg_toast_temp schemas.
>
> If your max_connections is 300 or more, this isn't surprising in the
> least.
Yes, they are.
>> ... so, apparently we still have an issue with cleaning up pg_toast_temp
>> schema?
>
> If they are empty, no we don't have a problem with cleaning them up.
> The pg_namespace entries are deliberately left there across sessions,
> to avoid useless catalog churn.
Aha, ok. Should I add a FAQ item about this?
Also, have we discussed maybe hiding these schemas from \dn?
--
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: 291 pg_toast_temp schemas?
@ 2012-04-26 22:48 Jaime Casanova <jaime@2ndquadrant.com>
parent: Josh Berkus <josh@agliodbs.com>
1 sibling, 0 replies; 7+ messages in thread
From: Jaime Casanova @ 2012-04-26 22:48 UTC (permalink / raw)
To: Josh Berkus <josh@agliodbs.com>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; pgsql-bugs
On Thu, Apr 26, 2012 at 5:35 PM, Josh Berkus <josh@agliodbs.com> wrote:
>
> Also, have we discussed maybe hiding these schemas from \dn?
>
+1 from this idea... maybe do them visible only on \dn+
--
Jaime Casanova www.2ndQuadrant.com
Professional PostgreSQL: Soporte 24x7 y capacitación
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: 291 pg_toast_temp schemas?
@ 2012-04-26 22:48 Tom Lane <tgl@sss.pgh.pa.us>
parent: Josh Berkus <josh@agliodbs.com>
1 sibling, 2 replies; 7+ messages in thread
From: Tom Lane @ 2012-04-26 22:48 UTC (permalink / raw)
To: Josh Berkus <josh@agliodbs.com>; +Cc: pgsql-bugs
Josh Berkus <josh@agliodbs.com> writes:
> Also, have we discussed maybe hiding these schemas from \dn?
We've done more than discuss it:
http://git.postgresql.org/gitweb/?p=postgresql.git&a=commitdiff&h=e43fb604d6db229d70d3101aa5...
I take it you're using something older than 9.1.
regards, tom lane
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: 291 pg_toast_temp schemas?
@ 2012-04-26 22:52 Jaime Casanova <jaime@2ndquadrant.com>
parent: Tom Lane <tgl@sss.pgh.pa.us>
1 sibling, 0 replies; 7+ messages in thread
From: Jaime Casanova @ 2012-04-26 22:52 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Josh Berkus <josh@agliodbs.com>; pgsql-bugs
On Thu, Apr 26, 2012 at 5:48 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Josh Berkus <josh@agliodbs.com> writes:
>> Also, have we discussed maybe hiding these schemas from \dn?
>
> We've done more than discuss it:
> http://git.postgresql.org/gitweb/?p=postgresql.git&a=commitdiff&h=e43fb604d6db229d70d3101aa5...
>
> I take it you're using something older than 9.1.
>
that's a quick reaction :D
--
Jaime Casanova www.2ndQuadrant.com
Professional PostgreSQL: Soporte 24x7 y capacitación
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: 291 pg_toast_temp schemas?
@ 2012-04-26 23:54 Josh Berkus <josh@agliodbs.com>
parent: Tom Lane <tgl@sss.pgh.pa.us>
1 sibling, 0 replies; 7+ messages in thread
From: Josh Berkus @ 2012-04-26 23:54 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-bugs
On 4/26/12 3:48 PM, Tom Lane wrote:
> Josh Berkus <josh@agliodbs.com> writes:
>> Also, have we discussed maybe hiding these schemas from \dn?
>
> We've done more than discuss it:
> http://git.postgresql.org/gitweb/?p=postgresql.git&a=commitdiff&h=e43fb604d6db229d70d3101aa5...
>
> I take it you're using something older than 9.1.
Yep, 9.0.7 per bug.
Thanks!
--
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com
^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2012-04-26 23:54 UTC | newest]
Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-04-26 17:34 291 pg_toast_temp schemas? Josh Berkus <josh@agliodbs.com>
2012-04-26 18:22 ` Tom Lane <tgl@sss.pgh.pa.us>
2012-04-26 22:35 ` Josh Berkus <josh@agliodbs.com>
2012-04-26 22:48 ` Jaime Casanova <jaime@2ndquadrant.com>
2012-04-26 22:48 ` Tom Lane <tgl@sss.pgh.pa.us>
2012-04-26 22:52 ` Jaime Casanova <jaime@2ndquadrant.com>
2012-04-26 23:54 ` Josh Berkus <josh@agliodbs.com>
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