Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id D2F401337BF9 for ; Wed, 20 Apr 2011 12:43:58 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 23593-03 for ; Wed, 20 Apr 2011 15:43:51 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 3C7431337BF5 for ; Wed, 20 Apr 2011 12:43:51 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p3KFhmPn027647; Wed, 20 Apr 2011 11:43:48 -0400 (EDT) To: Andrew Dunstan cc: Bruce Momjian , Robert Haas , pgsql-hackers@postgresql.org Subject: Re: pgindent weirdness In-reply-to: <4DAEF8AB.5030103@dunslane.net> References: <201104200948.p3K9mY501163@momjian.us> <4DAEF8AB.5030103@dunslane.net> Comments: In-reply-to Andrew Dunstan message dated "Wed, 20 Apr 2011 11:15:55 -0400" Date: Wed, 20 Apr 2011 11:43:48 -0400 Message-ID: <27646.1303314228@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201104/1036 X-Sequence-Number: 186238 Andrew Dunstan writes: > On 04/20/2011 05:48 AM, Bruce Momjian wrote: >> BulkInsertStateData is not listed in the typedef list supplied by >> Andrew; see src/tools/pgindent/typedefs.list. CC'ing him. This might >> be because the typdef is listed in two files: > It's tagged as a structure type by objdump, but not as a typedef: Hmm. hio.h clearly declares it as both, but many object files probably include only heapam.h, which exposes only the struct name. I'm guessing that you are merging the results from objdump'ing different files in a way that fails to consider the possibility of some files knowing more versions of a symbol than others. Now having said that, there seems to be a pgindent bug here too, in that it's throwing a space into Buffer RelationGetBufferForTuple(Relation relation, Size len, Buffer otherBuffer, int options, struct BulkInsertStateData * bistate) Whether BulkInsertStateData is flagged as a typedef or not, surely it ought to understand that "struct BulkInsertStateData" is a type name. regards, tom lane