From 0cad03da12c52495c335a1b839c79752ba602c8f Mon Sep 17 00:00:00 2001 From: Daniel Gustafsson Date: Wed, 13 May 2020 16:15:46 +0200 Subject: [PATCH 1/2] doc: anchor programlisting on column zero Whitespace is significant in programlisting blocks, so when used indented they render a blank line after the content. Fix by anchoring the blocks on column zero like how we do in most places of the docs. --- doc/src/sgml/libpq.sgml | 6 +++--- doc/src/sgml/postgres-fdw.sgml | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index 5892367c61..c404429ae9 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -790,9 +790,9 @@ void PQsetSSLKeyPassHook(PQsslKeyPassHook_type hook); The application passes a pointer to a callback function with signature: - - int callback_fn(char *buf, int size, PGconn *conn); - + +int callback_fn(char *buf, int size, PGconn *conn); + which libpq will then call instead of its default PQdefaultSSLKeyPassHook handler. The callback should determine the password for the key and copy it to result-buffer diff --git a/doc/src/sgml/postgres-fdw.sgml b/doc/src/sgml/postgres-fdw.sgml index 94992be427..eab2cc9378 100644 --- a/doc/src/sgml/postgres-fdw.sgml +++ b/doc/src/sgml/postgres-fdw.sgml @@ -151,10 +151,10 @@ A superuser may override this check on a per-user-mapping basis by setting the user mapping option password_required 'false', e.g. - - ALTER USER MAPPING FOR some_non_superuser SERVER loopback_nopw - OPTIONS (ADD password_required 'false'); - + +ALTER USER MAPPING FOR some_non_superuser SERVER loopback_nopw +OPTIONS (ADD password_required 'false'); + To prevent unprivileged users from exploiting the authentication rights of the unix user the postgres server is running as to escalate to superuser rights, only the superuser may set this option on a user mapping. -- 2.21.1 (Apple Git-122.3)