pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: libpq should expose GSS-related parameters even when not impleme
Date: Fri, 20 Dec 2019 20:34:34 +0000
Message-ID: <E1iiOyo-0005Vj-NI@gemulon.postgresql.org> (raw)

libpq should expose GSS-related parameters even when not implemented.

We realized years ago that it's better for libpq to accept all
connection parameters syntactically, even if some are ignored or
restricted due to lack of the feature in a particular build.
However, that lesson from the SSL support was for some reason never
applied to the GSSAPI support.  This is causing various buildfarm
members to have problems with a test case added by commit 6136e94dc,
and it's just a bad idea from a user-experience standpoint anyway,
so fix it.

While at it, fix some places where parameter-related infrastructure
was added with the aid of a dartboard, or perhaps with the aid of
the anti-pattern "add new stuff at the end".  It should be safe
to rearrange the contents of struct pg_conn even in released
branches, since that's private to libpq (and we'd have to move
some fields in some builds to fix this, anyway).

Back-patch to all supported branches.

Discussion: https://postgr.es/m/11297.1576868677@sss.pgh.pa.us

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/e8f60e6fe206b4877c5b0d0b70015e672de04f60

Modified Files
--------------
contrib/postgres_fdw/expected/postgres_fdw.out | 10 +++++-----
contrib/postgres_fdw/sql/postgres_fdw.sql      | 10 +++++-----
doc/src/sgml/libpq.sgml                        |  6 ++++--
src/interfaces/libpq/fe-connect.c              | 25 ++++++-------------------
src/interfaces/libpq/libpq-int.h               | 11 +++--------
5 files changed, 23 insertions(+), 39 deletions(-)



view thread (7+ messages)  latest in thread

Message-ID: <E1iiOyo-0005Vj-NI@gemulon.postgresql.org>
Permalink:  ../E1iiOyo-0005Vj-NI@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1iiOyo-0005Vj-NI@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: libpq should expose GSS-related parameters even when not impleme
  In-Reply-To: <E1iiOyo-0005Vj-NI@gemulon.postgresql.org>
  References: <E1iiOyo-0005Vj-NI@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox