Re: Common function for percent placeholder replacement - Mailing list pgsql-hackers

From Corey Huinker
Subject Re: Common function for percent placeholder replacement
Date
Msg-id CADkLM=f_nvLgYF1zAchqE90uYwM2cWrYmp6OB0VXWy+75HSFdw@mail.gmail.com
Whole thread Raw
In response to Re: Common function for percent placeholder replacement  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
List pgsql-hackers
How about this new one with variable arguments?

I like this a lot, but I also see merit in Alvaro's PERCENT_OPT variadic, which at least avoids the two lists getting out of sync.

Initially, I was going to ask that we have shell-quote-safe equivalents of whatever fixed parameters we baked in, but this allows the caller to do that as needed. It seems we could now just copy quote_identifier and strip out the keyword checks to get the desired effect. Has anyone else had a need for quote-safe args in the shell commands?

pgsql-hackers by date:

Previous
From: David Rowley
Date:
Subject: Re: appendBinaryStringInfo stuff
Next
From: Robert Haas
Date:
Subject: Re: Minimal logical decoding on standbys