Re: Generate pg_stat_get_xact*() functions with Macros

Поиск
Список
Период
Сортировка
От Drouvot, Bertrand
Тема Re: Generate pg_stat_get_xact*() functions with Macros
Дата
Msg-id 1b1222c8-ff02-7adc-4636-786e1dab6d3d@gmail.com
обсуждение исходный текст
Ответ на Re: Generate pg_stat_get_xact*() functions with Macros  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
Hi,

On 1/6/23 12:21 AM, Andres Freund wrote:
> Hi,
> 
> On 2023-01-05 15:19:54 -0500, Corey Huinker wrote:
>> It does get me wondering, however, if we reordered the three typedefs to
>> group like-typed registers together, we could make them an array with the
>> names becoming defined constant index values (or keeping them via a union),
>> then the typedefs effectively become:
> 
> I think that'd make it substantially enough harder to work with the
> datastructures that I don't want to go there.
> 

Yeah, I think that's a good idea from a "coding style" point of view but harder to work with.

Regards,

-- 
Bertrand Drouvot
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com



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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: [RFC] Add jit deform_counter
Следующее
От: Jelte Fennema
Дата:
Сообщение: Re: Sampling-based timing for EXPLAIN ANALYZE