Re: [HACKERS] free space % calculation in pgstathashindex

Поиск
Список
Период
Сортировка
От Amit Kapila
Тема Re: [HACKERS] free space % calculation in pgstathashindex
Дата
Msg-id CAA4eK1LNPGi6pa6x0zfXakQ97i0y+dvUgacfG=LPwUFJNB98mg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [HACKERS] free space % calculation in pgstathashindex  (Ashutosh Sharma <ashu.coek88@gmail.com>)
Ответы Re: [HACKERS] free space % calculation in pgstathashindex  (Noah Misch <noah@leadboat.com>)
Список pgsql-hackers
On Mon, Aug 7, 2017 at 9:38 PM, Ashutosh Sharma <ashu.coek88@gmail.com> wrote:
> On Mon, Aug 7, 2017 at 7:19 PM, Amit Kapila <amit.kapila16@gmail.com> wrote:
>> On Mon, Aug 7, 2017 at 6:07 PM, Ashutosh Sharma <ashu.coek88@gmail.com> wrote:
>>> Hi,
>>>
>> ..
..
>> Why an extra parenthesis in above case whereas not in below case?  I
>> think the code will look consistent if you follow the same coding
>> practice.  I suggest don't use it unless you need it.
>
> That is because in the 1st case, there are multiple operators (*, +)
> whereas in the 2nd case we have just one(*). So, just to ensure that
> '*' is performed before '+',  i had used parenthesis, though it is not
> required as '*' has higher precedence than '+'. I have removed the
> extra parenthesis and attached is the new version of patch. Thanks.
>

Your latest patch looks good to me.

-- 
With Regards,
Amit Kapila.
EnterpriseDB: http://www.enterprisedb.com



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Ashutosh Bapat
Дата:
Сообщение: Re: [HACKERS] Partition-wise join for join between (declaratively)partitioned tables
Следующее
От: Masahiko Sawada
Дата:
Сообщение: Re: [HACKERS] Subscription code improvements