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 babaf666-eaf6-e376-815c-87b9d636a12d@enterprisedb.com
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  (Nikita Malakhov <hukutoc@gmail.com>)
Re: Array initialisation notation in syscache.c  (Thomas Munro <thomas.munro@gmail.com>)
List pgsql-hackers
On 21.12.22 04:16, Thomas Munro wrote:
> On Wed, Dec 21, 2022 at 1:33 PM Thomas Munro <thomas.munro@gmail.com> wrote:
>>          KEY(Anum_pg_attribute_attrelid,
>>              Anum_pg_attribute_attnum),
> 
> I independently rediscovered that our VA_ARGS_NARGS() macro in c.h
> always returns 1 on MSVC via trial-by-CI.  Derp.  Here is the same
> patch, no change from v2, but this time accompanied by Victor Spirin's
> fix, which I found via one of the tab-completion-is-busted-on-Windows
> discussions.  I can't supply a useful commit message, because I
> haven't understood why it works, but it does indeed seem to work and
> this should make cfbot green.

This looks like a good improvement to me.

(I have also thought about having this generated from the catalog 
definition files somehow, but one step at a time ...)




pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: float4in_internal
Next
From: vignesh C
Date:
Subject: Re: Support logical replication of DDLs