From: Andres Freund <andres@anarazel.de>
To: Mahendra Singh Thalor <mahi6run@gmail.com>
To: Amit Kapila <amit.kapila16@gmail.com>
Cc: Amit Kapila <akapila@postgresql.org>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Allow vacuum command to process indexes in parallel.
Date: Tue, 31 Mar 2020 00:45:52 -0700
Message-ID: <52A7E56A-4D8D-4701-9332-CAB7A796D2FA@anarazel.de> (raw)
In-Reply-To: <CAKYtNAqG3NBMZqBX2izSkAfWGWsdXCnV-yedzyABcxBL21F-iw@mail.gmail.com>
References: <E1itMsg-0005Kj-7h@gemulon.postgresql.org>
<20200329224818.6phnhv7o2q2rfovf@alap3.anarazel.de>
<CAA4eK1+JtO6MRZZrYAUi790c20DoH94=fiskt_ok9cjuaDcnjA@mail.gmail.com>
<CAKYtNAqG3NBMZqBX2izSkAfWGWsdXCnV-yedzyABcxBL21F-iw@mail.gmail.com>
Hi,
On March 31, 2020 12:43:47 AM PDT, Mahendra Singh Thalor <mahi6run@gmail.com> wrote:
>On Mon, 30 Mar 2020 at 09:44, Amit Kapila <amit.kapila16@gmail.com>
>wrote:
>>
>> On Mon, Mar 30, 2020 at 4:18 AM Andres Freund <andres@anarazel.de>
>wrote:
>> >
>> > > 2076
>> > > 2077 if ((shared_balance >= VacuumCostLimit) &&
>> > > >>> CID ...: Incorrect expression
>(UNINTENDED_INTEGER_DIVISION)
>> > > >>> Dividing integer expressions "VacuumCostLimit" and
>"nworkers", and then converting the integer quotient to type "double".
>Any remainder, or fractional part of the quotient, is ignored.
>> > > 2078 (VacuumCostBalanceLocal > 0.5 *
>(VacuumCostLimit / nworkers)))
>> > > 2079 {
>> > > 2080 /* Compute sleep time based on the local
>cost balance */
>> > > 2081 msec = VacuumCostDelay *
>VacuumCostBalanceLocal / VacuumCostLimit;
>> > > 2082
>pg_atomic_sub_fetch_u32(VacuumSharedCostBalance,
>VacuumCostBalanceLocal);
>> > > 2083 VacuumCostBalanceLocal = 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. I am verifying fix and will post my
>results in coming days.
That doesn't seem necessary - we should commit a fix. We'll know in a few days for sure. But it's not hard to just theoretically look at the issue in this case?
Andres
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: andres@anarazel.de, mahi6run@gmail.com, amit.kapila16@gmail.com, akapila@postgresql.org
Subject: Re: pgsql: Allow vacuum command to process indexes in parallel.
In-Reply-To: <52A7E56A-4D8D-4701-9332-CAB7A796D2FA@anarazel.de>
References: <E1itMsg-0005Kj-7h@gemulon.postgresql.org> <20200329224818.6phnhv7o2q2rfovf@alap3.anarazel.de> <CAA4eK1+JtO6MRZZrYAUi790c20DoH94=fiskt_ok9cjuaDcnjA@mail.gmail.com> <CAKYtNAqG3NBMZqBX2izSkAfWGWsdXCnV-yedzyABcxBL21F-iw@mail.gmail.com> <52A7E56A-4D8D-4701-9332-CAB7A796D2FA@anarazel.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox