Re: Partitioning large table (140GB) - Mailing list pgsql-general

From Andrei Zhidenkov
Subject Re: Partitioning large table (140GB)
Date
Msg-id 87B2C428-2932-47BA-B1A6-7A68986D3DA9@n26.com
Whole thread Raw
In response to Re: Partitioning large table (140GB)  ("Ravi Krishna" <srkrishna@myself.com>)
List pgsql-general
You can also use extensions like pg_partman or pg_pathman. The last one allows to partition tables smoothly on live
environments.

> On 20. Nov 2019, at 11:49, Ravi Krishna <srkrishna@myself.com> wrote:
>
>> In our production, we use postgres 9.5 with streaming replication
>> using repmgr, there is a large table of 140GB size which receives
>> lots of inserts,
>> Is it possible to partition this table in this version of postgres?
>> and if so, please, can someone let me know the best way to accomplish
>> this and the best practices around it?
>
> In this version only inheritance is possible.  From my experience avoid using
> triggers for insert and let the application (if possible) directly write to the
> right table.
>
>
>
>




pgsql-general by date:

Previous
From: "Ravi Krishna"
Date:
Subject: Re: Partitioning large table (140GB)
Next
From: Soto Cuevas Manuel Alejandro
Date:
Subject: Re: PostGreSQL Replication and question on maintenance