Re: BUG #18685: .pgpass is not enabled when running pg_basebackup on PostgreSQL 17.

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: nuko.yokohama@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Date: 2024-11-04T19:40:23Z
Lists: pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> writes:
> In PostgreSQL 16, pg_basebackup could be run without prompting for a
> password.
> However, when running pg_basebacup on PostgreSQL 17, the user is prompted
> for a password even if .pgpass is set.

Yup, that's a bug.  Fix pushed, thanks for the report!

			regards, tom lane



Commits

  1. pg_basebackup, pg_receivewal: fix failure to find password in ~/.pgpass.