Re: Partitionning: support for Truncate Table WHERE - Mailing list pgsql-hackers

From Craig Ringer
Subject Re: Partitionning: support for Truncate Table WHERE
Date
Msg-id CAMsr+YG4F4Qm8uiPr1MSV2URq5y2hp7mp-c9he_ft-Nh8Vr9dA@mail.gmail.com
Whole thread Raw
In response to Partitionning: support for Truncate Table WHERE  (legrand legrand <legrand_legrand@hotmail.com>)
Responses Re: Partitionning: support for Truncate Table WHERE
List pgsql-hackers
On 7 December 2016 at 07:29, legrand legrand
<legrand_legrand@hotmail.com> wrote:

> Working in a DSS environment, we often need to truncate table partitions
> regarding a WHERE condition and have to
> [...]
> Would be pleased to ear your feedback regarding this.

It sounds like something that'd be useful to do on top of declarative
partitioning, once that is merged. Perhaps you could start by reading
and testing the declarative partitioning patch. That'll give you a
better idea of the practicalities of doing what you propose on top of
it, and give you an opportunity to suggest changes to the declarative
partitioning scheme that might make conditional truncate easier later.

-- Craig Ringer                   http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services



pgsql-hackers by date:

Previous
From: Craig Ringer
Date:
Subject: Re: Back-patch use of unnamed POSIX semaphores for Linux?
Next
From: Jim Nasby
Date:
Subject: Re: Separate connection handling from backends