Re: Allow specifying a dbname in pg_basebackup connection string
Jim Jones <jim.jones@uni-muenster.de>
From: Jim Jones <jim.jones@uni-muenster.de>
To: Jelte Fennema <me@jeltef.nl>
Cc: Tristen Raab <tristen.raab@highgo.ca>,
pgsql-hackers@lists.postgresql.org, Jelte Fennema <github-tech@jeltef.nl>
Date: 2023-08-30T19:08:33Z
Lists: pgsql-hackers
On 30.08.23 14:11, Jelte Fennema wrote: > Oops it indeed seemed like I made an unintended change when handling > database names that did not exist in pgbouncer.conf when you used > auth_type=hba. I pushed a fix for that now to the replication-support > branch. Feel free to try again. But as you said it's unrelated to the > postgres patch. Nice! Now it seems to work as expected :) $ /usr/local/postgres-dev/bin/pg_basebackup --dbname "host=127.0.0.1 port=6432 user=jim dbname=foo" -X fetch -v -l testlabel -D /tmp/dump pg_basebackup: initiating base backup, waiting for checkpoint to complete pg_basebackup: checkpoint completed pg_basebackup: write-ahead log start point: 0/12000028 on timeline 1 pg_basebackup: write-ahead log end point: 0/12000100 pg_basebackup: syncing data to disk ... pg_basebackup: renaming backup_manifest.tmp to backup_manifest pg_basebackup: base backup completed pgbouncer log: 2023-08-30 21:04:30.225 CEST [785989] LOG C-0x55fbee0f50b0: foo/jim@127.0.0.1:49764 login attempt: db=foo user=jim tls=no replication=yes 2023-08-30 21:04:30.225 CEST [785989] LOG S-0x55fbee0fc560: foo/jim@127.0.0.1:5432 new connection to server (from 127.0.0.1:34400) 2023-08-30 21:04:30.226 CEST [785989] LOG S-0x55fbee0fc560: foo/jim@127.0.0.1:5432 closing because: replication client was closed (age=0s) 2023-08-30 21:04:30.226 CEST [785989] LOG S-0x55fbee0fc560: foo/jim@127.0.0.1:5432 new connection to server (from 127.0.0.1:34408) 2023-08-30 21:04:30.227 CEST [785989] LOG S-0x55fbee0fc560: foo/jim@127.0.0.1:5432 closing because: replication client was closed (age=0s) 2023-08-30 21:04:30.227 CEST [785989] LOG S-0x55fbee0fc560: foo/jim@127.0.0.1:5432 new connection to server (from 127.0.0.1:34410) 2023-08-30 21:04:30.228 CEST [785989] LOG S-0x55fbee0fc560: foo/jim@127.0.0.1:5432 closing because: replication client was closed (age=0s) 2023-08-30 21:04:30.228 CEST [785989] LOG S-0x55fbee0fc560: foo/jim@127.0.0.1:5432 new connection to server (from 127.0.0.1:34418) 2023-08-30 21:04:30.309 CEST [785989] LOG S-0x55fbee0fc560: foo/jim@127.0.0.1:5432 closing because: replication client was closed (age=0s) 2023-08-30 21:04:30.309 CEST [785989] LOG C-0x55fbee0f50b0: foo/jim@127.0.0.1:49764 closing because: client close request (age=0s) Jim
Commits
-
pg_basebackup, pg_receivewal: fix failure to find password in ~/.pgpass.
- b1008c1f01ff 18.0 landed
- e2a912909308 17.1 landed
-
Allow dbname in pg_basebackup/pg_receivewal connstring
- cca97ce6a665 17.0 landed