Skip to content
Snippets Groups Projects
Select Git revision
  • benchmark-tools
  • postgres-lambda
  • master default
  • REL9_4_25
  • REL9_5_20
  • REL9_6_16
  • REL_10_11
  • REL_11_6
  • REL_12_1
  • REL_12_0
  • REL_12_RC1
  • REL_12_BETA4
  • REL9_4_24
  • REL9_5_19
  • REL9_6_15
  • REL_10_10
  • REL_11_5
  • REL_12_BETA3
  • REL9_4_23
  • REL9_5_18
  • REL9_6_14
  • REL_10_9
  • REL_11_4
23 results

mvdistinct.c

Blame
    • Tomas Vondra's avatar
      9c9a74cd
      Make error logging in extended statistics more consistent · 9c9a74cd
      Tomas Vondra authored
      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
      9c9a74cd
      History
      Make error logging in extended statistics more consistent
      Tomas Vondra authored
      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
    mvdistinct.c 16.92 KiB