Re: Array initialisation notation in syscache.c - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Array initialisation notation in syscache.c
Date
Msg-id b5d094e9-560c-bddb-015a-d39a57d64139@eisentraut.org
Whole thread Raw
In response to Re: Array initialisation notation in syscache.c  (Thomas Munro <thomas.munro@gmail.com>)
Responses Re: Array initialisation notation in syscache.c
List pgsql-hackers
On 31.03.23 04:16, Thomas Munro wrote:
>  From the light relief department, here is some more variadic macrology:
> 
> -       tp = SearchSysCache1(TSPARSEROID, ObjectIdGetDatum(prsId));
> +       tp = SearchSysCache(TSPARSEROID, ObjectIdGetDatum(prsId));

I'm worried that if we are removing the variants with the explicit 
numbers, it will make it difficult for extensions to maintain 
compatibility with previous PG major versions.  They would probably have 
to copy much of your syscache.h changes into their own code.  Seems messy.




pgsql-hackers by date:

Previous
From: Ryoga Yoshida
Date:
Subject: Re: Bug fix in vacuumdb --buffer-usage-limit xxx -Z
Next
From: Amit Kapila
Date:
Subject: Re: [PoC] pg_upgrade: allow to upgrade publisher node