Re: move DECLARE_INDEX from indexing.h?

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Pg Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: move DECLARE_INDEX from indexing.h?
Date: 2020-03-06 18:31:47
Message-ID: 20200306183147.GA28255@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2020-Mar-06, Alvaro Herrera wrote:

> In his long bootstrap-reworking thread[1] John Naylor initially proposed
> moving the DECLARE_INDEX lines from indexing.h to each of the
> corresponding catalog files. However, in the end that wasn't done;
> these lines are still in indexing.h. Is there a reason for this?
> Wouldn't it make more sense to have the indexes for pg_attribute appear
> in catalog/pg_attribute.h, and so forth?

(In a quick experiment, simply moving the pg_aggregate indexes from
indexing.h to pg_aggregate.h appears to work with no further changes.)

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2020-03-06 18:54:35 Re: proposal: schema variables
Previous Message Alvaro Herrera 2020-03-06 18:20:53 move DECLARE_INDEX from indexing.h?