postgresql/src/test
Alvaro Herrera bf2a691e02 Fix extended statistics with partial analyzes
Either because of a previous ALTER TABLE .. SET STATISTICS 0 or because
of being invoked with a partial column list, ANALYZE could fail to
acquire sufficient data to build extended statistics.  Previously, this
would draw an ERROR and fail to collect any statistics at all (extended
and regular).  Change things so that we raise a WARNING instead, and
remove a hint that was wrong in half the cases.

Reported by: David Rowley
Discussion: https://postgr.es/m/CAKJS1f9Kk0NF6Fg7TA=JUXsjpS9kX6NVu27pb5QDCpOYAvb-Og@mail.gmail.com
2017-04-17 14:00:47 -03:00
..
authentication Fix the new SASLprep tests to work with non-UTF-8 locales. 2017-04-08 13:32:38 +03:00
examples Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
isolation Move isolationtester's is-blocked query into C code for speed. 2017-04-10 10:26:54 -04:00
locale Clean up Perl code according to perlcritic 2017-03-27 08:18:22 -04:00
mb Fix MB regression tests for WAL-logging of hash indexes. 2017-03-15 07:25:36 -04:00
modules Ensure BackgroundWorker struct contents are well-defined. 2017-04-16 23:23:44 -04:00
perl Remove --verbose from PROVE_FLAGS 2017-04-04 08:42:09 -04:00
recovery Change 'diag' to 'note' in TAP tests 2017-03-28 20:38:06 -04:00
regress Fix extended statistics with partial analyzes 2017-04-17 14:00:47 -03:00
ssl Change 'diag' to 'note' in TAP tests 2017-03-28 20:38:06 -04:00
subscription Fix logical replication between different encodings 2017-04-06 14:41:09 -04:00
thread Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
Makefile Add TAP tests for password-based authentication methods. 2017-03-17 11:34:16 +02:00
README Add TAP tests for password-based authentication methods. 2017-03-17 11:34:16 +02:00

README

PostgreSQL tests
================

This directory contains a variety of test infrastructure as well as some of the
tests in PostgreSQL. Not all tests are here -- in particular, there are more in
individual contrib/ modules and in src/bin.

Not all these tests get run by "make check". Check src/test/Makefile to see
which tests get run automatically.

authentication/
  Tests for authentication

examples/
  Demonstration programs for libpq that double as regression tests via
  "make check"

isolation/
  Tests for concurrent behavior at the SQL level

locale/
  Sanity checks for locale data, encodings, etc

mb/
  Tests for multibyte encoding (UTF-8) support

modules/
  Extensions used only or mainly for test purposes, generally not suitable
  for installing in production databases

perl/
  Infrastructure for Perl-based TAP tests

recovery/
  Test suite for recovery and replication

regress/
  PostgreSQL's main regression test suite, pg_regress

ssl/
  Tests to exercise and verify SSL certificate handling

subscription/
  Tests for logical replication

thread/
  A thread-safety-testing utility used by configure