Re: Division by zero in planner.c:grouping_planner() - Mailing list pgsql-hackers

From Qingqing Zhou
Subject Re: Division by zero in planner.c:grouping_planner()
Date
Msg-id CAJjS0u0eJpGgk92SRYAakEC8VGqJqxKCpxt8fVbEC2eyXVjKkg@mail.gmail.com
Whole thread Raw
In response to Division by zero in planner.c:grouping_planner()  (Piotr Stefaniak <postgres@piotr-stefaniak.me>)
Responses Re: Division by zero in planner.c:grouping_planner()
List pgsql-hackers
On Wed, Jul 29, 2015 at 11:26 AM, Piotr Stefaniak
<postgres@piotr-stefaniak.me> wrote:
> +                       Assert(path_rows != 0);
>                         if (tuple_fraction >= 1.0)
>                                 tuple_fraction /= path_rows;
>                 }
>

This does not sounds right: path_rows only used when tuple_fractions
>= 1.0. So the new Assert is an overkill.

Regards,
Qingqing



pgsql-hackers by date:

Previous
From: Qingqing Zhou
Date:
Subject: Re: Planner debug views
Next
From: Joe Conway
Date:
Subject: Re: more RLS oversights