pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Make error logging in extended statistics more consistent
3+ messages / 1 participants
[nested] [flat]

* pgsql: Make error logging in extended statistics more consistent
@ 2019-05-30 15:06 Tomas Vondra <tomas.vondra@postgresql.org>
  0 siblings, 0 replies; 3+ messages in thread

From: Tomas Vondra @ 2019-05-30 15:06 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/fe415ff10408a1487d5773b47459306476ec58f0

Modified Files
--------------
src/backend/statistics/dependencies.c |  4 +---
src/backend/statistics/mvdistinct.c   | 22 +++++++---------------
2 files changed, 8 insertions(+), 18 deletions(-)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* pgsql: Make error logging in extended statistics more consistent
@ 2019-05-30 15:07 Tomas Vondra <tomas.vondra@postgresql.org>
  0 siblings, 0 replies; 3+ messages in thread

From: Tomas Vondra @ 2019-05-30 15:07 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/9c9a74cd3257324257ec016e800ce0a6d5af88c7

Modified Files
--------------
src/backend/statistics/dependencies.c |  4 +---
src/backend/statistics/mvdistinct.c   | 22 +++++++---------------
2 files changed, 8 insertions(+), 18 deletions(-)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* pgsql: Make error logging in extended statistics more consistent
@ 2019-05-30 15:07 Tomas Vondra <tomas.vondra@postgresql.org>
  0 siblings, 0 replies; 3+ messages in thread

From: Tomas Vondra @ 2019-05-30 15:07 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/39c9efc15646b3eb36d4095c3657405894dc3ea4

Modified Files
--------------
src/backend/statistics/dependencies.c |  4 +---
src/backend/statistics/mvdistinct.c   | 22 +++++++---------------
2 files changed, 8 insertions(+), 18 deletions(-)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2019-05-30 15:07 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-05-30 15:06 pgsql: Make error logging in extended statistics more consistent Tomas Vondra <tomas.vondra@postgresql.org>
2019-05-30 15:07 pgsql: Make error logging in extended statistics more consistent Tomas Vondra <tomas.vondra@postgresql.org>
2019-05-30 15:07 pgsql: Make error logging in extended statistics more consistent Tomas Vondra <tomas.vondra@postgresql.org>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox