pg.ddx.io pgsql-performance@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Josh Berkus <josh@agliodbs.com>
To: Dave Johansen <davejohansen@gmail.com>
To: pgsql-performance <pgsql-performance@postgresql.org>
Subject: Re: Partitions and work_mem?
Date: Wed, 15 Oct 2014 10:10:58 -0700
Message-ID: <543EAAA2.8010701@agliodbs.com> (raw )
In-Reply-To: <WM!5fdd5ac9d18da5bfa0e8e7d6b818177909c920ad8c5054b4b25187213867bf59b65cc1c417195ceb9f339276cfefc500!@asav-3.01.com >
References: <CAAcYxUd--XzHPRsr3wz++x8HLzFUGLYyWUt4vy6+zTup+cviLw@mail.gmail.com >
<WM!5fdd5ac9d18da5bfa0e8e7d6b818177909c920ad8c5054b4b25187213867bf59b65cc1c417195ceb9f339276cfefc500!@asav-3.01.com >
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>
On 10/14/2014 10:08 AM, Dave Johansen wrote:
> I'm running Postgres 8.4 on RHEL 6 64-bit and I had a question about how
> work_mem and partitions interact.
>
> https://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server#work_mem
> The above wiki states that "if a query involves doing merge sorts of 8
> tables, that requires 8 times work_mem." If I have a table that is
> partitioned does each partition count as a "table" and get its on work_mem?
In theory, this could happen. In practice, based on tests I did at Sun
with DBT3 and 8.3, no backend ever used more than 3X work_mem. This is
partly because the level of parallelism in postgres is extremely
limited, so we can't actually sort 8 partitions at the same time.
BTW, 8.4 is EOL. Maybe time to upgrade?
--
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com
--
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance
view thread (15+ messages) latest in thread
Message-ID: <543EAAA2.8010701@agliodbs.com>
Permalink: ../543EAAA2.8010701@agliodbs.com/
Also on: postgresql.org/message-id/543EAAA2.8010701@agliodbs.com
copy link · copy postgr.es
reply 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: josh@agliodbs.com, davejohansen@gmail.com
Subject: Re: Partitions and work_mem?
In-Reply-To: <543EAAA2.8010701@agliodbs.com>
* 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