Re: pgindent vs dtrace on macos

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: pgindent vs dtrace on macos
Дата
Msg-id 20200921193734.GA3486@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: pgindent vs dtrace on macos  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 2020-Sep-21, Tom Lane wrote:

> > ... isn't this more likely to create a typedef entry than merely a
> > function name?
> 
> Well, yeah, it *is* a typedef.  My proposal is to rename the C function
> to avoid the conflict, rather than renaming the typedef.  Given the
> small number of direct calls (none), that's a lot less work.  Also,
> I think pgtypes_numeric.h is exposed to ecpg client code, so changing
> that typedef's name could be quite problematic.

Ah, of course.

The idea of adding the names to pgindent's %blacklist results in severe
uglification, particularly in the regex code, so +1 for your workaround.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pgindent vs dtrace on macos
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Improper use about DatumGetInt32