postgresql/src
Tomas Vondra fe415ff104 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(). Fix this by changing most places to elog(), with
the exception of input functions.

This is a mostly cosmetic change, it makes the life a little bit easier
for translators, as elog() messages are not translated. So backpatch to
PostgreSQL 10, where extended statistics were introduced.

Author: Tomas Vondra
Backpatch-through: 10 where extended statistics were added
Discussion: https://postgr.es/m/20190503154404.GA7478@alvherre.pgsql
2019-05-30 17:03:36 +02:00
..
backend Make error logging in extended statistics more consistent 2019-05-30 17:03:36 +02:00
bin In the pg_upgrade test suite, don't write to src/test/regress. 2019-05-28 12:59:00 -07:00
common Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
fe_utils Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
include Fix typos. 2019-05-26 18:28:18 +05:30
interfaces Fix more thinkos in new ECPG "PREPARE AS" code. 2019-05-26 10:39:11 -04:00
makefiles Define WIN32_STACK_RLIMIT throughout win32 and cygwin builds. 2019-04-09 08:25:39 -07:00
pl Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
port Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
template Yet further rethinking of build changes for macOS Mojave. 2018-11-02 18:54:00 -04:00
test Fix typo in message 2019-05-28 17:36:14 -04:00
timezone Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
tools In the pg_upgrade test suite, don't write to src/test/regress. 2019-05-28 12:59:00 -07:00
tutorial Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
.gitignore
DEVELOPERS
Makefile Fix partial-build problems introduced by having more generated headers. 2018-04-09 16:42:10 -04:00
Makefile.global.in Consistently test for in-use shared memory. 2019-04-12 22:36:38 -07:00
Makefile.shlib Ensure static libraries have correct mod time even if ranlib messes it up. 2018-11-29 15:53:44 -05:00
nls-global.mk Move logging.h and logging.c from src/fe_utils/ to src/common/. 2019-05-14 14:20:10 -04:00