[COMMITTERS] pgsql: Standardize terminology for pg_statistic_ext entries.

2017-05-14 Thread Tom Lane
Standardize terminology for pg_statistic_ext entries. Consistently refer to such an entry as a "statistics object", not just "statistics" or "extended statistics". Previously we had a mismash of terms, accompanied by utter confusion as to whether the term was singular or plural. That's not only

[COMMITTERS] pgsql: Remove no-longer-needed fields of Hash plan nodes.

2017-05-14 Thread Tom Lane
Remove no-longer-needed fields of Hash plan nodes. skewColType/skewColTypmod are no longer used in the wake of commit 9aab83fc5, and seem unlikely to be wanted in future, so let's drop 'em. Discussion: https://postgr.es/m/16364.1494520...@sss.pgh.pa.us Branch -- master Details --- https

[COMMITTERS] pgsql: Update config.guess and config.sub

2017-05-14 Thread Peter Eisentraut
Update config.guess and config.sub Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/65b655b53ec1cb91fda0d34e5176f8cdcfcf2e3d Modified Files -- config/config.guess | 46 +- config/config.sub | 43 +++

[COMMITTERS] pgsql: Fix handling of extended statistics during ALTER COLUMN TYPE.

2017-05-14 Thread Tom Lane
Fix handling of extended statistics during ALTER COLUMN TYPE. ALTER COLUMN TYPE on a column used by a statistics object fails since commit 928c4de30, because the relevant switch in ATExecAlterColumnType is unprepared for columns to have dependencies from OCLASS_STATISTIC_EXT objects. Although the

[COMMITTERS] pgsql: Fix maintenance hazards caused by ill-considered use of default:

2017-05-14 Thread Tom Lane
Fix maintenance hazards caused by ill-considered use of default: cases. Remove default cases from assorted switches over ObjectClass and some related enum types, so that we'll get compiler warnings when someone adds a new enum value without accounting for it in all these places. In passing, re-or

[COMMITTERS] pgsql: Edit SGML documentation related to extended statistics.

2017-05-14 Thread Tom Lane
Edit SGML documentation related to extended statistics. Use the "statistics object" terminology uniformly here too. Assorted copy-editing. Put new catalogs.sgml sections into alphabetical order. Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/93ece9cc887239deef653

[COMMITTERS] pgsql: Attempt to fix compiler warning.

2017-05-14 Thread Robert Haas
Attempt to fix compiler warning. Per a report from Tom Lane, newer versions of gcc apparently think that partexprs_item_saved can be used uninitialized. Try to convince them otherwise. Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/edbe2a29365e0358387db92db0ccd526

[COMMITTERS] pgsql: Make stats regression test more robust in the face of parallel q

2017-05-14 Thread Tom Lane
Make stats regression test more robust in the face of parallel query. Commit 60690a6fe attempted to fix the wait_for_stats() function in this test so that it would wait properly if the tenk2 scans were done in parallel workers instead of the main session (typically as a consequence of force_parall

[COMMITTERS] pgsql: Make stats regression test more robust in the face of parallel q

2017-05-14 Thread Tom Lane
Make stats regression test more robust in the face of parallel query. Commit 60690a6fe attempted to fix the wait_for_stats() function in this test so that it would wait properly if the tenk2 scans were done in parallel workers instead of the main session (typically as a consequence of force_parall

[COMMITTERS] pgsql: doc: update PG 10 release notes for recent changes

2017-05-14 Thread Bruce Momjian
doc: update PG 10 release notes for recent changes Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/b91e5b4684d840c903a78e86700b9d906033c2ad Modified Files -- doc/src/sgml/release-10.sgml | 72 ++-- 1 file changed,

[COMMITTERS] pgsql: Make pgstat tabstat lookup hash table less fragile.

2017-05-14 Thread Tom Lane
Make pgstat tabstat lookup hash table less fragile. Code review for commit 090010f2e. Fix cases where an elog(ERROR) partway through a function would leave the persistent data structures in a corrupt state. pgstat_report_stat got this wrong by invalidating PgStat_TableEntry structs before removi

[COMMITTERS] pgsql: doc: update the "current as of" date in the PG 10 release notes

2017-05-14 Thread Bruce Momjian
doc: update the "current as of" date in the PG 10 release notes Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/de7cca982ca253236051c2a7f6477bee5ce4b045 Modified Files -- doc/src/sgml/release-10.sgml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[COMMITTERS] pgsql: stats regression test's wait_for_stats() must check timestamp to

2017-05-14 Thread Tom Lane
stats regression test's wait_for_stats() must check timestamp too. pg_stat_get_snapshot_timestamp() returns the timestamp seen in the "global" stats file. Because pgstat_write_statsfiles() writes per-DB stats files before the global file (or at least before renaming it into place), there is a win