postgresql/src/test
Tom Lane ee87b482c3 Handle RLS dependencies in inlined set-returning functions properly.
If an SRF in the FROM clause references a table having row-level
security policies, and we inline that SRF into the calling query,
we neglected to mark the plan as potentially dependent on which
role is executing it.  This could lead to later executions in the
same session returning or hiding rows that should have been hidden
or returned instead.

Our thanks to Wolfgang Walther for reporting this problem.

Stephen Frost and Tom Lane

Security: CVE-2023-2455
2023-05-08 10:12:45 -04:00
..
authentication Make new authentication test case more robust. 2020-09-04 21:01:59 -04:00
examples Update copyright for 2019 2019-01-02 12:44:25 -05:00
isolation Fix some more cases of missed GENERATED-column updates. 2023-03-06 18:31:16 -05:00
kerberos For Kerberos testing, disable DNS lookups 2023-04-07 19:36:06 -04:00
ldap tests: Prevent syslog activity by slapd, take 2 2023-03-16 23:18:33 -07: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 Mark unsafe_tests module as not runnable with installcheck 2023-03-12 09:04:35 -04:00
perl AdjustUpgrade.pm should zap test_ext_cine, too. 2023-01-17 16:01:06 -05:00
recovery Remove recovery test 011_crash_recovery.pl 2023-01-31 12:47:18 +09:00
regress Handle RLS dependencies in inlined set-returning functions properly. 2023-05-08 10:12:45 -04:00
ssl Backpatch OpenSSL 3.0.0 compatibility in tests 2023-02-08 16:56:53 -05:00
subscription Ignore generated columns during apply of update/delete. 2023-03-23 11:08:38 +05:30
thread Ensure link commands list *.o files before LDFLAGS. 2019-01-02 13:57:54 -05: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