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 1i8r6K-0004pF-6Q for pgsql-committers@arkaria.postgresql.org; Fri, 13 Sep 2019 19:19:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i8r6J-0007r8-2I for pgsql-committers@arkaria.postgresql.org; Fri, 13 Sep 2019 19:19:23 +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 1i8r6I-0007qs-NH for pgsql-committers@lists.postgresql.org; Fri, 13 Sep 2019 19:19:22 +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 1i8r6F-0006ZG-NA for pgsql-committers@lists.postgresql.org; Fri, 13 Sep 2019 19:19:22 +0000 Received: by mail-qk1-x741.google.com with SMTP id u184so26380156qkd.4 for ; Fri, 13 Sep 2019 12:19:19 -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=N7QVsHmmwYrOxJ/l+/M+7glL0Vh/YNazzIfCdGVGqOg=; b=D8Vmq0t4EA5BrhBXWImUc1J8oHwxTIZdZowchNWVaDAfBHgct4/4k6mzSc4EZA2b1H XlNFBQSTrxx/c6XB77UT06ngihPHtnm6H1GOff+0GRV6V5tDY8pEpkO55hNXIpsqwFf4 oXLVhhWEZ7GU1EJvNhwqI/hNPdJ9xZ9evQYq51IYiXZuk4c3xKx2z9zZFSZMmcf/wJDC GGy+5hLk3CCQ5d9coYwC6rMNYRiXDKj8J0ucfu42GzJP3NREk0MrbORTXxdnO+5s9UPC +SKdIjyilW52bAnaWyO+mF10KWjmvg93iX3mGmQUK2V2gBobGsJuGZu2gPx3rrwDDOXJ QXSA== 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=N7QVsHmmwYrOxJ/l+/M+7glL0Vh/YNazzIfCdGVGqOg=; b=DGDLm2Bkp5bZXWzIp56CSMB6paXRV41/PNXPy7FIA6GCv8tP33wcwBH/oIedE45sui dbgj7sgYEz07/SqLy3dB+xlvOrVWGnlGYx2xIm6G8oleJaMi2QAFMjPmVT+GPXo1ZUhl hmbQJIe91S1ADFmEFqELykM566WdRIV3F7O8x4AS0YXY/9DWvpdy0c2beLEXQfgnOqBW niOTXP0K38sTtW93zx5qkeqFarR1iOfg73Bgxt808BFRM6ER9we65RXtDIdtiwXVIIgT CR0zd+EGhuQ95utmKif9UlJbT/7I18pP7q9t5ycj2DKiWlRwHTjXHiTikaZwdq1nBoL7 H/WQ== X-Gm-Message-State: APjAAAXbbto/tv3HzBvOg7ZOIpMCgFvUE/ROumzyLkdpMhVLeEg4djPx xQF4KqxHBBb4wUXdtonJcFTVjfuCsNDlqI5M3wkMfPZA9ndbtxL6ofglzVRlpLtnAi4/UAaThM6 e8tahW5l3mad0i9hecItzK0t2aacGeSV1KnFIN8tARwscxA3YzMs7FWwO4gxGbPv8AfitZWDbEW 6AvpWA6EFM5FmjIkTULQ== X-Google-Smtp-Source: APXvYqyKGCwQjNw+FxXhmuXHMqQGT4eNlTdiVkmNAM9zBQzG15q+ga9NZbtK+IdAg7j7ZdlFw0lSIg== X-Received: by 2002:a37:3c4:: with SMTP id 187mr2624807qkd.424.1568400764081; Fri, 13 Sep 2019 11:52:44 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([179.56.30.174]) by smtp.gmail.com with ESMTPSA id e42sm2070090qte.26.2019.09.13.11.52.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2019 11:52:43 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id EB2031205E5; Fri, 13 Sep 2019 15:52:41 -0300 (-03) Date: Fri, 13 Sep 2019 15:52:41 -0300 From: Alvaro Herrera To: Tom Lane Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Fix progress reporting of CLUSTER / VACUUM FULL Message-ID: <20190913185241.GA4516@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <19795.1568400476@sss.pgh.pa.us> 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-Sep-13, Tom Lane wrote: > Alvaro Herrera writes: > > Fix progress reporting of CLUSTER / VACUUM FULL > > Not a new problem of this patch, exactly, but: > > /* Reindex options */ > #define REINDEXOPT_VERBOSE 1 << 0 /* print progress info */ > +#define REINDEXOPT_REPORT_PROGRESS 1 << 1 /* report pgstat progress */ > > Surely these macro definitions are incredibly dangerous due to their > lack of parentheses. Ugh, I knew there was something odd here in the back of my mind but I was unable to see what it was :-( I'll fix those definitions. Thanks for looking, -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services