Re: Two division by 0 errors in optimizer/plan/planner.c and optimizer/path/costsize.c

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Piotr Stefaniak <postgres(at)piotr-stefaniak(dot)me>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Two division by 0 errors in optimizer/plan/planner.c and optimizer/path/costsize.c
Date: 2016-03-26 14:41:33
Message-ID: 4001.1459003293@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Piotr Stefaniak <postgres(at)piotr-stefaniak(dot)me> writes:
> using sqlsmith and UBSan I have found these two division by zero errors:

Hmm, thanks. Seems there's a bit of a disagreement as to whether
path->rows is allowed to be zero or not. It normally isn't; but
we've created an exception that provably-empty relations have zero
rowcount, so now these places had better deal with the case.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Ashutosh Sharma 2016-03-26 16:01:48 Re: Performance degradation in commit 6150a1b0
Previous Message Andrew Dunstan 2016-03-26 14:40:28 Re: Alter or rename enum value