Re: Common function for percent placeholder replacement

From: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>
To: Justin Pryzby <pryzby(at)telsasoft(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Common function for percent placeholder replacement
Date: 2022-12-19 08:13:44
Message-ID: dfc00ffd-ae72-6479-997a-e51a424d3088@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Rowley 2022-12-19 08:29:10 Re: appendBinaryStringInfo stuff
Previous Message Peter Eisentraut 2022-12-19 08:13:09 Re: Common function for percent placeholder replacement