Re: reduce size of table partitioned - Mailing list pgsql-admin

From Ron Johnson
Subject Re: reduce size of table partitioned
Date
Msg-id CANzqJaDR8YnjXm2w0N9y519PsfC_jVQfOZu9ZqXNHSkOJLXxgQ@mail.gmail.com
Whole thread Raw
In response to reduce size of table partitioned  (Erik Serrano <eserranos@gmail.com>)
List pgsql-admin
On Sat, Jan 27, 2024 at 8:31 AM Erik Serrano <eserranos@gmail.com> wrote:
Dear All,

Good morning, I have a small doubt regarding a partitioned table, which has its "mother" table and many "daughter" tables, well the main question is... I need to reduce the size of my partitioned table, I can simply delete ( drop table) the oldest daughter tables??? or it is not recommended....or maybe there is another method to do this??

Detaching and dropping will (as mentioned by Holger) certainly reduce the size of your partitioned table.

Remember, though, that you might have partitioned the table by some other key besides a date field.

pgsql-admin by date:

Previous
From: Erik Serrano
Date:
Subject: Re: reduce size of table partitioned
Next
From: Laurenz Albe
Date:
Subject: Re: pg_dumpall and owner of the extension