postgresql/src/test
Tom Lane b265aa1f39 Avoid low-probability regression test failures in timestamp[tz] tests.
If the first transaction block in these tests were entered exactly
at midnight (California time), they'd report a bogus failure due
to 'now' and 'midnight' having the same values.  Commit 8c2ac75c5
had dismissed this as being of negligible probability, but we've
now seen it happen in the buildfarm, so let's prevent it.  We can
get pretty much the same test coverage without an it's-not-midnight
assumption by moving the does-'now'-work cases into their own test step.

While here, apply commit 47169c255's s/DELETE/TRUNCATE/ change to
timestamptz as well as timestamp (not sure why that didn't
occur to me at the time; the risk of failure is the same).

Back-patch to all supported branches, since the main point is
to get rid of potential buildfarm failures.

Discussion: https://postgr.es/m/14821.1577031117@sss.pgh.pa.us
2019-12-22 18:00:22 -05:00
..
authentication Fix use of term "verifier" 2019-10-12 21:41:59 +02:00
examples Remove useless "return;" lines 2019-11-28 16:48:37 -03:00
isolation Improve isolationtester's timeout management. 2019-12-09 14:31:57 -05:00
kerberos Save Kerberos and LDAP daemon logs where the buildfarm can find them. 2019-08-06 17:08:07 -04:00
ldap Be more careful about port selection in src/test/ldap/. 2019-09-09 14:21:40 -04:00
locale Make sort-test.py Python 3 compatible 2019-01-04 11:23:24 +01:00
mb Fix MB regression tests for WAL-logging of hash indexes. 2017-03-15 07:25:36 -04:00
modules Disallow dropping rules on system tables by default 2019-12-20 08:27:37 +01:00
perl Revert commits 290acac92b and 8a7e9e9dad. 2019-11-30 08:01:20 +05:30
recovery Revert commits 290acac92b and 8a7e9e9dad. 2019-11-30 08:01:20 +05:30
regress Avoid low-probability regression test failures in timestamp[tz] tests. 2019-12-22 18:00:22 -05:00
ssl Update minimum SSL version 2019-12-04 22:07:43 +01:00
subscription Add test coverage for "unchanged toast column" replication code path. 2019-11-22 12:52:26 -05:00
thread Fix inconsistencies and typos in the tree, take 11 2019-08-19 16:21:39 +09:00
Makefile Revert "Allow on-line enabling and disabling of data checksums" 2018-04-09 19:03:42 +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