Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 0CF7F1337B54 for ; Wed, 20 Apr 2011 14:10:29 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 03629-05 for ; Wed, 20 Apr 2011 17:10:11 +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 42A561337BDB for ; Wed, 20 Apr 2011 14:10:07 -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 p3KHA5ap013549; Wed, 20 Apr 2011 13:10:05 -0400 (EDT) To: Aidan Van Dyk cc: Andrew Dunstan , Bruce Momjian , Robert Haas , pgsql-hackers@postgresql.org Subject: Re: pgindent weirdness In-reply-to: References: <201104200948.p3K9mY501163@momjian.us> <4DAEF8AB.5030103@dunslane.net> <27646.1303314228@sss.pgh.pa.us> <4DAF086F.6050305@dunslane.net> <28426.1303316942@sss.pgh.pa.us> <4DAF0C21.2070505@dunslane.net> Comments: In-reply-to Aidan Van Dyk message dated "Wed, 20 Apr 2011 13:03:14 -0400" Date: Wed, 20 Apr 2011 13:10:05 -0400 Message-ID: <13548.1303319405@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/1053 X-Sequence-Number: 186255 Aidan Van Dyk writes: > Since the general form seems to be to declare things as: > typedef struct foo { ... } foo; > Is there any reason why we see any struct foo in the sources other > than in the typedef line? It gives an escape hatch in case you need a forward reference to the struct, ie you can do "struct foo *" even before this. But I agree that 90% of those struct tags are useless, and so the habit of tagging every typedef this way is mostly legacy. regards, tom lane