Re: reduce size of table partitioned

Поиск
Список
Период
Сортировка
От Holger Jakobs
Тема Re: reduce size of table partitioned
Дата
Msg-id 8c02f719-5aba-5601-143a-fc8a60f1babf@jakobs.com
обсуждение исходный текст
Ответ на reduce size of table partitioned  (Erik Serrano <eserranos@gmail.com>)
Ответы Re: reduce size of table partitioned  (Erik Serrano <eserranos@gmail.com>)
Список pgsql-admin
Am 27.01.24 um 14:31 schrieb Erik Serrano:
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??

From already thank you very much
Greetings


Erik R. Serrano Saavedra
Ingeniero de Sistemas Informáticos
      Data Base Administrator
        eserranos@gmail.com
                 998596691

see here:
https://www.postgresql.org/docs/current/ddl-partitioning.html#DDL-PARTITIONING-OVERVIEW

Dropping an individual partition using DROP TABLE, or doing ALTER TABLE DETACH PARTITION, is far faster than a bulk operation. These commands also entirely avoid the VACUUM overhead caused by a bulk DELETE.
-- Holger Jakobs, Bergisch Gladbach, Tel. +49-178-9759012

Вложения

В списке pgsql-admin по дате отправления:

Предыдущее
От: Erik Serrano
Дата:
Сообщение: reduce size of table partitioned
Следующее
От: Mahendra Singh
Дата:
Сообщение: Setup load balancing using HAProxy