Re: Is autovacuum too noisy about orphan temp tables? - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Is autovacuum too noisy about orphan temp tables?
Date
Msg-id 20081015225819.GJ6012@alvh.no-ip.org
Whole thread Raw
In response to Re: Is autovacuum too noisy about orphan temp tables?  (Greg Stark <greg.stark@enterprisedb.com>)
List pgsql-hackers
Greg Stark escribió:
> Can autovacuum just set a flag on the orphaned temp table's pg_class  
> record indicating it's been determined to be an orphan? Then other tools 
> could easily list orphaned tables and offer to delete them.

Add a new column to pg_class just for orphan tables?  Sure sounds
overkill.

Maybe a bit in the pgstats entry for the table ...?  It still seems like
useless bloat to me.

I wonder if we can find out whether a temp table is orphaned by some
other means (a query against catalogs + list of active backends?  It
still needs to know whether the table was created by this backend or a
previous one.)

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


pgsql-hackers by date:

Previous
From: Greg Stark
Date:
Subject: Re: Is autovacuum too noisy about orphan temp tables?
Next
From: Simon Riggs
Date:
Subject: Re: SlruPhysicalReadPage