Re: optimizing CleanupTempFiles - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: optimizing CleanupTempFiles
Date
Msg-id 20080917214025.GG3855@alvh.no-ip.org
Whole thread Raw
In response to Re: optimizing CleanupTempFiles  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-hackers
Alvaro Herrera wrote:
> Simon Riggs wrote:

> > Simple solution is to have a state variable so you can see whether a
> > backend has created an temp files in this transaction. Most don't, so I
> > think the above two solutions are overkill. If we created any, scan for
> > them, if not, don't. Just a simple boolean state, just as we have for
> > AtEOXact_RelationCache().
> 
> Ah -- like this?

BTW I wonder if there's any point in checking SizeVfdCache > 0 in the
places where checking the new flag suffices.


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


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: optimizing CleanupTempFiles
Next
From: Tom Lane
Date:
Subject: Re: optimizing CleanupTempFiles