X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id DA22A9DCAE4 for ; Thu, 22 Dec 2005 21:52:36 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 05570-05 for ; Thu, 22 Dec 2005 21:52:40 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by postgresql.org (Postfix) with ESMTP id DF1879DCAAC for ; Thu, 22 Dec 2005 21:52:34 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.13.1/8.13.1) with ESMTP id jBN1qWrE096343 for ; Fri, 23 Dec 2005 01:52:32 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.13.1/8.13.1/Submit) id jBN1NCtC092185 for pgsql-admin@postgresql.org; Fri, 23 Dec 2005 01:23:12 GMT (envelope-from news) From: "Qingqing Zhou" X-Newsgroups: pgsql.admin Subject: Re: Pgstat.tmp file activity Date: Thu, 22 Dec 2005 20:24:17 -0500 Organization: Hub.Org Networking Services Lines: 25 Message-ID: References: X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 To: pgsql-admin@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=-1.393 required=5 tests=[ALL_TRUSTED=-1.44, AWL=0.047] X-Spam-Score: -1.393 X-Spam-Level: X-Archive-Number: 200512/288 X-Sequence-Number: 20008 ""Dan Austin"" 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