Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jJBfh-0004RN-J0 for pgsql-committers@arkaria.postgresql.org; Tue, 31 Mar 2020 07:50:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jJBfg-0003Jd-EE for pgsql-committers@arkaria.postgresql.org; Tue, 31 Mar 2020 07:50:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jJBfe-0003JW-JI for pgsql-committers@lists.postgresql.org; Tue, 31 Mar 2020 07:50:52 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jJBfa-00082C-MZ for pgsql-committers@lists.postgresql.org; Tue, 31 Mar 2020 07:50:50 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 22D555C02B6; Tue, 31 Mar 2020 03:45:56 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Tue, 31 Mar 2020 03:45:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:in-reply-to:references:mime-version:content-type :content-transfer-encoding:subject:to:cc:from:message-id; s=fm1; bh=g6cVHtevqQManZ9kwIyIISav+Th5ana5X4KJtWBommY=; b=YGw8RxwcZcTY hM+i2WdMaAMVcQ2j/C1nBNl9J+h0I8fHxubVYuqBQ1yiK5WPhyp74DK6QYqkPWB2 dTmwIx3JktVBFeoBc/tnNQkAdKlpALLhJIDEAunFeUkO927Nu1zTQYqMogZJcbo2 2l04euA5pmGdJueY19ixO97lT+WcPYn/iyjsiNRKJFCcUJKuB9BjfyoGb7EzzKok 0oYO1v8MI3uuQwQBhkF1r6awOe1sRHpRLf+PsRh3BYPIZuurF1p45Q02mDhhRsvU RHM4gFBenL7pIPaMjCoJo1sff5KJ/7790ZSm7d4iTl2EJW8OVID9q0zuBGakJxmY YfzjUePjvQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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=g6cVHtevqQManZ9kwIyIISav+Th5ana5X4KJtWBom mY=; b=VseV83e1biGnVk1RWb5OnjVIxxLZJ1prJkdnXskht6L1cpg3iKY4vr4U8 3A3I/gbAAt5ybfpLxOMzeN6ZCtsKcYBBf81F/L60gvb0f32N/TTY5GtssL04UGC6 kuiqKez4ql1prENdzsBPBA4bOzVwW5ztH71t/TwtinU52MCCYckMkvfLv2MIdGwr 5InFzer9/x3vHhTXD/QE3T73unn/TD51nX6f95Pa+/FlUTD8ixeWfnVUiIXpe8ZN NMko8nqWvQ9LT0ad6RK5iHMQjRrX1yIgFPFrggzti65rmo5gKxy0H0ELgccGiXXu f7NHlXws6HWGkI3D5cxCMd/05nKAw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrudeiiedguddvfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefffggjfhggtgfguffvhffksehtqhhmtddtreejnecuhfhrohhmpeetnhgu rhgvshcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucfkph epieejrdduiedtrddvudejrddvhedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghr rghmpehmrghilhhfrhhomheprghnughrvghssegrnhgrrhgriigvlhdruggv X-ME-Proxy: Received: from ahand.lan (c-67-160-217-250.hsd1.ca.comcast.net [67.160.217.250]) by mail.messagingengine.com (Postfix) with ESMTPA id 634E43280059; Tue, 31 Mar 2020 03:45:55 -0400 (EDT) Date: Tue, 31 Mar 2020 00:45:52 -0700 User-Agent: K-9 Mail for Android In-Reply-To: References: <20200329224818.6phnhv7o2q2rfovf@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: pgsql: Allow vacuum command to process indexes in parallel. To: Mahendra Singh Thalor ,Amit Kapila CC: Amit Kapila ,pgsql-committers@lists.postgresql.org From: Andres Freund Message-ID: <52A7E56A-4D8D-4701-9332-CAB7A796D2FA@anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi,=20 On March 31, 2020 12:43:47 AM PDT, Mahendra Singh Thalor wrote: >On Mon, 30 Mar 2020 at 09:44, Amit Kapila >wrote: >> >> On Mon, Mar 30, 2020 at 4:18 AM Andres Freund >wrote: >> > >> > > 2076 >> > > 2077 if ((shared_balance >=3D VacuumCostLimit) && >> > > >>> CID =2E=2E=2E: Incorrect expression=20 >(UNINTENDED_INTEGER_DIVISION) >> > > >>> Dividing integer expressions "VacuumCostLimit" and >"nworkers", and then converting the integer quotient to type "double"=2E >Any remainder, or fractional part of the quotient, is ignored=2E >> > > 2078 (VacuumCostBalanceLocal > 0=2E5 * >(VacuumCostLimit / nworkers))) >> > > 2079 { >> > > 2080 /* Compute sleep time based on the local >cost balance */ >> > > 2081 msec =3D VacuumCostDelay * >VacuumCostBalanceLocal / VacuumCostLimit; >> > > 2082 =20 >pg_atomic_sub_fetch_u32(VacuumSharedCostBalance, >VacuumCostBalanceLocal); >> > > 2083 VacuumCostBalanceLocal =3D 0; >> > >> > Which seems like a fair enough complaint? >> > >> >> Yeah, how can we set up and test a fix for this? Where can I see >these results? > >I am able to make coverity setup=2E I am verifying fix and will post my >results in coming days=2E That doesn't seem necessary - we should commit a fix=2E We'll know in a fe= w days for sure=2E But it's not hard to just theoretically look at the issu= e in this case? Andres --=20 Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E