Re: pgsql: Add 'basebackup_to_shell' contrib module.

Robert Haas <robertmhaas@gmail.com>

From: Robert Haas <robertmhaas@gmail.com>
To: Andrew Dunstan <andrew@dunslane.net>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, 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-31T15:12:07Z
Lists: pgsql-hackers
On Thu, Mar 31, 2022 at 10:52 AM Andrew Dunstan <andrew@dunslane.net> wrote:
> I have configured fairywren and drongo to use Unix sockets., and they
> have turned green Here are the settings I'm using in the config's
> build_env section:
>
>                 PG_TEST_USE_UNIX_SOCKETS => 1,
>                 PG_REGRESS_SOCK_DIR =>
> 'C:/Users/pgrunner/AppData/Local/Temp',
>
> We should probably fix the test though, so it doesn't require Unix
> sockets. It should be possible, although I haven't looked yet to see how.

Our mutual colleague Neha Sharma pointed out this email message to me:

http://postgr.es/m/106926.1643842376@sss.pgh.pa.us

I actually don't understand why using pg_regress --auth-extra would
fix it, or what that option does, or why we're even running pg_regress
at all in PostgreSQL::Test::Cluster::init. I think it might be to fix
this exact issue, but there's no SGML documentation for pg_regress,
and the output of pg_regress -h isn't really clear enough to
understand what's going on here.

-- 
Robert Haas
EDB: http://www.enterprisedb.com



Commits

  1. Print information about type of test and subdirectory before running tests.

  2. In basebackup_to_shell tests, properly set up pg_hba.conf.

  3. Add .gitignore for basebackup_to_shell.

  4. basebackup_to_shell: Add TAP test.

  5. Document basebackup_to_shell.required_role.

  6. Add 'basebackup_to_shell' contrib module.