Re: pgindent fixups - Mailing list pgsql-hackers

From Tom Lane
Subject Re: pgindent fixups
Date
Msg-id 20072.1462282846@sss.pgh.pa.us
Whole thread Raw
In response to pgindent fixups  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: pgindent fixups  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> 1. Is pgindent supposed to touch DATA() lines?  Because it does.

It always has.

> 2. CustomPathMethods is not in the buildfarm's typedefs.list.  Why not?

Probably because there are no variables, parameters, or fields declared
with that typedef, so it doesn't get into the debugger symbol table of
any .o file.  Grep says that the single use of the struct doesn't use
the typedef; it'sconst struct CustomPathMethods *methods;
So you'd need to change that, or else tweak some code somewhere to have
a variable explicitly declared using the typedef.

> - In src/backend/executor/execParallel.c, it dodges two cases where
> pgindent does stupid things with offsetof.

Well, it's also pretty stupid about sizeof, or casts generally, so
I'm not really convinced you need to get exercised about these two
places in particular.  But no objection to tweaking them if you
want to.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Merlin Moncure
Date:
Subject: Re: Processes and caches in postgresql
Next
From: Dave Cramer
Date:
Subject: Re: SPI_exec ERROR in pl/r of R 3.2.4 on PostgreSQL on Windows 7