Re: Proposal: Global Index - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Proposal: Global Index
Date
Msg-id 19464.1572444806@sss.pgh.pa.us
Whole thread Raw
In response to Proposal: Global Index  (Ibrar Ahmed <ibrar.ahmad@gmail.com>)
Responses Re: Proposal: Global Index  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
Ibrar Ahmed <ibrar.ahmad@gmail.com> writes:
> A global index by very definition is a single index on the parent table
> that maps to many
> underlying table partitions.

I believe that the current design of partitioning is explicitly intended
to avoid the need for such a construct.  It'd be absolutely disastrous
to have such a thing from many standpoints, including the breadth of
locking needed to work with the global index, the difficulty of vacuuming,
and the impossibility of cheaply attaching or detaching partitions.

In other words, this is a "feature" we do not want.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Add SQL function to show total block numbers in the relation
Next
From: Asif Rehman
Date:
Subject: Re: WIP/PoC for parallel backup