From: Qingqing Zhou <zhouqq@cs.toronto.edu>
To: pgsql-admin@postgresql.org
Subject: Re: Pgstat.tmp file activity
Date: Thu, 22 Dec 2005 20:24:17 -0500
Message-ID: <dofjhs$2pqd$1@news.hub.org> (raw)
References: <ED242F3A9037824A952B71B480A5D7ED6DFAB9@ausyd-exmb01.au.ad.westfield.com>
""Dan Austin"" <DAustin@au.westfield.com> wrote
>
> I take it that the file gets renamed almost immediately because we can
> also see writes to the parent directory -- but never see the file itself
> using ls.
>
I think so.
>
> /export/data/pgsql/data/base/64920741/pgsql_tmp/pgsql_tmp966.9
>
> What are these files used for? In this particular sample, that file was
> being written to a lot. Perhaps we're running out of memory for some
> sorting?
>
These files could be generated by several situations to store intermediate
data. For example, hash join and external sort. For sort, if you increase
sort_mem, then you may avoid/alleviate usage of temp file.
Regards,
Qingqing
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: zhouqq@cs.toronto.edu
Subject: Re: Pgstat.tmp file activity
In-Reply-To: <dofjhs$2pqd$1@news.hub.org>
References: <ED242F3A9037824A952B71B480A5D7ED6DFAB9@ausyd-exmb01.au.ad.westfield.com> <dofjhs$2pqd$1@news.hub.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox