From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Peter Geoghegan <pg@bowt.ie>
Cc: David Rowley <david.rowley@2ndquadrant.com>
Cc: Alex V. <in_flight@pclovers.ru>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Cc: tgl <tgl@sss.pgh.pa.us>
Subject: Re: Table partition with primary key in 11.3
Date: Fri, 7 Jun 2019 12:09:59 -0400
Message-ID: <20190607160959.GA21111@alvherre.pgsql> (raw)
In-Reply-To: <CAH2-WzkP9wD=fYUQh+SGh+kFJc9AngsjfiUegQKvd4ZyYWk8JQ@mail.gmail.com>
On 2019-Jun-07, Peter Geoghegan wrote:
> On Thu, Jun 6, 2019 at 3:00 PM David Rowley
> <david.rowley@2ndquadrant.com> wrote:
> > You may already be aware, but another use case for such variable-width
> > identifiers was with indirect indexes as discussed in [1]
>
> Right. I went with global indexes because indirect indexes are
> probably a lot more risky as a project. I'd be particularly concerned
> about the complexity of VACUUM there, whereas that doesn't seem all
> that bad in the case of global indexes.
I think vacuuming for global indexes is somewhat challenging as well :-)
Maybe not as much as for indirect indexes, that's true.
In order for it to be sustainable, I think you'll want to reuse
partition identifiers when the partitions are dropped/detached, which
means that you need a way to ensure that index entries to those
partitions are removed from all indexes.
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: alvherre@2ndquadrant.com, pg@bowt.ie, david.rowley@2ndquadrant.com, in_flight@pclovers.ru, tgl@sss.pgh.pa.us
Subject: Re: Table partition with primary key in 11.3
In-Reply-To: <20190607160959.GA21111@alvherre.pgsql>
References: <CAH2-WzkP9wD=fYUQh+SGh+kFJc9AngsjfiUegQKvd4ZyYWk8JQ@mail.gmail.com> <20190607160959.GA21111@alvherre.pgsql>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox