Re: Generate pg_stat_get_* functions with Macros

Поиск
Список
Период
Сортировка
От Nathan Bossart
Тема Re: Generate pg_stat_get_* functions with Macros
Дата
Msg-id 20221210035545.GA196116@nathanxps13
обсуждение исходный текст
Ответ на Re: Generate pg_stat_get_* functions with Macros  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Generate pg_stat_get_* functions with Macros  (Michael Paquier <michael@paquier.xyz>)
Re: Generate pg_stat_get_* functions with Macros  ("Drouvot, Bertrand" <bertranddrouvot.pg@gmail.com>)
Список pgsql-hackers
On Fri, Dec 09, 2022 at 09:43:56PM -0500, Tom Lane wrote:
> Presumably it could be silenced by removing the semicolons after
> the new macro calls:

> The backslash after the last right brace means that the line
> following that is part of the macro body.  This does no harm as
> long as said line is blank ... but I think it's a foot-gun
> waiting to bite somebody, because visually you'd think the macro
> ends with the brace.  So I'd leave off that last backslash.

Indeed.  Patch attached.

-- 
Nathan Bossart
Amazon Web Services: https://aws.amazon.com

Вложения

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Generate pg_stat_get_* functions with Macros
Следующее
От: David Rowley
Дата:
Сообщение: Re: slab allocator performance issues