Re: optimizing CleanupTempFiles

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Simon Riggs <simon(at)2ndQuadrant(dot)com>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: optimizing CleanupTempFiles
Date: 2008-09-17 21:40:25
Message-ID: 20080917214025.GG3855@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2008-09-17 21:54:49 Re: optimizing CleanupTempFiles
Previous Message Alvaro Herrera 2008-09-17 21:34:52 Re: optimizing CleanupTempFiles