Re: New "single-call SRF" APIs are very confusingly named

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: New "single-call SRF" APIs are very confusingly named
Дата
Msg-id 20221016220443.vjd7a5dj34gj7vck@awork3.anarazel.de
обсуждение исходный текст
Ответ на Re: New "single-call SRF" APIs are very confusingly named  (Melanie Plageman <melanieplageman@gmail.com>)
Ответы Re: New "single-call SRF" APIs are very confusingly named  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
Hi,

On 2022-10-16 13:22:41 -0700, Melanie Plageman wrote:
> On Fri, Oct 14, 2022 at 7:41 PM Michael Paquier <michael@paquier.xyz> wrote:
> - * SetSingleFuncCall
> + * Compatibility function for v15.
> + */
> +void
> +SetSingleFuncCall(FunctionCallInfo fcinfo, bits32 flags)
> +{
> + InitMaterializedSRF(fcinfo, flags);
> +}
> +
> 
>  Any reason not to use a macro?

Yes - it'd introduce an ABI break, i.e. an already compiled extension
referencing SetSingleFuncCall() wouldn't fail to load into an upgraded sever,
due to the reference to the SetSingleFuncCall, which wouldn't exist anymore.

Greetings,

Andres Freund



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: macos ventura SDK spews warnings
Следующее
От: Andres Freund
Дата:
Сообщение: Re: New "single-call SRF" APIs are very confusingly named