Re: Partitioning tables

From: "Jernigan, Kevin" <kmj(at)amazon(dot)com>
To: "Campbell, Lance" <lance(at)illinois(dot)edu>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Partitioning tables
Date: 2018-07-06 21:39:50
Message-ID: C534AEEF-8581-45F6-9B41-5B774995740A@amazon.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Assume you are reading and writing regularly to a given table.

1) When using Amazon RDS PostgreSQL 10, is there any reason to use table partitioning?
2) If so what might be a few simple examples of when to use it?
3) Also, if there is a reason then how large should a table be before it should be partitioned? I am just wanting some general idea or scope.

It is always a good idea to occasionally revaluate if going down a particular path still makes sense.

Thanks,

Lance

RDS for PostgreSQL 10, and prior versions of RDS for PostgreSQL, run on EBS storage. One key benefit of table partitioning is partition elimination for queries that would otherwise scan the entire table, and this benefit applies to RDS for PostgreSQL. More generally, the benefits described in the postgresql.org doc here - https://www.postgresql.org/docs/10/static/ddl-partitioning.html - are applicable for RDS for PostgreSQL, except for the last one listed – Seldom-used data can be migrated to cheaper and slower storage media.

Kevin Jernigan
Senior Product Manager
Amazon Aurora PostgreSQL
1-415-710-8828 (m)
kmj(at)amazon(dot)com<mailto:kmj(at)amazon(dot)com>
27 Melcher Street
Boston, MA 02210

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Shreeyansh Dba 2018-07-07 05:12:46 Re: "postgres" is needed by initdb but was not found
Previous Message Tom Lane 2018-07-06 20:51:39 Re: pg_restore error Command was: CREATE OPERATOR ~> ( PROCEDURE = plv8x.json_eval_ls,