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 1h9xCC-0006S0-OP for pgsql-hackers@arkaria.postgresql.org; Fri, 29 Mar 2019 19:29:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h9xBD-0002Qf-Gl for pgsql-hackers@arkaria.postgresql.org; Fri, 29 Mar 2019 19:28:43 +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 1h9xBD-0002QY-4j for pgsql-hackers@lists.postgresql.org; Fri, 29 Mar 2019 19:28:43 +0000 Received: from mail-qt1-x843.google.com ([2607:f8b0:4864:20::843]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h9xBA-0000nt-Ev for pgsql-hackers@lists.postgresql.org; Fri, 29 Mar 2019 19:28:42 +0000 Received: by mail-qt1-x843.google.com with SMTP id t28so3927942qte.6 for ; Fri, 29 Mar 2019 12:28:40 -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=rXLBONvF0r/Kpm3XkHMuv44rlRsoeEHy3JaJ7B0iZDI=; b=Resfi0E/KvEfvMJzlgq1KYjhaxdoywCnFEtsGWlAuCO7gjVl2ns8gkauLJChPvA4JN URGwr1qs1J2x/sPgrMDBLD8M39SqBmxBWvJFC74itVYraUeRVcv4OYANR3SLfG3IWrlM 5optlD4jCP6uEy4yTrnNM4nr/g1/8kYPdhVDGCtPErsu4oL5szZ+MEU83YgdQZrp0jxC 2t6GW7BELG3wxZTSSkVrav0X8XG/nK29JcuRdzKL6xG9CqCrj/11o0sbMfqJLKYvgD1Z 26W0Z62GqR9tULtoIZWy4BewVw25nrmD5FUES22sYSHmu12WxfxSHzYc8Za0WNhlrvdT /W2Q== 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=rXLBONvF0r/Kpm3XkHMuv44rlRsoeEHy3JaJ7B0iZDI=; b=B1ZEEcQrptc8kRdS6l7MkTo0mTY7S1RA9KiP94FWxqxaFxc6p0Rpa5ag7br0jI053W YukoSLYUE1KRwNEfZ8l2D27D1ycwTO1Hmp62hUTQzt29nKFTuwmh4xQhS8VNLA25ViP2 RNXooPH25QzgOvMUQTu3FmCAnlDVdDfLqUGaXnPbIkzh8wCsLg0TJzd3AToQeSqvTIlg Gqj6Lfjw/Jwn6EfL+ziCGsIrbsTAL1US9EkwCifR+N9yQG7LPLNty+1OaTm4zJkJcevY i1j++nVRdBAzwl14Or3XeWfr88+pESk1ldGZEqTZx+JVV3Vnm+bB4P67yl4DB9F++ZiH Zz/w== X-Gm-Message-State: APjAAAXMArrLRrAtewMwPsldixL1CMTSC/7mOHkKiVzQEbagIT1S3hGU /QGcaSQ1faCWPAptljbB9iRlRA== X-Google-Smtp-Source: APXvYqwNfxss88Ad2hnpxqnMgrF4fnEghJkbv2A1d6RAVvTmRQE+wyBH6RuH20Wm1Yj4N4RLWRqG0Q== X-Received: by 2002:ac8:184b:: with SMTP id n11mr41913333qtk.210.1553887719819; Fri, 29 Mar 2019 12:28:39 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id l28sm1823574qtl.53.2019.03.29.12.28.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 29 Mar 2019 12:28:39 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 44CB312095D; Fri, 29 Mar 2019 16:28:37 -0300 (-03) Date: Fri, 29 Mar 2019 16:28:37 -0300 From: Alvaro Herrera To: Robert Haas Cc: Andres Freund , Simon Riggs , Pg Hackers , David Fetter , Rahila Syed , Pavan Deolasee , Amit Langote Subject: Re: monitoring CREATE INDEX [CONCURRENTLY] Message-ID: <20190329192837.GA3633@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-29, Robert Haas wrote: > On Fri, Mar 29, 2019 at 2:16 PM Alvaro Herrera wrote: > > I think we should consider a new column of an array type, where we could > > put things like the list of PIDs to be waited for, the list of OIDs of > > index to rebuild, or the list of partitions to build the index on. > > This has to work with a fixed-size chunk of shared memory. Bah, of course. Maybe we can consider using dynamic shmem for that, and include a pointer to it in the fixed-size chunk. (It's a bit too late to be writing this code, mind; I'm just proposing this for a future improvement.) -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services