"Nicholson, Brad (Toronto, ON, CA)" <bnicholson(at)hp(dot)com> writes:
> I'm seeing cases where I have temp files being written on commit, such as.
> 2013-08-16 12:09:02 GMT : [588-1] user=dbuser,db=dbname STATEMENT: COMMIT
> 2013-08-16 12:09:02 GMT : [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
In response to
pgsql-general by date
|Next:||From: bricklen||Date: 2013-08-22 15:44:42|
|Subject: Re: Temp files on Commit|
|Previous:||From: Don Parris||Date: 2013-08-22 15:29:56|
|Subject: Re: Locale Issue|