From: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
To: Justin Pryzby <pryzby@telsasoft.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: Common function for percent placeholder replacement
Date: Mon, 19 Dec 2022 09:13:44 +0100
Message-ID: <dfc00ffd-ae72-6479-997a-e51a424d3088@enterprisedb.com> (raw)
In-Reply-To: <20221214170521.GT27893@telsasoft.com>
References: <5238bbed-0b01-83a6-d4b2-7eb0562a054e@enterprisedb.com>
<20221214170521.GT27893@telsasoft.com>
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.
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: peter.eisentraut@enterprisedb.com, pryzby@telsasoft.com
Subject: Re: Common function for percent placeholder replacement
In-Reply-To: <dfc00ffd-ae72-6479-997a-e51a424d3088@enterprisedb.com>
References: <5238bbed-0b01-83a6-d4b2-7eb0562a054e@enterprisedb.com> <20221214170521.GT27893@telsasoft.com> <dfc00ffd-ae72-6479-997a-e51a424d3088@enterprisedb.com>
* 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