Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e38gQ-00047M-Cq for pgsql-committers@arkaria.postgresql.org; Fri, 13 Oct 2017 22:43:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e38gP-0003rW-Q3 for pgsql-committers@arkaria.postgresql.org; Fri, 13 Oct 2017 22:43:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e38gP-0003r4-4X for pgsql-committers@postgresql.org; Fri, 13 Oct 2017 22:43:57 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e38gH-0001jh-5G for pgsql-committers@postgresql.org; Fri, 13 Oct 2017 22:43:56 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id A030720744; Fri, 13 Oct 2017 18:43:47 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Fri, 13 Oct 2017 18:43:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=F/Bi8FYqpW0VKQtZ0XyGTMqtfx9p8 yTAFDnNNqjmGI8=; b=b2301jjDuu1yMtpgnfqX7iySizrML/oQLqzJ/0DnxTiA4 BdIUubWoZpIJ+RHV63qgtEa5C+j7AgzQfPG6iWWExou6Xh2ARcy/vrCVWqrhj5Gg q9JyjK9xtchzURRNlPi037ykcxFJhEHv9wn2eD7Z41tSvUP9ixwFTzW4fIbYhgO7 njNucB+ySAF5DrNEErBc097ZXqq7z0pJN1C1AkkQ6HZSfMCAhfM+GAJxxpZ++cro BRbwwDQyvnVH9HmZPT10kUdS/6ciLp/Eg2+cBeD7nzkMRa7uvGJWR4ZvtJzJxXwe NXUDhRmTs8JsSUVQrKcx1k896OhvF2ThXt+wbTBEw== X-ME-Sender: Received: from intern.anarazel.de (unknown [136.24.76.72]) by mail.messagingengine.com (Postfix) with ESMTPA id 5C3F72473E; Fri, 13 Oct 2017 18:43:47 -0400 (EDT) Date: Fri, 13 Oct 2017 15:43:46 -0700 From: Andres Freund To: Tom Lane Cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Add pg_noinline macro to c.h. Message-ID: <20171013224346.x2jlstni2dexnuis@alap3.anarazel.de> References: <21403.1507933928@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <21403.1507933928@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org On 2017-10-13 18:32:08 -0400, Tom Lane wrote: > Andres Freund writes: > > Add pg_noinline macro to c.h. > > I think you want this to be parenthesized so that pgindent doesn't > go nuts when you use it. At least, that was the reason why > pg_attribute_noreturn() has parens. Even if the current version > of pgindent doesn't have that problem The current pgindent actually generates *better* layout with pg_noinline rather than pg_noinline(). The latter forces a linebreak both in declarations and definitions like: static pg_noinline() HeapTuple SearchCatCacheMiss(CatCache *cache, static pg_noinline() HeapTuple SearchCatCacheMiss(CatCache *cache, One difference to pg_attribute_noreturn() is that for function definitions - and noinline needs to be present there IME - you can't put it after the parameter list. > I would argue that consistency demands that you spell this pg_attribute_noinline(). Hm, I personally find inline vs pg_noinline more aesthetically pleasing. Greetings, Andres Freund -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers