Re: Temp files on Commit - Mailing list pgsql-general

From Tom Lane
Subject Re: Temp files on Commit
Date
Msg-id 13893.1377186027@sss.pgh.pa.us
Whole thread Raw
In response to Temp files on Commit  ("Nicholson, Brad (Toronto, ON, CA)" <bnicholson@hp.com>)
Responses Re: Temp files on Commit  (bricklen <bricklen@gmail.com>)
List pgsql-general
"Nicholson, Brad (Toronto, ON, CA)" <bnicholson@hp.com> writes:
> I'm seeing cases where I have temp files being written on commit, such as.

> 2013-08-16 12:09:02 GMT [14480]: [588-1] user=dbuser,db=dbname STATEMENT:  COMMIT
> 2013-08-16 12:09:02 GMT [14480]: [589-1] user= dbuser,db=dbname LOG:  temporary file: path
"base/pgsql_tmp/pgsql_tmp14480.263",size 814822 

> Is this a case of having work_mem set to low, or something else?  I haven't seen temp files on commit before.

They're not being written on commit, they're being cleaned up.  That
message about tempfile usage isn't written until the file is deleted,
since we don't know its maximum size for sure until then.

There is some setting that controls whether such messages appear at
all, but I'm too lazy to go look it up right now.

            regards, tom lane


pgsql-general by date:

Previous
From: Don Parris
Date:
Subject: Re: Locale Issue
Next
From: bricklen
Date:
Subject: Re: Temp files on Commit