pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomas Vondra <tomas.vondra@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Make error logging in extended statistics more consistent
Date: Thu, 30 May 2019 15:07:13 +0000
Message-ID: <E1hWMe9-0005eY-Pu@gemulon.postgresql.org> (raw)

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(-)



view thread (3+ messages)

Message-ID: <E1hWMe9-0005eY-Pu@gemulon.postgresql.org>
Permalink:  ../E1hWMe9-0005eY-Pu@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1hWMe9-0005eY-Pu@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tomas.vondra@postgresql.org
  Subject: Re: pgsql: Make error logging in extended statistics more consistent
  In-Reply-To: <E1hWMe9-0005eY-Pu@gemulon.postgresql.org>
  References: <E1hWMe9-0005eY-Pu@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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