Re: [HACKERS] PATCH: multivariate histograms and MCV lists
Alvaro Herrera <alvherre@alvh.no-ip.org>
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Mark Dilger <hornschnorter@gmail.com>
Cc: Tomas Vondra <tomas.vondra@2ndquadrant.com>, Adrien Nayrat <adrien.nayrat@dalibo.com>, Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2017-11-26T03:32:08Z
Lists: pgsql-hackers
Mark Dilger wrote: > I understand project policy to allow elog for error conditions that will be reported > in "can't happen" type situations, similar to how an Assert would be used. For > conditions that can happen through (mis)use by the user, ereport is appropriate. > Not knowing whether you thought these elogs were reporting conditions that a > user could cause, I did not know if you should change them to ereports, or if you > should just add a brief comment along the lines of /* should not be possible */. Two things dictate that policy: 1. messages are translated by default for ereport but not for elog. Both things can be overridden, but we tend not to do it unless there's no choice. 2. you can assign SQLSTATE only with ereport. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Commits
-
Convert pre-existing stats_ext tests to new style
- dbb984128ebf 12.0 landed
-
Add support for multivariate MCV lists
- 7300a699502f 12.0 landed
-
Improve ANALYZE's strategy for finding MCVs.
- b5db1d93d2a6 11.0 cited
-
Clone extended stats in CREATE TABLE (LIKE INCLUDING ALL)
- 5564c1181548 11.0 cited
-
Try again to fix accumulation of parallel worker instrumentation.
- 8526bcb2df76 11.0 cited
-
Adjust psql \d query to avoid use of @> operator.
- 471d55859c11 11.0 cited
-
Message style fixes
- 821fb8cdbf70 11.0 cited
-
Add security checks to selectivity estimation functions
- e2d4ef8de869 10.0 cited