Re: SSL passphrase prompt external command

From: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
To: Daniel Gustafsson <daniel(at)yesql(dot)se>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: SSL passphrase prompt external command
Date: 2018-02-26 18:40:57
Message-ID: 0455cd6d-64c3-dace-9465-e583b00f76f0@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
v2-0001-Add-ssl_passphrase_command-setting.patch text/plain 19.4 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Steele 2018-02-26 18:51:01 2018-03 CFM
Previous Message Tom Lane 2018-02-26 18:29:14 Re: Precision loss casting float to numeric