Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kaaZD-0000al-Jm for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Nov 2020 08:24:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kaaZA-00047I-Bi for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Nov 2020 08:24:20 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kaaZ9-000479-DF for pgsql-hackers@lists.postgresql.org; Thu, 05 Nov 2020 08:24:20 +0000 Received: from forward5-smtp.messagingengine.com ([66.111.4.239]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kaaZ2-0008Ow-1y for pgsql-hackers@postgresql.org; Thu, 05 Nov 2020 08:24:18 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailforward.nyi.internal (Postfix) with ESMTP id EEE301942BE9; Thu, 5 Nov 2020 03:24:10 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 05 Nov 2020 03:24:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=LSxopS57OiObTxDfM+SzhOSVlHJElNKgWUm+WSOq0 fc=; b=WclnhlBuuMSgqFI0n+hHhLtZ7k7ZGGg8bx/bmiX2fv08Lp7JpB9ohuUMD cAq6ddGKglu9gI72N1o1yNQZUR8/rqQpoqv63MPIeegR6LOhMP7bocwxGda3dRkN 8Bg6Gtqo8xJ5EeV0eRYY+51azZ99g6HeynX7ZpOMLi3/gQh15jDBSVYlSS1ARoIE 2koaZdjLT6ma9gLIn306EVriF4ByeVjqBP9oQOth1SQcbxdwdSqeUX7Ruo+BbrhB kPIf4SV1jK7wTe6uBQIyTZsRaMvSaCFxKcBMRh/i20lCMLC4whyYuyqWU+ztaPax fP5ef8/yVJ6cZ3wMmRXcCIiDccaWA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedruddtiedguddulecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefuvfhfhfhokffffgggjggtgfesthejredttdefjeenucfhrhhomheprfgv thgvrhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsedvnh guqhhurggurhgrnhhtrdgtohhmqeenucggtffrrghtthgvrhhnpedtveeghedtjedvvedv leejueevjeejtdellefgkeelfeeikeejlefgkedtudeuvdenucffohhmrghinhepvdhnug hquhgrughrrghnthdrtghomhenucfkphepkeejrddujeejrdejuddrvddvjeenucevlhhu shhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvih hsvghnthhrrghuthesvdhnughquhgrughrrghnthdrtghomh X-ME-Proxy: Received: from april.pezone.net (p57b147e3.dip0.t-ipconnect.de [87.177.71.227]) by mail.messagingengine.com (Postfix) with ESMTPA id C59F032801D7; Thu, 5 Nov 2020 03:24:09 -0500 (EST) Subject: Re: Move catalog toast table and index declarations To: John Naylor References: <1983ae60-5fde-8393-029d-ce016d5fce78@2ndquadrant.com> Cc: pgsql-hackers From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: Date: Thu, 5 Nov 2020 09:24:08 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-10-27 13:12, John Naylor wrote: > There's nothing wrong; it's just a minor point of consistency. For the > first part, I mean defined symbols in this file that are invisible to > the C compiler are written > > #define SOMETHING() > > If some are written > > #define SOMETHING() extern int no_such_variable > > I imagine some future reader will wonder why there's a difference. The difference is that CATALOG() is followed in actual use by something like { ... } FormData_pg_attribute; so it becomes a valid C statement. For DECLARE_INDEX() etc., we need to do something else to make it valid. I guess this could be explained in more detail (as I'm attempting in this email), but this isn't materially changed by this patch. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services