Re: SSL passphrase prompt external command - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: SSL passphrase prompt external command
Date
Msg-id 0455cd6d-64c3-dace-9465-e583b00f76f0@2ndquadrant.com
Whole thread Raw
In response to Re: SSL passphrase prompt external command  (Daniel Gustafsson <daniel@yesql.se>)
Responses Re: SSL passphrase prompt external command
List pgsql-hackers
On 2/26/18 01:32, Daniel Gustafsson wrote:
> +        replaced by a prompt string.  (Write <literal>%%</literal> for a
> +        literal <literal>%</literal>.)  Note that the prompt string will
> 
> I might be thick, but I don’t see where the %% handled?

Ah, I had broken that in my submitted patch.  New patch attached.

> Also, AFAICT a string
> ending with %\0 will print a literal % without requiring %% (which may be a
> perfectly fine case to allow, depending on how strict we want to be with the
> format).

That is intentional.  I made the behavior match that of archive_command,
restore_command, etc.  It's note quite how printf works, but we might as
well stick with what we already have.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Attachment

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Precision loss casting float to numeric
Next
From: David Steele
Date:
Subject: 2018-03 CFM