Re: Improve default partition - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Improve default partition
Date
Msg-id 20190820205005.GA25823@alvherre.pgsql
Whole thread Raw
In response to Improve default partition  (Rafia Sabih <rafia.pghackers@gmail.com>)
List pgsql-hackers
On 2019-Aug-20, Rafia Sabih wrote:

> This does not sound very convenient. I was thinking of having some
> mechanism for such insertions which automatically creates a default
> partition and gives a notice for the user to know that it is going to
> the default partition. Basically, always having a default partition.
> After all default is something that remains there by default, isn't
> it?

There are shortcomings to having a default partition, so I don't think
this would be an universally welcome feature.

I think auto-creation of partitions might be useful in some cases, but
not by default since there are caveats (possibility of deadlocks) and
not of the default partition.

The major problem I see with the default partition is that there's no
way to create a partition that overlaps existing contents of the default
partition, short of blocking everyone.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Fix typos and inconsistencies for HEAD (take 11)
Next
From: Andres Freund
Date:
Subject: Re: Inadequate executor locking of indexes