Re: move DECLARE_INDEX from indexing.h?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
Cc: Pg Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: move DECLARE_INDEX from indexing.h?
Date: 2020-03-06 19:30:36
Message-ID: 17117.1583523036@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> writes:
> 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?

FWIW, I think it's just fine as-is, for the same reason that CREATE INDEX
is a separate command from CREATE TABLE. The indexes on a table are not
part of the table data; to some extent they're an implementation detail.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2020-03-06 19:33:18 Re: Should we remove a fallback promotion? take 2
Previous Message Julien Rouhaud 2020-03-06 19:19:17 Re: WAL usage calculation patch