pg.ddx.io pgsql-hackers@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Andres Freund <andres@2ndquadrant.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Peter Eisentraut <peter_e@gmx.net>
Cc: Michael Paquier <michael.paquier@gmail.com>
Cc: Jim Nasby <jim@nasby.net>
Cc: PostgreSQL mailing lists <pgsql-hackers@postgresql.org>
Subject: Re: REINDEX CONCURRENTLY 2.0
Date: Fri, 14 Nov 2014 17:47:05 +0100
Message-ID: <20141114164705.GF11733@alap3.anarazel.de> (raw )
In-Reply-To: <CA+TgmoaeRPm1u6uaie4khwOVBPGfBiBnA94xQbD19U1mck_vXw@mail.gmail.com >
References: <20140827064120.GZ21544@awork2.anarazel.de >
<CAB7nPqSdSMeQMCvtt9P+ndfao5ALpVPDEMmaBPVjNiifLzb=3Q@mail.gmail.com >
<CAB7nPqSyZhdc-gvwm3KyueoceFJSX5ypQAx_rsJ2DWr5nHtixA@mail.gmail.com >
<545B8AD2.8030203@gmx.net >
<CA+TgmoZtd=sa8LD0tnWgRDzx-Zzt_g_FnPf9jtj61z_rbuse6w@mail.gmail.com >
<CA+TgmoZ=0NMfMVjemYjO0zWFi8PS3OMZCEsqimcgc34U8UKQeg@mail.gmail.com >
<20141112213912.GH13473@awork2.anarazel.de >
<CA+TgmoZkJu-R58mBUVCJzFJvgeiQyJ2_1RfrZh6gy5LSzyCSag@mail.gmail.com >
<20141113003106.GJ13473@awork2.anarazel.de >
<CA+TgmoaeRPm1u6uaie4khwOVBPGfBiBnA94xQbD19U1mck_vXw@mail.gmail.com >
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
On 2014-11-13 11:41:18 -0500, Robert Haas wrote:
> On Wed, Nov 12, 2014 at 7:31 PM, Andres Freund <andres@2ndquadrant.com> wrote:
> > But I think it won't work realistically. We have a *lot* of
> > infrastructure that refers to indexes using it's primary key. I don't
> > think we want to touch all those places to also disambiguate on some
> > other factor. All the relevant APIs are either just passing around oids
> > or relcache entries.
>
> I'm not quite following this. The whole point is to AVOID having two
> indexes. You have one index which may at times have two sets of
> physical storage.
Right. But how are we going to refer to these different relfilenodes?
All the indexing infrastructure just uses oids and/or Relation pointers
to refer to the index. How would you hand down the knowledge which of
the relfilenodes is supposed to be used in some callchain?
There's ugly solutions like having a flag like 'bool
rd_useotherfilenode' inside struct RelationData, but even ignoring the
uglyness I don't think that'd work well - what if some function called
inside the index code again starts a index lookup?
I think I might just not getting your idea here?
> > And all the
> > indexing infrastructure can't deal with that without having separate
> > oids & relcache entries.
Hopefully explained above?
Greetings,
Andres Freund
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
view thread (170+ messages) latest in thread
Message-ID: <20141114164705.GF11733@alap3.anarazel.de>
Permalink: ../20141114164705.GF11733@alap3.anarazel.de/
Also on: postgresql.org/message-id/20141114164705.GF11733@alap3.anarazel.de
copy link · copy postgr.es
reply 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 using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: andres@2ndquadrant.com, robertmhaas@gmail.com, peter_e@gmx.net, michael.paquier@gmail.com, jim@nasby.net
Subject: Re: REINDEX CONCURRENTLY 2.0
In-Reply-To: <20141114164705.GF11733@alap3.anarazel.de>
* 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