Re: Should the function get_variable_numdistinct consider the case when stanullfrac is 1.0? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Should the function get_variable_numdistinct consider the case when stanullfrac is 1.0?
Date
Msg-id 685722.1603723026@sss.pgh.pa.us
Whole thread Raw
In response to Should the function get_variable_numdistinct consider the case when stanullfrac is 1.0?  (Zhenghua Lyu <zlyu@vmware.com>)
Responses Re: Should the function get_variable_numdistinct consider the case when stanullfrac is 1.0?  (Zhenghua Lyu <zlyu@vmware.com>)
List pgsql-hackers
Zhenghua Lyu <zlyu@vmware.com> writes:
>    It seems the function `get_variable_numdistinct` ignore the case when stanullfrac is 1.0:

I don't like this patch at all.  What's the argument for having a special
case for this value?  When would we ever get exactly 1.0 in practice?

            regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: default result formats setting
Next
From: "David G. Johnston"
Date:
Subject: Re: Additional Chapter for Tutorial