pgsql: Make error logging in extended statistics more consistent

2019-05-30 Thread Tomas Vondra
Make error logging in extended statistics more consistent Most errors reported in extended statistics are internal issues, and so should use elog(). The MCV list code was already following this rule, but the functional dependencies and ndistinct coefficients were using a mix of elog() and ereport(

pgsql: Make error logging in extended statistics more consistent

2019-05-30 Thread Tomas Vondra
Make error logging in extended statistics more consistent Most errors reported in extended statistics are internal issues, and so should use elog(). The MCV list code was already following this rule, but the functional dependencies and ndistinct coefficients were using a mix of elog() and ereport(

pgsql: Make error logging in extended statistics more consistent

2019-05-30 Thread Tomas Vondra
Make error logging in extended statistics more consistent Most errors reported in extended statistics are internal issues, and so should use elog(). The MCV list code was already following this rule, but the functional dependencies and ndistinct coefficients were using a mix of elog() and ereport(