postgresql/src/test
Jeff Davis c44f6334ca Simplify permissions for LOCK TABLE.
The prior behavior was confusing and hard to document. For instance,
if you had UPDATE privileges, you could lock a table in any lock mode
except ACCESS SHARE mode.

Now, if granted a privilege to lock at a given mode, one also has
privileges to lock at a less-conflicting mode. MAINTAIN, UPDATE,
DELETE, and TRUNCATE privileges allow any lock mode. INSERT privileges
allow ROW EXCLUSIVE (or below). SELECT privileges allow ACCESS SHARE.

Reviewed-by: Nathan Bossart
Discussion: https://postgr.es/m/9550c76535404a83156252b25a11babb4792ea1e.camel%40j-davis.com
2023-01-13 14:33:19 -08:00
..
authentication Add tests for regex replacement with \1 in pg_ident.conf to 0003_peer.pl 2023-01-13 10:35:28 +09:00
examples Update copyright for 2023 2023-01-02 15:00:37 -05:00
icu Update copyright for 2023 2023-01-02 15:00:37 -05:00
isolation Update copyright for 2023 2023-01-02 15:00:37 -05:00
kerberos Update copyright for 2023 2023-01-02 15:00:37 -05:00
ldap Update copyright for 2023 2023-01-02 15:00:37 -05:00
locale Update copyright for 2023 2023-01-02 15:00:37 -05:00
mb
modules Fix typos in code and comments 2023-01-11 15:16:38 +09:00
perl Update copyright for 2023 2023-01-02 15:00:37 -05:00
recovery Update copyright for 2023 2023-01-02 15:00:37 -05:00
regress Simplify permissions for LOCK TABLE. 2023-01-13 14:33:19 -08:00
ssl Fix typos in comments, code and documentation 2023-01-03 16:26:14 +09:00
subscription Ignore dropped and generated columns from the column list. 2023-01-13 14:49:23 +05:30
Makefile Refactor PG_TEST_EXTRA logic in autoconf build 2022-09-20 11:24:16 -07:00
meson.build Update copyright for 2023 2023-01-02 15:00:37 -05: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 (but see also below)

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

isolation/
  Tests for concurrent behavior at the SQL level

kerberos/
  Tests for Kerberos/GSSAPI authentication and encryption

ldap/
  Tests for LDAP-based authentication

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