From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>, Simon Riggs <simon(at)2ndQuadrant(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: optimizing CleanupTempFiles |
Date: | 2008-09-18 15:06:54 |
Message-ID: | 20080918150654.GA3868@alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Tom Lane wrote:
> Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com> writes:
> > Tom Lane wrote:
> >> [ blink... ] Doesn't look like that should happen. What is your
> >> test case?
This was simply a CREATE TEMP TABLE ... ON COMMIT DROP. The file stays
in place until checkpoint (either a manually invoked one, or a
shutdown's)
Don't temp tables use this kind of temp file? I admit I didn't check; I
just assumed they did.
> > Hmph, must be because of the patch from last winter to prevent
> > relfilenode reuse until next checkpoint.
>
> Ah. I had misunderstood Alvaro to say that temp files (the kind under
> discussion up to now) were not unlinked immediately; which would be
> pretty strange given that fd.c is underneath md.c.
The test case where I actually verify that fd.c was used was a WITH
SCROLL cursor. The file does go away like I expected in that case, as
soon as the cursor is destroyed (or as soon as the backend is closed).
--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.
From | Date | Subject | |
---|---|---|---|
Next Message | Greg Sabino Mullane | 2008-09-18 15:25:10 | Re: Do we really need a 7.4.22 release now? |
Previous Message | Simon Riggs | 2008-09-18 14:59:19 | Re: Subtransaction commits and Hot Standby |