Re: Temporary tables and disk activity - Mailing list pgsql-general

From Tom Lane
Subject Re: Temporary tables and disk activity
Date
Msg-id 14584.1102905333@sss.pgh.pa.us
Whole thread Raw
In response to Re: Temporary tables and disk activity  (Phil Endecott <spam_from_postgresql_general@chezphil.org>)
Responses Re: Temporary tables and disk activity  (Phil Endecott <spam_from_postgresql_general@chezphil.org>)
List pgsql-general
Phil Endecott <spam_from_postgresql_general@chezphil.org> writes:
> Tom Lane wrote:
>> In principle, therefore, the kernel could hold temp table data in its
>> own disk buffers and never write it out to disk until the file is
>> deleted.  In practice, of course, the kernel doesn't know the data is
>> transient and will probably push it out whenever it has nothing else to
>> do.

> That makes sense.  I suspect that I am seeing writes every 5 seconds,
> which looks like bdflush / update.

> But my connections normally only last for a second at most.  In this
> case, surely the table would normally have been deleted before the
> kernel decided to write anything.

That does seem a bit odd, then.  Can you strace a typical backend
session and see if it's doing anything to force a disk write?

(I'm too lazy to go check right now whether 7.4 handled temp tables
exactly the same as CVS tip does.  I think it's the same but I might
be wrong.)

            regards, tom lane

pgsql-general by date:

Previous
From: ra ghu
Date:
Subject: problem in connecting to postgreserver
Next
From: Lonni J Friedman
Date:
Subject: disabling OIDs?