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 1hBOi8-0002xw-UI for pgsql-committers@arkaria.postgresql.org; Tue, 02 Apr 2019 19:04:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hBOi7-0001Ud-Gt for pgsql-committers@arkaria.postgresql.org; Tue, 02 Apr 2019 19:04:39 +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 1hBOi7-0001UW-AB for pgsql-committers@lists.postgresql.org; Tue, 02 Apr 2019 19:04:39 +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 1hBOi3-0005Xn-QX for pgsql-committers@lists.postgresql.org; Tue, 02 Apr 2019 19:04:38 +0000 Received: by mail-qk1-x741.google.com with SMTP id n68so8620043qka.1 for ; Tue, 02 Apr 2019 12:04:35 -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=ezk6GAk5REg8AsNaWpK4d5tLzi4eeRJ72UgeNKBwFuc=; b=VJ2P/BNOxxQaOYgcMeOwuuB7Px6aFZ1iyXOg+maQutBlJh+ff0f7MHtOW8PYOrUaeA 2A6MyszSDuYC8fRaX+xK9EqeH7OH3GOzKqMtdpketQOq2eqSm3ADr0qn15w71/C5U0Wh csceqSvX1lcWHitzHD+xod7Sr3j8r1bSC4FhrXopZh1YhKCfwbq/3UEwEahoMFWvycbv M/AX/U7kViTeatLpIQdk/qDU8FJvRPH67t+T+3mStIJ7ix4XNXZIaqI3O2V94VtxKxl/ 8SFkIPVwFLqIUO7ANwF3M5p6wpEJ2tGSxwWno5cEod890WPFJyxa27bpjdgMBYmk1DAp bl2w== 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=ezk6GAk5REg8AsNaWpK4d5tLzi4eeRJ72UgeNKBwFuc=; b=gYXYf1rqotG7LdXEuQlcLhcb4xQSRqP7sB+O40nzTIL3vBXsNijBDJdj2h+BQrolTN 8sU5xLHLYV3sC+x4/35ak5V1VcbwD0EbLBGNMrdHX7wkMlgYUXjZlBdtvpkqfmzR4HNN uJvXL7OQKp9gT5b1JDwjIUxpShHpMubMXdPZ/jlfLEctxL28kxaWuRcvWCX6L/3bY0X2 O4FK8pmp+IYO0D7vJCGUngmne4L4SLhjzFSQSTY0AwMUl0rFy+dYx9ZZwi4PZdPhSIs5 cEvkyxikvWDHJLIZZfbgZ6Ui85vDDFQu4OqEyaAorsJB8zOAGpwE2EE8uks+hV5YuFIN nkOg== X-Gm-Message-State: APjAAAXZOATvArBN4GbLTKclvgdVtyp1f76kHxPih+vt9sD1KFOS6p7n /FNv7J2Pqg6DWV1nJIvx2Oi2DA== X-Google-Smtp-Source: APXvYqwpvJEWh33RpIOsMI8KduTzpCV1ogOnYPcceY8MqPna8NCMVK1jbUvnDXZIQr6jaH/0843rqQ== X-Received: by 2002:ae9:e64d:: with SMTP id x13mr1203596qkl.112.1554231874161; Tue, 02 Apr 2019 12:04:34 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id l22sm6747289qkk.83.2019.04.02.12.04.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Apr 2019 12:04:33 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 6FA48120D16; Tue, 2 Apr 2019 16:04:31 -0300 (-03) Date: Tue, 2 Apr 2019 16:04:31 -0300 From: Alvaro Herrera To: Andres Freund Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Report progress of CREATE INDEX operations Message-ID: <20190402190431.GA22549@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190402190003.esiyxbmnm63jlydd@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-Apr-02, Andres Freund wrote: > 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; > ^ Had noticed, thanks. Just pushed a blind fix for that ... -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services