Re: Common function for percent placeholder replacement

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Common function for percent placeholder replacement
Дата
Msg-id 8228593d-1ebc-e061-2c61-3815bb364385@enterprisedb.com
обсуждение исходный текст
Ответ на Re: Common function for percent placeholder replacement  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Ответы Re: Common function for percent placeholder replacement  (Corey Huinker <corey.huinker@gmail.com>)
Re: Common function for percent placeholder replacement  (Nathan Bossart <nathandbossart@gmail.com>)
Список pgsql-hackers
On 19.12.22 10:51, Alvaro Herrera wrote:
> I think the new one is not great.  I wish we could do something more
> straightforward, maybe like
> 
>    replace_percent_placeholders(base_command,
>                                 PERCENT_OPT("f", filename),
>                                 PERCENT_OPT("d", target_detail));
> 
> Is there a performance disadvantage to a variadic implementation?
> Alternatively, have all these macro calls form an array.

How about this new one with variable arguments?

(Still need to think about Robert's comment about lack of error context.)

Вложения

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

Предыдущее
От: Noah Misch
Дата:
Сообщение: Re: meson files copyright
Следующее
От: John Naylor
Дата:
Сообщение: Re: [PoC] Improve dead tuple storage for lazy vacuum