Re: [PATCH] Documentation

From: John Naylor <johncnaylorls(at)gmail(dot)com>
To: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
Cc: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, Mikael Gustavsson <mikael(dot)gustavsson(at)smhi(dot)se>, "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: [PATCH] Documentation
Date: 2026-01-05 06:39:36
Message-ID: CANWCAZaxWUQ4LQ5VT4GXXjnrP1CwC7GW1=Ebn-mSQ+ceMrh5FA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Dec 19, 2025 at 11:00 PM Heikki Linnakangas <hlinnaka(at)iki(dot)fi> wrote:
>
> On 19/12/2025 17:14, Fujii Masao wrote:
> > On Fri, Dec 19, 2025 at 5:53 PM John Naylor <johncnaylorls(at)gmail(dot)com> wrote:
> >>
> >> On Thu, Dec 18, 2025 at 2:31 PM Mikael Gustavsson
> >> <mikael(dot)gustavsson(at)smhi(dot)se> wrote:
> >>> This patch updates some examples in documentation client-auth.sgml from md5 to scram-sha-256
> >>> Reference: https://www.postgresql.org/message-id/176595607507.978865.11597773194269211255%40wrigleys.postgresql.org
> >>
> >> Pushed and backpatched to PG18, thanks!
> >
> > This change made me wonder whether we should also update the
> > pg_hba.conf examples
> > in high-availability.sgml and logical-replication.sgml. I've attached
> > a patch for that. Thoughts?

Sorry, I neglected to look around for similar places to update. I
don't see any other such places, so I will commit this and backpatch
to PG18 as well.

> Let's update this example in createuser.sgml too while we're at it:

> > <computeroutput>CREATE ROLE joe PASSWORD 'md5b5f5ba1a423792b526f799ae4eb3d59e' SUPERUSER CREATEDB CREATEROLE INHERIT LOGIN;</computeroutput>

> I get this output for that command now:

> SELECT pg_catalog.set_config('search_path', '', false);
> CREATE ROLE joe PASSWORD
> 'SCRAM-SHA-256$4096:vrJL1JVwK9VyDQ+XmGk2lg==$K32pX1bdFx3J+LeBcFpUOmaBnIUIduAexL+ufLYz/MI=:O6gxeGemIC3wbqEWMZXKAMOnQ5A1hM07nEu7KeSrEiE='
> SUPERUSER CREATEDB CREATEROLE INHERIT LOGIN NOREPLICATION NOBYPASSRLS;

+1

This will need to be backpatched to PG14. Unlike the md5 case, the
encrypted password will not be reproducible. Since the above omission
hasn't been noticed, I don't suppose we need to call out this fact?

--
John Naylor
Amazon Web Services

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Nazir Bilal Yavuz 2026-01-05 06:39:46 Re: Need help with postgresql build on windows
Previous Message Michael Paquier 2026-01-05 06:33:17 Re: Resetting recovery target parameters in pg_createsubscriber