Re: pgsql: Add 'basebackup_to_shell' contrib module.
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Andrew Dunstan <andrew@dunslane.net>,
Nathan Bossart <nathandbossart@gmail.com>,
Andres Freund <andres@anarazel.de>,
Thomas Munro <thomas.munro@gmail.com>,
PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>,
Magnus Hagander <magnus@hagander.net>
Date: 2022-03-31T16:45:13Z
Lists: pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes: > On Thu, Mar 31, 2022 at 12:25 PM Andrew Dunstan <andrew@dunslane.net> wrote: >> Yeah, I think the fix is as simple as the attached. > Well, that does not work because you added an extra parenthesis which > makes Perl barf. If you fix that, then the test does not pass because, > as I just explained to Tom, the flag we call --create-role doesn't > create a role: > error running SQL: 'psql:<stdin>:1: ERROR: role "backupuser" does not exist' On looking closer, the combination of --config-auth and --create-role *only* fixes the config files for SSPI, it doesn't expect the server to be running. I agree that the documentation of this is nonexistent and the design is probably questionable, but I'm not volunteering to fix either. If you are, step right up. In the meantime, I believe (without having tested) that the correct incantation is to use auth_extra but *also* create the user further down. regards, tom lane
Commits
-
Print information about type of test and subdirectory before running tests.
- 28bdfa2adfc6 15.0 landed
-
In basebackup_to_shell tests, properly set up pg_hba.conf.
- fea1cc49e4ab 15.0 landed
-
Add .gitignore for basebackup_to_shell.
- f8e0d900afed 15.0 landed
-
basebackup_to_shell: Add TAP test.
- 027fa0fd7261 15.0 landed
-
Document basebackup_to_shell.required_role.
- 26a0c025e233 15.0 landed
-
Add 'basebackup_to_shell' contrib module.
- c6306db24bd9 15.0 cited