pgsql: Add test for copy of shared dependencies from template database

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add test for copy of shared dependencies from template database
Date: 2021-10-27 07:03:15
Message-ID: E1mfcxv-0005oC-S9@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add test for copy of shared dependencies from template database

As 98ec35b has proved, there has never been any coverage in this area of
the code. This commit adds a new TAP test with a template database that
includes a small set of shared dependencies copied to a new database.
The test is added in createdb, where we have never tested that -T
generates a query with TEMPLATE, either.

Reviewed-by: Tom Lane
Discussion: https://postgr.es/m/YXDTl+PfSnqmbbkE@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/70bfc5ae537c8bfeed4849b7d9f814de89a155fe

Modified Files
--------------
src/bin/scripts/t/020_createdb.pl | 26 +++++++++++++++++++++++++-
1 file changed, 25 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Dilip Kumar 2021-10-27 11:09:09 Re: pgsql: Document XLOG_INCLUDE_XID a little better
Previous Message Bharath Rupireddy 2021-10-27 05:15:38 Re: pgsql: Allow GRANT on pg_log_backend_memory_contexts().