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 1h9tFO-0001CV-AU for pgsql-hackers@arkaria.postgresql.org; Fri, 29 Mar 2019 15:16:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h9tFM-0001Xt-UV for pgsql-hackers@arkaria.postgresql.org; Fri, 29 Mar 2019 15:16:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h9tFM-0001Xm-Lt for pgsql-hackers@lists.postgresql.org; Fri, 29 Mar 2019 15:16:44 +0000 Received: from mail-qk1-x741.google.com ([2607:f8b0:4864:20::741]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h9tFJ-0001yf-Oi for pgsql-hackers@lists.postgresql.org; Fri, 29 Mar 2019 15:16:44 +0000 Received: by mail-qk1-x741.google.com with SMTP id s81so1529085qke.13 for ; Fri, 29 Mar 2019 08:16:41 -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=bQ7jn2G1Ocd74CKFE5M8eMGtWseY1jg0CTSEtsQrzMQ=; b=rHfVwDdvSNFaOkAH6w7tLGkwEOW6zlGw4x5pD80pYHhRdKgL+4h0FQn2pzug4MVs2r lXDGes00RnqkNCK2bIMhICH+QdhsoypzIFpXQ8SKBJmhXqJST7r0OS8JzfKdNG0JPunV q1Xi3JOp/Y5il9OH8eqC/JaGbU0MkvwYPFoc5kwRzGXwJAQfGW74Fdio/2vMri7bGfTk KXiWcfgz468DJEMWt1YQMagmlsyJxJnpQkCMPHOTy3UJWHjJ0UybTxrhGV0yVpgSmrLA lRrJauppolKT/FGAhdlYeLpRBKhR3Rrteb+KQljeNMS80mzt2BHA38UtTXNL+YhBFIRT c1Qw== 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=bQ7jn2G1Ocd74CKFE5M8eMGtWseY1jg0CTSEtsQrzMQ=; b=L65NsaGXYSGihNTXdDvWkR9L/GdAzIkYGvAUFv0xbKHHwfgEUh7SMzdG0gJc0UkUUG YBHYeR+8aV7qBUMjGDFFDhWbOkxEFRSHc/g8jHHFtCHI+u/0HwdiLz6b9N13ShW6rAc3 bbaaZ07ql4pZduBTytGXMFDrUcGFj8u/OB9hQy11XePc2CDzvOa8lrtXc5hZSyGKwqjK JRvOJCGhsOUvyCsqPzlBAIP4WR8bgtahET5e5hH8CnDcnfGe7gkBtB+goFCKV1AwmXue Eh+VlW0Wr4DhdzOGpz8W1Zgg8B6hBXQJj1ebchzsdu7F+SBdBoA3XRTkkwp8n5iGsj3u 25ig== X-Gm-Message-State: APjAAAV9mmhkyJ/QsvZDdBvFVwITEt/ForizEwCTC4tSzwrzt5mJVxjL ni0cTPSJ4S9prpN1aPa6Pgyjog== X-Google-Smtp-Source: APXvYqxCfv3mEcYP0OBQ7p/NQc/YXpAjvXOw/CM8nONbiO9CGVjT8SoAbA0Irrx7CjDMT/DKu+wEiw== X-Received: by 2002:a37:4dcb:: with SMTP id a194mr6618899qkb.351.1553872600277; Fri, 29 Mar 2019 08:16:40 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id p188sm1154213qkb.43.2019.03.29.08.16.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 29 Mar 2019 08:16:39 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 95956120A6D; Fri, 29 Mar 2019 12:16:37 -0300 (-03) Date: Fri, 29 Mar 2019 12:16:37 -0300 From: Alvaro Herrera To: Andres Freund Cc: Robert Haas , Simon Riggs , Pg Hackers , David Fetter , Rahila Syed , Pavan Deolasee , Amit Langote Subject: Re: monitoring CREATE INDEX [CONCURRENTLY] Message-ID: <20190329151637.GA28886@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190329150828.s2bu4zckuxnceo6u@alap3.anarazel.de> 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-29, Andres Freund wrote: > Hi, > > On 2019-03-29 12:02:18 -0300, Alvaro Herrera wrote: > > I just noticed that the CLUSTER calls index_build, which my patch > > modifies to include additional progress metrics; this means that during > > the index build phase, the metrics set by CLUSTER will be trashed by the > > ones my patch introduces. > > Yea, it really seems that the index build infrastructure needs to > support cooperating with the caller's progress reporting. For CLUSTER, > REINDEX, ALTER TABLE rewrites etc, they all would likely want to have > insight into the index build while also having their own progress. So, CLUSTER and ALTER TABLE rewrites only do non-concurrent index builds; and REINDEX can reuse pretty much the same wait-for metrics columns as CIC. So I think it's okay if I move only the metrics that conflict for index_build. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services