Re: Server-side base backup: why superuser, not pg_write_server_files?
Andrew Dunstan <andrew@dunslane.net>
From: Andrew Dunstan <andrew@dunslane.net>
To: Tom Lane <tgl@sss.pgh.pa.us>, Robert Haas <robertmhaas@gmail.com>
Cc: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2022-02-03T17:26:09Z
Lists: pgsql-hackers
On 2/2/22 17:52, Tom Lane wrote: > I wrote: >> The Windows animals don't like this: >> pg_basebackup: error: connection to server at "127.0.0.1", port 59539 failed: FATAL: SSPI authentication failed for user "backupuser" >> Not sure whether we have a standard method to get around that. > Ah, right, we do. Looks like adding something like > > auth_extra => [ '--create-role', 'backupuser' ] > > to the $node->init call would do it, or you could mess with > invoking pg_regress --config-auth directly. > > I've fixed this using the auth_extra method, which avoids a reload. cheers andrew -- Andrew Dunstan EDB: https://www.enterprisedb.com
Commits
-
Fix server crash bug in 'server' backup target.
- 8e2b6d45a033 15.0 landed
-
Adjust server-side backup to depend on pg_write_server_files.
- 7f6772317b4a 15.0 landed