postgresql/src/test/modules/test_pg_dump
Michael Paquier 6568cef26e Add support for --extension in pg_dump
When specified, only extensions matching the given pattern are included
in dumps.  Similarly to --table and --schema, when --strict-names is
used,  a perfect match is required.  Also, like the two other options,
this new option offers no guarantee that dependent objects have been
dumped, so a restore may fail on a clean database.

Tests are added in test_pg_dump/, checking after a set of positive and
negative cases, with or without an extension's contents added to the
dump generated.

Author: Guillaume Lelarge
Reviewed-by: David Fetter, Tom Lane, Michael Paquier, Asif Rehman,
Julien Rouhaud
Discussion: https://postgr.es/m/CAECtzeXOt4cnMU5+XMZzxBPJ_wu76pNy6HZKPRBL-j7yj1E4+g@mail.gmail.com
2021-03-31 09:12:34 +09:00
..
expected Refactor AlterExtensionContentsStmt grammar 2020-06-13 09:19:30 +02:00
sql Fix possible future cache reference leak in ALTER EXTENSION ADD/DROP. 2020-04-17 13:41:59 -04:00
t Add support for --extension in pg_dump 2021-03-31 09:12:34 +09:00
.gitignore Add TAP tests for pg_dump 2016-05-06 14:06:50 -04:00
Makefile Add PGXS options to control TAP and isolation tests, take two 2018-12-03 09:27:35 +09:00
README Fix possible future cache reference leak in ALTER EXTENSION ADD/DROP. 2020-04-17 13:41:59 -04:00
test_pg_dump--1.0.sql Fix pg_dump for GRANT OPTION among initial privileges. 2021-01-16 12:21:35 -08:00
test_pg_dump.control Add TAP tests for pg_dump 2016-05-06 14:06:50 -04:00

test_pg_dump is an extension explicitly to test pg_dump when
extensions are present in the system.

We also make use of this module to test ALTER EXTENSION ADD/DROP.