pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Magnus Hagander <magnus@hagander.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Refactor hba_authname
Date: Wed, 07 Apr 2021 12:25:33 +0000
Message-ID: <E1lU7FV-0007Nt-Qr@gemulon.postgresql.org> (raw)

Refactor hba_authname

The previous implementation (from 9afffcb833) had an unnecessary check
on the boundaries of the enum which trigtered compile warnings. To clean
it up, move the pre-existing static assert to a central location and
call that.

Reported-By: Erik Rijkers
Reviewed-By: Michael Paquier
Discussion: https://postgr.es/m/1056399262.13159.1617793249020@webmailclassic.xs4all.nl

Branch
------
master

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

Modified Files
--------------
src/backend/libpq/auth.c |  2 +-
src/backend/libpq/hba.c  | 25 +++++++------------------
src/include/libpq/hba.h  |  2 +-
3 files changed, 9 insertions(+), 20 deletions(-)



Message-ID: <E1lU7FV-0007Nt-Qr@gemulon.postgresql.org>
Permalink:  ../E1lU7FV-0007Nt-Qr@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lU7FV-0007Nt-Qr@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: magnus@hagander.net
  Subject: Re: pgsql: Refactor hba_authname
  In-Reply-To: <E1lU7FV-0007Nt-Qr@gemulon.postgresql.org>
  References: <E1lU7FV-0007Nt-Qr@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