pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christoph Berg <myon@debian.org>
To: Peter Eisentraut <peter@eisentraut.org>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: pgsql: Unified logging system for command-line programs
Date: Tue, 9 Apr 2019 13:58:14 +0200
Message-ID: <20190409115814.GB1961@msg.df7cb.de> (raw)
In-Reply-To: <E1hB1d6-00051m-1s@gemulon.postgresql.org>
References: <E1hB1d6-00051m-1s@gemulon.postgresql.org>

Re: Peter Eisentraut 2019-04-01 <E1hB1d6-00051m-1s@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,d...

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





view thread (3+ messages)  latest in thread

Message-ID: <20190409115814.GB1961@msg.df7cb.de>
Permalink:  ../20190409115814.GB1961@msg.df7cb.de/
Also on:    postgresql.org/message-id/20190409115814.GB1961@msg.df7cb.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: myon@debian.org, peter@eisentraut.org, pgsql-hackers@lists.postgresql.org
  Subject: Re: pgsql: Unified logging system for command-line programs
  In-Reply-To: <20190409115814.GB1961@msg.df7cb.de>
  References: <E1hB1d6-00051m-1s@gemulon.postgresql.org> <20190409115814.GB1961@msg.df7cb.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox