postgresql/src/test
Tom Lane fe921a360a Fix RelationBuildPartitionKey's processing of partition key expressions.
Failure to advance the list pointer while reading partition expressions
from a list results in invoking an input function with inappropriate data,
possibly leading to crashes or, with carefully crafted input, disclosure
of arbitrary backend memory.

Bug discovered independently by Álvaro Herrera and David Rowley.
This patch is by Álvaro but owes something to David's proposed fix.
Back-patch to v10 where the issue was introduced.

Security: CVE-2018-1052
2018-02-05 10:37:30 -05:00
..
authentication Avoid and detect SIGPIPE race in TAP tests. 2017-12-16 10:03:38 -08:00
examples Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
isolation Avoid crash during EvalPlanQual recheck of an inner indexscan. 2018-01-27 13:52:24 -05:00
locale Add a temp-install prerequisite to "check"-like targets not having one. 2017-11-05 18:51:15 -08:00
mb Fix MB regression tests for WAL-logging of hash indexes. 2017-03-15 07:25:36 -04:00
modules Add a temp-install prerequisite to "check"-like targets not having one. 2017-11-05 18:51:15 -08:00
perl Avoid and detect SIGPIPE race in TAP tests. 2017-12-16 10:03:38 -08:00
recovery In tests, await an LSN no later than the recovery target. 2017-12-31 21:58:33 -08:00
regress Fix RelationBuildPartitionKey's processing of partition key expressions. 2018-02-05 10:37:30 -05:00
ssl Remove incorrect comment 2017-06-17 10:19:48 +02:00
subscription Fix application of identity values in some cases 2018-02-02 15:06:52 -05:00
thread Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04: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

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