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 1p7BHS-0007Mp-JO for pgsql-hackers@arkaria.postgresql.org; Mon, 19 Dec 2022 08:13:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p7BHR-00060l-FT for pgsql-hackers@arkaria.postgresql.org; Mon, 19 Dec 2022 08:13:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p7BHR-00060c-5a for pgsql-hackers@lists.postgresql.org; Mon, 19 Dec 2022 08:13:49 +0000 Received: from new4-smtp.messagingengine.com ([66.111.4.230]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p7BHP-0003NC-Aw for pgsql-hackers@postgresql.org; Mon, 19 Dec 2022 08:13:48 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailnew.nyi.internal (Postfix) with ESMTP id 39E23580910; Mon, 19 Dec 2022 03:13:46 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 19 Dec 2022 03:13:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1671437626; x= 1671444826; bh=4Lpd7pXqazt8oqYBEatrE0kxWxhqlxgW7El9HrWkfXM=; b=a mx+Blli5vrASx5Z1RBVjOtNSwpqsN+IJirppgzpgrzqq9iTXNlaTVNKCv2JKq3ZI 9JWuwPzE+2skrVvjEhN29dZ+Mx4LF7ns3ylx0Ynx7ZkAlp/SuFpNabxywoULjbSd nWThSCJJtYlbhOWQtwdaEQckXaWxl5eycOzsjz0+e9cD/LmKlc++gOjVok/WmMyu aKMgJfWApUcFVI80WocZ6IiQVe/YdfY51q7TDzrTAwhCSFXuN5rcyQrt6SKHkFFG PfOfCmN9muiKt7UYnoDVEy+VC+L5cmAu6Q75wt+HALh2d+Y7uu/aBYpH1/55moLv ALXVeDoMepX2+QVFPHVAg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrgedvgdduudejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvghnth gvrhhprhhishgvuggsrdgtohhmqeenucggtffrrghtthgvrhhnpeehleffgeegudejteei hfelteduvdeifffhffdvjedvffegjeekudeludehudeifeenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvghnthhrrghu thesvghnthgvrhhprhhishgvuggsrdgtohhm X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 19 Dec 2022 03:13:45 -0500 (EST) Message-ID: Date: Mon, 19 Dec 2022 09:13:44 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: Common function for percent placeholder replacement Content-Language: en-US To: Justin Pryzby Cc: pgsql-hackers@postgresql.org References: <5238bbed-0b01-83a6-d4b2-7eb0562a054e@enterprisedb.com> <20221214170521.GT27893@telsasoft.com> From: Peter Eisentraut In-Reply-To: <20221214170521.GT27893@telsasoft.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 14.12.22 18:05, Justin Pryzby wrote: > On Wed, Dec 14, 2022 at 08:31:02AM +0100, Peter Eisentraut wrote: >> + return replace_percent_placeholders(base_command, "df", (const char *[]){target_detail, filename}); > > This is a "compound literal", which I gather is required by C99. > > But I don't think that's currently being exercised, so I wonder if it's > going to break some BF members. We already use this, for example in pg_dump.