Re: reduce size of table partitioned

Поиск
Список
Период
Сортировка
От Ron Johnson
Тема Re: reduce size of table partitioned
Дата
Msg-id CANzqJaDR8YnjXm2w0N9y519PsfC_jVQfOZu9ZqXNHSkOJLXxgQ@mail.gmail.com
обсуждение исходный текст
Ответ на reduce size of table partitioned  (Erik Serrano <eserranos@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Erik Serrano
Дата:
Сообщение: Re: reduce size of table partitioned
Следующее
От: Laurenz Albe
Дата:
Сообщение: Re: pg_dumpall and owner of the extension