Add index OID macro argument to DECLARE_INDEX

From: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Add index OID macro argument to DECLARE_INDEX
Date: 2021-06-21 07:23:09
Message-ID: ccef1e46-a404-25b1-9b4c-85f2c08e1f28@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


This patch changes places like this

DECLARE_UNIQUE_INDEX_PKEY(pg_aggregate_fnoid_index, 2650, on
pg_aggregate using btree(aggfnoid oid_ops));
#define AggregateFnoidIndexId 2650

to this

DECLARE_UNIQUE_INDEX_PKEY(pg_aggregate_fnoid_index, 2650,
AggregateFnoidIndexId, on pg_aggregate using btree(aggfnoid oid_ops));

and makes genbki.pl generate the #define's. This makes the handling of
catalog index OIDs consistent with the handling of catalog tables.
Compare with:

CATALOG(pg_aggregate,2600,AggregateRelationId)

Attachment Content-Type Size
0001-Add-index-OID-macro-argument-to-DECLARE_INDEX.patch text/plain 64.4 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Japin Li 2021-06-21 08:00:16 Re: Fix for segfault in logical replication on master
Previous Message Brar Piening 2021-06-21 06:56:13 Doc patch for Logical Replication Message Formats (PG14)