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 1hBOdv-0002iO-3e for pgsql-committers@arkaria.postgresql.org; Tue, 02 Apr 2019 19:00:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hBOdt-0002u0-Qc for pgsql-committers@arkaria.postgresql.org; Tue, 02 Apr 2019 19:00:17 +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 1hBOds-0002tL-00 for pgsql-committers@lists.postgresql.org; Tue, 02 Apr 2019 19:00:17 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hBOdn-0005Sx-Df for pgsql-committers@lists.postgresql.org; Tue, 02 Apr 2019 19:00:15 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 1386E62DA; Tue, 2 Apr 2019 15:00:09 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Tue, 02 Apr 2019 15:00:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=Mri/V4pHjCMZ1TTqD9pTIaPzRp+ x8JCd4Eb0TrgTLgU=; b=BobOK5GHTcL7XKuTC27KZfAxZVGU+I+5MV0I+aJrDYk f/1tjrDUiQcoD/dR6JjAB0FsQpSo5YK8YKIHHsfomtwbQ7/CtENpOaZ5w+qyD87+ 0QH4CaBuexKpnDjsgPf1ZPTAVTbXFXTNKG/0qhIgqBF4P8L9mURfz5yIAfA5UGVC GfS7hmAElMocp/UeUt5uBfNh4lgwigZfj/JXGD9KT/pkQWKsmzFh1JShb2S3hpzy A5JHHamwIVMAMz9MXOGjR+9k02tWo1e6Oo9ZkbmGE1sTT9LdHYugWDbYFlUuZ/Kk J1WHGPvYmkldzjd7yLbpo3cqyqCx2uneYeJ+P5mc0kQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=Mri/V4 pHjCMZ1TTqD9pTIaPzRp+x8JCd4Eb0TrgTLgU=; b=dpXcCmo6mJxT3pACbd7C+2 g9tcKRyg3I0o5aLeuNPN0jqrEq9rwXliGDiyOnhSUAA5GGt8i/NDeASAP7iarYa3 cWP/tfzpZL/otQpdhmk7xuN9tCTD1ydpDBDc92UTsSXOUJfSIoVjP7mdP5RyDp1+ Wlo5t4GZxi+/G2yswLlC3qXQdnuO1ii1Je+18yWgWaNjuFo/elLs3gbNcKUTPoiX 8x95O0ZvLjtyJrD8AtajpeJJDtIyztAEmL4R1Z0hnvHcyKOGSMOiWMmytGfEveqS QtjwMuy9gutuzf1qOkkoGiJSR9tNMQIC0aFgy/fgakrKiLCwT/jRQQNZ03dPXrUQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrtddtgdduudduucdltddurdeguddtrddttd dmucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhepfffhvffukfhfgggtuggjsehttdertddttddv necuhfhrohhmpeetnhgurhgvshcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgrii gvlhdruggvqeenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgnecukfhppeel kedrvddutddrudegtddrudejudenucfrrghrrghmpehmrghilhhfrhhomheprghnughrvg hssegrnhgrrhgriigvlhdruggvnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from intern.anarazel.de (c-98-210-140-171.hsd1.ca.comcast.net [98.210.140.171]) by mail.messagingengine.com (Postfix) with ESMTPA id 9F43310397; Tue, 2 Apr 2019 15:00:07 -0400 (EDT) Date: Tue, 2 Apr 2019 12:00:03 -0700 From: Andres Freund To: Alvaro Herrera Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Report progress of CREATE INDEX operations Message-ID: <20190402190003.esiyxbmnm63jlydd@alap3.anarazel.de> References: <20190402184146.GA16653@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190402184146.GA16653@alvherre.pgsql> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2019-04-02 15:41:46 -0300, Alvaro Herrera wrote: > On 2019-Apr-02, Alvaro Herrera wrote: > > > Report progress of CREATE INDEX operations > > Argh, I pushed an older version of the commit. Note that longfin complains about something different than the output files: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=longfin&dt=2019-04-02%2018%3A49%3A03 lmgr.c:882:14: error: variable 'count' is used uninitialized whenever '?:' condition is false [-Werror,-Wsometimes-uninitialized] progress ? &count : NULL)); ^~~~~~~~ lmgr.c:883:12: note: uninitialized use occurs here total += count; ^~~~~ lmgr.c:882:14: note: remove the '?:' if its condition is always true progress ? &count : NULL)); ^~~~~~~~~~~ ~~~~~~~ lmgr.c:878:14: note: initialize the variable 'count' to silence this warning int count; ^ = 0 1 error generated. make[4]: *** [lmgr.o] Error 1 make[4]: *** Waiting for unfinished jobs.... Greetings, Andres Freund