From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: Mariel Cherkassky <mariel.cherkassky@gmail.com>
Cc: pgsql-admin@lists.postgresql.org
Cc: pgsql-performance@lists.postgresql.org
Subject: Re: does work_mem is used on temp tables?
Date: Thu, 11 Oct 2018 08:41:56 +0100
Message-ID: <87efcx7wz1.fsf@news-spur.riddles.org.uk> (raw)
In-Reply-To: <CA+t6e1=O+9MWJ4MDxphf5AuQsUanPzYNGMidp-jK2y44VzOBvA@mail.gmail.com>
References: <CA+t6e1=O+9MWJ4MDxphf5AuQsUanPzYNGMidp-jK2y44VzOBvA@mail.gmail.com>
>>>>> "Mariel" == Mariel Cherkassky <mariel.cherkassky@gmail.com> writes:
Mariel> Hi,
Mariel> Does the work mem is used when I do sorts or hash operations on
Mariel> temp tables ? Or the temp_buffer that is allocated at the
Mariel> beginning of the session is used for it ?
work_mem is used for sorts and hashes regardless of what type the
underlying table (if any) is.
temp_buffers is used to buffer the actual _content_ of temp tables.
--
Andrew (irc:RhodiumToad)
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 using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: andrew@tao11.riddles.org.uk, mariel.cherkassky@gmail.com, pgsql-admin@lists.postgresql.org, pgsql-performance@lists.postgresql.org
Subject: Re: does work_mem is used on temp tables?
In-Reply-To: <87efcx7wz1.fsf@news-spur.riddles.org.uk>
* 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