From: Stephen Frost <sfrost@snowman.net>
To: Campbell, Lance <lance@illinois.edu>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: Partition tables in AWS RDS environment
Date: Mon, 10 Apr 2017 09:57:23 -0400
Message-ID: <20170410135722.GI9812@tamriel.snowman.net> (raw)
In-Reply-To: <B75CD08C73BD3543B97E4EF3964B7D7047B47CF7@CITESMBX1.ad.uillinois.edu>
References: <B75CD08C73BD3543B97E4EF3964B7D7047B47CF7@CITESMBX1.ad.uillinois.edu>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
Greetings, Lance,
* Campbell, Lance (lance@illinois.edu) wrote:
> My group is planning on moving our PostgreSQL install to AWS. We plan to use their RDS option for running PostgreSQL. When we make this move is there any reason to use Partitioned Tables on really large tables? Will we get any performance gain?
This really depends on what you're doing, exactly. Generally speaking,
I find that partitioning is great for data management (you're able to
get rid of an entire partition at a time, based on your retention
policy, for example) and it isn't what you look to for improving
individual query performance. Having smaller tables can make things a
bit easier for autovacuum, but 9.6 also has improvements that can make
VACUUMs much less painful (the all-frozen visability bit in the VM).
> I know we would get a performance gain on really large tables if we partitioned them and put their partitions in different table spaces that use different disks. However since we are looking at using the more generalized hands off automated AWS RDS PostgreSQL option I don't see us using table spaces and different disks. So would there be any gain in partitioning tables in the more automated AWS RDS PostgreSQL path?
This really depends on what your queries are doing. It's not
necessairly a guarantee that a given query will perform better if the
table is split up into partitions and spread across tablespaces.
In short, there isn't a simple answer to that question.
Thanks!
Stephen
Attachments:
signature.asc (application/pgp-signature, 818B) download
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-admin@postgresql.org
Cc: sfrost@snowman.net, lance@illinois.edu
Subject: Re: Partition tables in AWS RDS environment
In-Reply-To: <20170410135722.GI9812@tamriel.snowman.net>
* 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