Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id C5B0E1337BD3 for ; Wed, 20 Apr 2011 13:13:21 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 43448-04-3 for ; Wed, 20 Apr 2011 16:13:14 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from momjian.us (momjian.us [70.90.9.53]) by mail.postgresql.org (Postfix) with ESMTP id 1DC2E1337BDC for ; Wed, 20 Apr 2011 13:13:10 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id p3KGD8u11946; Wed, 20 Apr 2011 12:13:08 -0400 (EDT) From: Bruce Momjian Message-Id: <201104201613.p3KGD8u11946@momjian.us> Subject: Re: pgindent weirdness In-Reply-To: <28016.1303315456@sss.pgh.pa.us> To: Tom Lane Date: Wed, 20 Apr 2011 12:13:08 -0400 (EDT) CC: Andrew Dunstan , Robert Haas , pgsql-hackers@postgresql.org X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" 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/1045 X-Sequence-Number: 186247 Tom Lane wrote: > Bruce Momjian writes: > > Tom Lane wrote: > >> 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. > > > Uh, I think we have this listed as a known bug at the top of the > > pgindent script: > > Hm. I guess the third observation is that in the current state of the > code, there's no very good reason to be using "struct" in > RelationGetBufferForTuple's prototype anyway, since the typedef is > declared right above it. Maybe we should just change that and not > risk fooling with pgindent. Probably. :-( -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +