postgresql/src/test
Tom Lane fb7db40ad2 Clean up duplicate role and schema names in regression tests.
Since these names are global, using the same ones in different regression
tests creates a hazard of test failures if any two such scripts run
concurrently.  Let's establish a policy of not doing that.  In the cases
where a conflict existed, I chose to rename both sides: in principle one
script or the other could've been left in possession of the common name,
but that seems to just invite more trouble of the same sort.

There are a number of places where scripts are using names that seem
unduly generic, but in the absence of actual conflicts I left them alone.

In addition, fix insert.sql's use of "someone_else" as a role name.
That's a flat out violation of longstanding project policy, so back-patch
that change to v10 where the usage appeared.  The rest of this is just
future-proofing, as no two of these scripts are actually run concurrently
in the existing parallel_schedule.

Conflicts of schema-qualified names also exist, but will be dealt with
separately.

Discussion: https://postgr.es/m/4627.1521070268@sss.pgh.pa.us
2018-03-15 14:00:31 -04:00
..
authentication Add installcheck support to more test suites 2018-01-23 07:11:38 -05:00
examples Document security implications of search_path and the public schema. 2018-02-26 07:39:44 -08:00
isolation Remove restriction on SQL block length in isolationtester scanner. 2018-02-28 16:57:37 -05:00
kerberos Tests for Kerberos/GSSAPI authentication 2018-03-06 10:57:36 -05:00
ldap Prevent LDAP and SSL tests from running without support in build 2018-03-03 08:52:21 -05:00
locale Add a temp-install prerequisite to "check"-like targets not having one. 2017-11-05 18:51:08 -08:00
mb Fix MB regression tests for WAL-logging of hash indexes. 2017-03-15 07:25:36 -04:00
modules test_ddl_deparse: Don't use pg_class as source for a matview 2018-03-15 09:51:12 -03:00
perl Raise Test::More version requirement 2018-03-06 14:42:10 -05:00
recovery Add tests for reinit.c 2018-03-14 09:03:44 -04:00
regress Clean up duplicate role and schema names in regression tests. 2018-03-15 14:00:31 -04:00
ssl Fix test counting in SSL tests 2018-03-07 00:53:25 -05:00
subscription Fix filtering of unsupported relations in logical replication 2018-02-23 22:13:21 -05:00
thread Update copyright for 2018 2018-01-02 23:30:12 -05:00
Makefile Tests for Kerberos/GSSAPI authentication 2018-03-06 10:57:36 -05: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