Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 063A91337BD3 for ; Wed, 20 Apr 2011 13:06:05 -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 39827-01-2 for ; Wed, 20 Apr 2011 16:05:57 +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 C34AA1337C0A for ; Wed, 20 Apr 2011 13:04:19 -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 p3KG4Gmq028017; Wed, 20 Apr 2011 12:04:16 -0400 (EDT) To: Bruce Momjian cc: Andrew Dunstan , Robert Haas , pgsql-hackers@postgresql.org Subject: Re: pgindent weirdness In-reply-to: <201104201550.p3KFoxA17469@momjian.us> References: <201104201550.p3KFoxA17469@momjian.us> Comments: In-reply-to Bruce Momjian message dated "Wed, 20 Apr 2011 11:50:59 -0400" Date: Wed, 20 Apr 2011 12:04:16 -0400 Message-ID: <28016.1303315456@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/1043 X-Sequence-Number: 186245 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. regards, tom lane