Skip to content

Commit d185161

Browse files
committed
Hide expensive pg_upgrade test behind PG_TEST_EXTRA
This new test is very expensive. Make it opt-in. Discussion: https://postgr.es/m/202508051433.ebznuqrxt4b2@alvherre.pgsql
1 parent 0669790 commit d185161

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

doc/src/sgml/regress.sgml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,19 @@ make check-world PG_TEST_EXTRA='kerberos ldap ssl load_balance libpq_encryption'
284284
</listitem>
285285
</varlistentry>
286286

287+
<varlistentry>
288+
<term><literal>regress_dump_restore</literal></term>
289+
<listitem>
290+
<para>
291+
Runs an additional test suite in
292+
<filename>src/bin/pg_upgrade/t/002_pg_upgrade.pl</filename> which
293+
cycles the regression database through <command>pg_dump</command>/
294+
<command>pg_restore</command>. Not enabled by default because it
295+
is resource intensive.
296+
</para>
297+
</listitem>
298+
</varlistentry>
299+
287300
<varlistentry>
288301
<term><literal>sepgsql</literal></term>
289302
<listitem>

src/bin/pg_upgrade/t/002_pg_upgrade.pl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,9 @@ sub get_dump_for_comparison
375375
{
376376
my $dstnode = PostgreSQL::Test::Cluster->new('dst_node');
377377

378+
skip "regress_dump_restore not enabled in PG_TEST_EXTRA"
379+
if (!$ENV{PG_TEST_EXTRA}
380+
|| $ENV{PG_TEST_EXTRA} !~ /\bregress_dump_restore\b/);
378381
skip "different Postgres versions"
379382
if ($oldnode->pg_version != $dstnode->pg_version);
380383
skip "source node not using default install"

0 commit comments

Comments
 (0)