Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qQu6t-001LfG-7C for pgsql-hackers@arkaria.postgresql.org; Tue, 01 Aug 2023 18:28:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qQu6q-009Dl2-T8 for pgsql-hackers@arkaria.postgresql.org; Tue, 01 Aug 2023 18:28:42 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qQu6q-009Dkt-J2 for pgsql-hackers@lists.postgresql.org; Tue, 01 Aug 2023 18:28:42 +0000 Received: from mail-ot1-x332.google.com ([2607:f8b0:4864:20::332]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qQu6o-000EGY-LD for pgsql-hackers@postgresql.org; Tue, 01 Aug 2023 18:28:40 +0000 Received: by mail-ot1-x332.google.com with SMTP id 46e09a7af769-6bca66e6c44so1856165a34.0 for ; Tue, 01 Aug 2023 11:28:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=timescale.com; s=google; t=1690914518; x=1691519318; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Zq6bLui6kEeAoA03wghCqj0bG339JqmiW5xyhGzdMxI=; b=ADPNYJzXgRBT9Nfo8myRIfR7LNXAINdzM5fxRWVNbPdcORcABfCKVNNCgitJQuBFuF OztZksad6NbK4Hgg+YkMDrNn1xihw/F4FfokFSBw7uH8ds2YU3GtczDfCsgSga/xXISM nIms/vrIHDf5gWwRL6xBtv0FIDQTpx8WEghpb5cQdZL/0TGdTrNqEtxEy8cJfWXMx7WE sxtS0w7m37PGUMg6JI8F6rNfP0DlkdNqkp1/2+AlqFLb+pjASZIP9m0KiZSev0niKOic qK2LJebQq+z+MC3IATay8HJ3lYcqACu3/KBES67FgleAdn/6GCyscdnRwzakREnvtVfK TOiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690914518; x=1691519318; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Zq6bLui6kEeAoA03wghCqj0bG339JqmiW5xyhGzdMxI=; b=Wu57XHKdaL9jUfSenqtSOoUFmHZJeIVfQZmdLQeTBOBIffos7wNAES/rQrfE2TTfhh bPs4OjZm50K+U0B0s6zgQOMZQcyYuQZkJ/186cfziiby5X09/PAEy196ZLyr+m+H3ysp 5FUwIPJ5EljiKeSRPhGwrarl4+LjF7Le2nvZsZJkLksniCdS0p9u+m/eMJyEyL/A20nl xcoaxcQfNZ9mc/7a1y5tkuCmXG2RIpG3BanC0e2zsWHMyv1qZO5Ve4w55IiwWk1H+Gce UinvtS3yc5JQYhCAwsSmO3fn3CUUT8BIbrRiuShgCpV6s3CrJdC+cT1U7Bb5QD5EVYpB odCQ== X-Gm-Message-State: ABy/qLbW9Rt3T/tAOQOah+6GBm1Rgz652WnFyq20Qa2vuDivPRQHDi4P 4Ism7fwcr5ThZKSpbuMzGVeU4sstNIgyHUDy0aVf5gFLu9Du4kme238= X-Google-Smtp-Source: APBJJlHWWnU94AnAwSJTfeHp8om7+TCxQRCPk5bEaFFt4gTozDRJ89drGyvp1f0hNK0RUMDshqjcGkpcLzIXX2lP7Js= X-Received: by 2002:a05:6871:893:b0:1bb:3b94:c655 with SMTP id r19-20020a056871089300b001bb3b94c655mr16207551oaq.26.1690914518152; Tue, 01 Aug 2023 11:28:38 -0700 (PDT) MIME-Version: 1.0 References: <20230727235134.GA3658499@nathanxps13> <204e3982-78be-7550-fdb3-063ecd368f1f@eisentraut.org> <20230801160006.GB723589@nathanxps13> In-Reply-To: <20230801160006.GB723589@nathanxps13> From: Jacob Champion Date: Tue, 1 Aug 2023 11:28:27 -0700 Message-ID: Subject: Re: add timing information to pg_upgrade To: Nathan Bossart Cc: Daniel Gustafsson , Peter Eisentraut , PostgreSQL Hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Aug 1, 2023 at 9:00=E2=80=AFAM Nathan Bossart wrote: > >> On 1 Aug 2023, at 09:45, Peter Eisentraut wrote= : > >> But who would use that, other than, you know, you, right now? /me raises hand Or at least, me back when I was hacking on pg_upgrade performance. This, or something like it, would have been fantastic. > >> I think the pg_upgrade output is already too full with not-really-acti= onable information (like most of the above "Checking ..." are not really in= teresting for a regular user). > > Perhaps. But IMO it's nice to know that it's doing things and making > progress, even if you don't understand exactly what it's doing all the > time. +1. One of our findings at $prevjob was that some users *really* want some indication, anything at all, that things are progressing and aren't stuck. There was a lot of anxiety around upgrades. (There are probably _better_ ways to indicate progress than the current step divisions... But even poor progress indicators seemed to lower blood pressures, IIRC.) > That being said, I wouldn't be opposed to hiding some of this output > behind a --verbose or --debug option or consolidating some of the steps > into fewer status messages. I agree that millisecond-level timing should probably be opt-in. --Jacob