On Tue, 2019-11-19 at 18:22 +0300, Liudmila Mantrova wrote:
> > The binaries for Fedora Linux use "trust".
>
> Fedora 31 seems to be using peer. What am I missing?
>
> [root@localhost ~]# /usr/pgsql-12/bin/postgresql-12-setup initdb
> Initializing database ... OK
> ...
> [root@localhost ~]# grep '^local' /var/lib/pgsql/12/data/pg_hba.conf
> local all all peer
> local replication all peer
I never realized that there is a "postgresql-12-setup" script included
in these packages.
I have always used "initdb" directly, and if I don't specify the -A
option explicitly, I get "trust".
Yours,
Laurenz Albe