From: Tom Lane <tgl@sss.pgh.pa.us>
To: Justin Pryzby <pryzby@telsasoft.com>
Cc: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: Common function for percent placeholder replacement
Date: Wed, 14 Dec 2022 12:40:03 -0500
Message-ID: <2707471.1671039603@sss.pgh.pa.us> (raw)
In-Reply-To: <20221214170521.GT27893@telsasoft.com>
References: <5238bbed-0b01-83a6-d4b2-7eb0562a054e@enterprisedb.com>
<20221214170521.GT27893@telsasoft.com>
Justin Pryzby <pryzby@telsasoft.com> writes:
> 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.
It's pretty illegible, whatever it is. Could we maybe expend a
few more keystrokes in favor of readability?
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, pryzby@telsasoft.com, peter.eisentraut@enterprisedb.com
Subject: Re: Common function for percent placeholder replacement
In-Reply-To: <2707471.1671039603@sss.pgh.pa.us>
References: <5238bbed-0b01-83a6-d4b2-7eb0562a054e@enterprisedb.com> <20221214170521.GT27893@telsasoft.com> <2707471.1671039603@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox