From: rihad <rihad@mail.ru>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: pgsql-general General <pgsql-general@postgresql.org>
Subject: Re: Changing work_mem
Date: Tue, 13 Aug 2019 19:59:20 +0400
Message-ID: <6d170b3b-17b7-8e02-bbf6-2a6885b317eb@mail.ru> (raw)
In-Reply-To: <ea6b62a3-4aff-cba4-df02-d323073dcbce@2ndquadrant.com>
References: <2cbec921-a0c2-016f-1831-82dd45106af3@mail.ru>
<ea6b62a3-4aff-cba4-df02-d323073dcbce@2ndquadrant.com>
On 08/13/2019 07:41 PM, Peter Eisentraut wrote:
> On 2019-08-13 17:16, rihad wrote:
>> If I increase it in postgresql.conf and SIGHUP the master server, will
>> the change be applied to all running backends, or only to the ones
>> started after the change? Thanks.
> It will be applied to all running backends.
>
Thanks, but this isn't what I'm seeing in the logs.
After I increased work_mem from 256MB to 512MB I still see lines even
with very small files created as before, including much larger ones,
hundreds of MB.
[dbname] LOG: temporary file: path
"base/pgsql_tmp/pgsql_tmp93683.257381", size 594
It seems unlikely that the temp file is still 594 bytes bigger than
512MB after the change.
Maybe some other stuff unconditionally creates temp files regardless of
what's in work_mem?
All these "tempies" are the reason our SSD disks hosting a single
database are seeing 1TB writes in a day, according to SMART.
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-general@postgresql.org
Cc: rihad@mail.ru, peter.eisentraut@2ndquadrant.com
Subject: Re: Changing work_mem
In-Reply-To: <6d170b3b-17b7-8e02-bbf6-2a6885b317eb@mail.ru>
References: <2cbec921-a0c2-016f-1831-82dd45106af3@mail.ru> <ea6b62a3-4aff-cba4-df02-d323073dcbce@2ndquadrant.com> <6d170b3b-17b7-8e02-bbf6-2a6885b317eb@mail.ru>
* 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