Re: Peter Eisentraut 2019-04-01 <e1hb1d6-00051m...@gemulon.postgresql.org> > - There is support for setting a "log level". This is not meant to be > user-facing, but can be used internally to implement debug or > verbose modes.
I'm not entirely sure what happened here, but I think this made pg_restore verbose by default (and there is no --quiet option). At least that's what the apt.pg.o upgrade regression tests say for 11->12: 09:12:49 ok 59 - pg_upgradecluster reported successful operation 09:12:49 not ok 60 - no error messages during upgrade 09:12:49 # Failed test 'no error messages during upgrade' 09:12:49 # at ./t/040_upgrade.t line 160. 09:12:49 pg_restore: connecting to database for restore 09:12:49 pg_restore: executing BLOB 1234 09:12:49 pg_restore: disabling triggers for tstab 09:12:49 pg_restore: processing data for table "public.tstab" 09:12:49 pg_restore: enabling triggers for tstab 09:12:49 pg_restore: processing BLOBS 09:12:49 pg_restore: restoring large object with OID 1234 09:12:49 pg_restore: restored 1 large object 09:12:49 pg_restore: connecting to database for restore 09:12:49 pg_restore: connecting to database for restore 09:12:49 pg_restore: disabling triggers for nums 09:12:49 pg_restore: processing data for table "public.nums" 09:12:49 pg_restore: enabling triggers for nums 09:12:49 pg_restore: connecting to database for restore 09:12:49 pg_restore: connecting to database for restore 09:12:49 pg_restore: disabling triggers for old 09:12:49 pg_restore: processing data for table "old.old" 09:12:49 pg_restore: enabling triggers for old 09:12:49 pg_restore: disabling triggers for phone 09:12:49 pg_restore: processing data for table "public.phone" 09:12:49 pg_restore: enabling triggers for phone 09:12:49 pg_restore: executing SEQUENCE SET odd10ok 61 - pg_lsclusters -h 09:12:49 ok 62 - pg_lsclusters output https://pgdgbuild.dus.dg-i.net/view/Testsuite/job/upgrade-11-12/lastFailedBuild/architecture=amd64,distribution=sid/console The code running there is: print 'Upgrading database ', $db, "...\n"; open SOURCE, '-|', $pg_dump, '-h', $oldsocket, '-p', $info{'port'}, '-Fc', '--quote-all-identifiers', $db or error 'Could not execute pg_dump for old cluster'; # start pg_restore and copy over everything my @restore_argv = ($pg_restore, '-h', $newsocket, '-p', $newinfo{'port'}, '--data-only', '-d', $db, '--disable-triggers', '--no-data-for-failed-tables'); open SINK, '|-', @restore_argv or error 'Could not execute pg_restore for new cluster'; https://salsa.debian.org/postgresql/postgresql-common/blob/master/pg_upgradecluster#L511-521 Christoph