Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h9X7l-00058f-V6 for pgsql-hackers@arkaria.postgresql.org; Thu, 28 Mar 2019 15:39:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h9X7k-0004JA-MH for pgsql-hackers@arkaria.postgresql.org; Thu, 28 Mar 2019 15:39:24 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h9X7k-0004Bd-8N for pgsql-hackers@lists.postgresql.org; Thu, 28 Mar 2019 15:39:24 +0000 Received: from mail-qt1-x842.google.com ([2607:f8b0:4864:20::842]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h9X7h-0003no-Nu for pgsql-hackers@lists.postgresql.org; Thu, 28 Mar 2019 15:39:23 +0000 Received: by mail-qt1-x842.google.com with SMTP id v20so23554009qtv.12 for ; Thu, 28 Mar 2019 08:39:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=v7mmuaNBukGwTNvIhcKoaMWGA0Wy9dWj46lD8zAj8to=; b=y/wDMc+aZU4znuqiuKma1FRgPnGv8x57OWPb6ym2RplWJ/xYDyPZn3t042dJvBlfY2 3AuGy7NPOnR4aujzdJf0SGTcqUfYlbLV3uA3kJVEa4ACXA7tB95mXX0BXtna2g97SW7r Nk9QfTFJqxzE97muiBexNb7rA8ng52iqMPz279RCaL5L/wJEXGobk4AW76K8oY/NyRGB o9ua9uy19ng9Kn8w8gsXyBRAZMx02KpEi31j7GsSXw8pD1fBdTqs1mMMxdcBwvwI59Kb 07tHEQ0f0VEipKaDp7rNYYhEJRZHFRPRMcmTleyhAgjzFfdoFopI889we/V4mwAoA4pQ TFdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=v7mmuaNBukGwTNvIhcKoaMWGA0Wy9dWj46lD8zAj8to=; b=GiLhV/InXGqRcI/bkxQE3aRSlZysMvaWyRwyiHK+hqO5/i6yii0ExmL4NKqXOtyX94 ULUkXjUgcOH5TWCSftipYAcmCILQzWC3KbH75XbkphzvNWBS1wL1l7tJCgr6toVfctdy O3L8KoBulP0FUXIM6wlDTyRpN0oVNSFIYlulqn1DUb74p7gyeNqliCgOU2F4xYX8WApR ud55uITxpbFrq9Y4srHq3sJPLcvq3wfkTtoTr5d8fNh0ARpXNmljlTN7pyXuIUwqyXx3 jkLVffZg9metgIm1haHvwEWm9bquvR4eFwNLm1wFZqcxXBauJUKrvNxL0myI+FEP5aCy rUZw== X-Gm-Message-State: APjAAAVDEXnQ33FrAyZrFhPKAgH+USPZpa5i7BRfZv6cJLqNznLXNk7z hKmeeVmHqnVCBWS3K6h5ViTDQQ== X-Google-Smtp-Source: APXvYqxX0DfLAlrE21or9pBbXhqQuy/EJYoY+Y2zAV3BQXdgeWgm2Xla0NgF2XjV7wf+FQ/I8GsEeA== X-Received: by 2002:aed:236a:: with SMTP id i39mr35136078qtc.238.1553787560833; Thu, 28 Mar 2019 08:39:20 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id q23sm2465335qkc.16.2019.03.28.08.39.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Mar 2019 08:39:20 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 368B6120BA8; Thu, 28 Mar 2019 12:39:18 -0300 (-03) Date: Thu, 28 Mar 2019 12:39:18 -0300 From: Alvaro Herrera To: Simon Riggs Cc: Pg Hackers , David Fetter , Robert Haas , Rahila Syed , Pavan Deolasee , Amit Langote Subject: Re: monitoring CREATE INDEX [CONCURRENTLY] Message-ID: <20190328153918.GA19999@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Mar-28, Simon Riggs wrote: > On Thu, 28 Mar 2019 at 14:56, Alvaro Herrera > wrote: > > > I have not reinstated phase numbers; I have Rahila's positive vote for > > them. Do I hear any more votes on this issue? > > If there is a specific technical issue, I'd like to understand that more. There's no technical issue -- that's pretty straightforward. Earlier versions of the patch had them, and removing them only meant editing strings in a couple of places. > If it is just a usability preference, then I say we should have numbers. > > Numbering is natural for people. If we say "It's currently doing phase > XYZ", they will say "Is that the 3rd phase?", we'll say "No, actually the > 5th", and then they will say "Why didn't you just number them?" There are eight phases. If you run normal CREATE INDEX (not concurrent) then you get phases 1, then 3, done. If you run CIC you get phases from 1 to 8. Phase 3 "building index" has arbitrary subphases (they depend on AM) in both cases. I think the lack of phase numbering comes from the fact that the first command we did (VACUUM) sometimes jumps backwards in phase numbers, so it would be a bit absurd from users's POV. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services