Re: BUG #16604: pg_dump with --jobs breaks SSL connections
Magnus Hagander <magnus@hagander.net>
From: Magnus Hagander <magnus@hagander.net>
To: Daniel Gustafsson <daniel@yesql.se>
Cc: zsolt.ero@gmail.com, PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Date: 2020-09-15T12:04:09Z
Lists: pgsql-bugs
On Tue, Sep 15, 2020 at 1:36 PM Daniel Gustafsson <daniel@yesql.se> wrote: > > On 1 Sep 2020, at 22:08, PG Bug reporting form <noreply@postgresql.org> > wrote: > > > > The following bug has been logged on the website: > > > > Bug reference: 16604 > > Logged by: Zsolt Ero > > Email address: zsolt.ero@gmail.com > > PostgreSQL version: 12.4 > > Operating system: Ubuntu 20.04 > > Description: > > > > I'm using pg_dump in the following syntax: > > > > pg_dump --dbname="sslmode=verify-ca sslrootcert=server-ca.pem \ > > sslcert=client-cert.pem sslkey=client-key.pem \ > > hostaddr=1.2.3.4 \ > > user=postgres dbname=app" \ > > --format=directory \ > > --file=dump_app \ > > --jobs=3 > > > > As long as the --jobs parameter is present, the process breaks after > > "pg_dump: saving database definition". > > It breaks with "FATAL: connection requires a valid client certificate". > > > > Without --jobs it completes without errors. I also think it's happening > with > > pg_restore as well. > > I am unable to reproduce this with 12.4 as well as 14devel. If this error > is > reproducible for you, can you please share more details on the setup? > (ideally > a recipe for setting up a repro environment) > Grasping a long straw hwere, but I wonder if it could be relataed to the debian/ubuntu wrapper. Zsolt, can you try running it with hardcoding the pg_dump path to /usr/lib/postgresql/12/bin/pg_dump instead of just pg_dump, to see if that might be it? -- Magnus Hagander Me: https://www.hagander.net/ <http://www.hagander.net/> Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/>
Commits
-
Fix connection string handling in psql's \connect command.
- 8175da6e796e 10.15 landed
- f656517ecdf4 12.5 landed
- 20be76d5c4ac 11.10 landed
- 85c54287af56 14.0 landed
- 2e4af411075c 13.1 landed
- 870a2323033e 9.6.20 landed
- 6997da09a41f 9.5.24 landed
-
Fix connection string handling in src/bin/scripts/ programs.
- da129a04a6de 9.5.24 landed
- 68f2369930f9 10.15 landed
- 5c78f797701b 9.6.20 landed
- 5a9f99bed8cb 11.10 landed
- c6d0b9b1668c 12.5 landed
- 8e5793ab60bb 14.0 landed
- 1814f915b526 13.1 landed
-
Fix handling of -d "connection string" in pg_dump/pg_restore.
- 7c154f2fd246 9.6.20 landed
- 56b46d3a1a62 9.5.24 landed
- 1888ff8d0d5e 10.15 landed
- 1738a61c8ffe 11.10 landed
- fb93f784fc9c 12.5 landed
- cb8885ac4969 13.1 landed
- a45bc8a4f649 14.0 landed