Re: generating function default settings from pg_proc.dat - Mailing list pgsql-hackers

From Tom Lane
Subject Re: generating function default settings from pg_proc.dat
Date
Msg-id 1392601.1771341882@sss.pgh.pa.us
Whole thread Raw
In response to Re: generating function default settings from pg_proc.dat  (Andres Freund <andres@anarazel.de>)
Responses Re: generating function default settings from pg_proc.dat
List pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> If we convert to cstring below anyway, why not make it a cstring array?

Ha, I'd forgotten that cstring[] is a thing.  Yup, that'd save one
step.

> I don't mind the hack, but I wonder about it location. It's odd that the
> caller puts the return value of ConvertOneProargdefaultsValue() into the
> values array, but then ConvertOneProargdefaultsValue() also sets
> pronargdefaults?

Yeah, I'd gone back and forth about whether this function ought to
return the converted datum or just shove it into values[] directly.
Given that it's also filling the pronargdefaults entry, it probably
should take the latter approach.

I'll post a v2 in a bit.  Thanks for reviewing!

            regards, tom lane



pgsql-hackers by date:

Previous
From: Zsolt Parragi
Date:
Subject: Headerscheck support for meson
Next
From: Tom Lane
Date:
Subject: Re: AIX support