Re: Technical guidance for a large partition table - Mailing list pgsql-admin

From Laurenz Albe
Subject Re: Technical guidance for a large partition table
Date
Msg-id dc39fd4d13f80336f9080bf290f4ca7c90c33982.camel@cybertec.at
Whole thread Raw
In response to Technical guidance for a large partition table  (John Scalia <jayknowsunix@gmail.com>)
List pgsql-admin
On Sun, 2021-05-09 at 19:18 -0400, John Scalia wrote:
> I have a dev team requesting that I partition 3 very large tables with more 2 billion rows each.
>  I’ve already got the partition key decided for each with a script which will create a copy of
>  original with the partition declaration, along with the partition child tables.
> [...]
> FYI, this is production instance that is regularly updated by field technicians.
>  Quite literally, I cannot perform two sequential select count(*) from any of these tables
>  which will return the same row counts.

From v13 on, you should be able to use logical replication to partition a table with
little downtime.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com




pgsql-admin by date:

Previous
From: Keith
Date:
Subject: Re: Technical guidance for a large partition table
Next
From: rammohan ganapavarapu
Date:
Subject: Changing wal_level