Compare commits

...

4 Commits

Author SHA1 Message Date
Peter Eisentraut
9d49837d71 Follow-up fixes for "Make all Perl warnings fatal"
Mostly, we need to check whether $ENV{PG_TEST_EXTRA} is set before
doing regular expression matches against it.
2023-12-29 23:54:40 +01:00
Jeff Davis
2c321ceaa9 Fix collate.windows.win1252 test.
Do not rely on the OS recognizing a particular locale; find the right
locale by querying the "en_US" collation.

Author: Alexander Lakhin
Reported-by: Alexander Lakhin
Discussion: https://postgr.es/m/ae73f6f5-8221-c112-4640-5cda812a69de@gmail.com
2023-12-29 11:26:10 -08:00
Peter Eisentraut
c538592959 Make all Perl warnings fatal
There are a lot of Perl scripts in the tree, mostly code generation
and TAP tests.  Occasionally, these scripts produce warnings.  These
are probably always mistakes on the developer side (true positives).
Typical examples are warnings from genbki.pl or related when you make
a mess in the catalog files during development, or warnings from tests
when they massage a config file that looks different on different
hosts, or mistakes during merges (e.g., duplicate subroutine
definitions), or just mistakes that weren't noticed because there is a
lot of output in a verbose build.

This changes all warnings into fatal errors, by replacing

    use warnings;

by

    use warnings FATAL => 'all';

in all Perl files.

Discussion: https://www.postgresql.org/message-id/flat/06f899fd-1826-05ab-42d6-adeb1fd5e200%40eisentraut.org
2023-12-29 18:20:00 +01:00
Tom Lane
7418767f11 In pg_dump, don't dump a stats object unless dumping underlying table.
If the underlying table isn't being dumped, it's useless to dump
an extended statistics object; it'll just cause errors at restore.
We have always applied similar policies to, say, indexes.

(When and if we get cross-table stats objects, it might be profitable
to think a little harder about what to do with them.  But for now
there seems no point in considering a stats object as anything but
an appendage of its table.)

Rian McGuire and Tom Lane, per report from Rian McGuire.
Back-patch to supported branches.

Discussion: https://postgr.es/m/7075d3aa-3f05-44a5-b68f-47dc6a8a0550@buildkite.com
2023-12-29 10:57:11 -05:00
282 changed files with 340 additions and 301 deletions

View File

@ -5,7 +5,7 @@
# but specify them anyway for documentation's sake.)
#
use strict;
use warnings;
use warnings FATAL => 'all';
use Config;
use IPC::Run 0.79;

View File

@ -2,7 +2,7 @@
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;

View File

@ -3,7 +3,7 @@
# Test CREATE INDEX CONCURRENTLY with concurrent modifications
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;

View File

@ -3,7 +3,7 @@
# Test CREATE INDEX CONCURRENTLY with concurrent prepared-xact modifications
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;

View File

@ -5,7 +5,7 @@
# presence of breaking sort order changes.
#
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;
use Test::More;

View File

@ -2,7 +2,7 @@
# Test integrity of intermediate states by PITR to those states
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;
use Test::More;

View File

@ -2,7 +2,7 @@
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;

View File

@ -1,7 +1,7 @@
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;

View File

@ -3,7 +3,7 @@
# Test generic xlog record work for bloom index replication.
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;
use Test::More;

View File

@ -9,7 +9,7 @@
#
use strict;
use warnings;
use warnings FATAL => 'all';
die "Usage: $0 OUTPUT_FILE\n" if @ARGV != 1;
my $output_file = $ARGV[0];

View File

@ -3,7 +3,7 @@
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
# make sure we are in a sane environment.
use DBI();

View File

@ -5,7 +5,7 @@
# contrib/intarray/bench/create_test.pl
use strict;
use warnings;
use warnings FATAL => 'all';
print <<EOT;
create table message (

View File

@ -2,7 +2,7 @@
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Utils;
use Test::More;

View File

@ -2,7 +2,7 @@
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;

View File

@ -3,7 +3,7 @@
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
my $integer = '[+-]?[0-9]+';
my $real = '[+-]?[0-9]+\.[0-9]+';

View File

@ -5,7 +5,7 @@
# this script will sort any table with the segment data type in its last column
use strict;
use warnings;
use warnings FATAL => 'all';
my @rows;

View File

@ -4,7 +4,7 @@
# Test replication statistics data in pg_stat_replication_slots is sane after
# drop replication slot and restart.
use strict;
use warnings;
use warnings FATAL => 'all';
use File::Path qw(rmtree);
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;

View File

@ -2,7 +2,7 @@
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Utils;
use Test::More;

View File

@ -4,7 +4,7 @@
# Copyright (c) 2000-2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
print
"<!-- autogenerated from src/backend/utils/errcodes.txt, do not edit -->\n";

View File

@ -5,7 +5,7 @@
# Copyright (c) 2019-2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
my @sql_versions = reverse sort ('1992', '2016', '2023');

View File

@ -4,7 +4,7 @@
# Copyright (c) 2000-2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
my $targets_meson_file = $ARGV[0];
open my $targets_meson, '<', $targets_meson_file or die;

View File

@ -3,7 +3,7 @@
# doc/src/sgml/mk_feature_tables.pl
use strict;
use warnings;
use warnings FATAL => 'all';
my $yesno = $ARGV[0];

View File

@ -14,7 +14,7 @@
package Catalog;
use strict;
use warnings;
use warnings FATAL => 'all';
use File::Compare;

View File

@ -14,7 +14,7 @@
#----------------------------------------------------------------------
use strict;
use warnings;
use warnings FATAL => 'all';
use Getopt::Long;
use FindBin;

View File

@ -16,7 +16,7 @@
#----------------------------------------------------------------------
use strict;
use warnings;
use warnings FATAL => 'all';
use File::Basename;
use Getopt::Long;

View File

@ -7,7 +7,7 @@
# Copyright (c) 2009-2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
my $gram_filename = $ARGV[0];
my $kwlist_filename = $ARGV[1];

View File

@ -1,7 +1,7 @@
#!/usr/bin/perl
use strict;
use warnings;
use warnings FATAL => 'all';
use Getopt::Long;
my $outdir_path = '';

View File

@ -4,7 +4,7 @@
# Copyright (c) 2000-2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
use Getopt::Long;
my $output_path = '.';

View File

@ -7,7 +7,7 @@
#-------------------------------------------------------------------------
use strict;
use warnings;
use warnings FATAL => 'all';
m/^\s*probe / || next;
s/^\s*probe ([^(]*)(.*);/$1$2/;

View File

@ -17,7 +17,7 @@
use Catalog;
use strict;
use warnings;
use warnings FATAL => 'all';
use Getopt::Long;
my $output_path = '';

View File

@ -15,7 +15,7 @@
#----------------------------------------------------------------------
use strict;
use warnings;
use warnings FATAL => 'all';
use Getopt::Long;
my $output_path = '.';

View File

@ -4,7 +4,7 @@
# Copyright (c) 2000-2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
use Getopt::Long;
my $outfile = '';

View File

@ -25,7 +25,7 @@
# # and Unicode name (not used in this script)
use strict;
use warnings;
use warnings FATAL => 'all';
use convutils;

View File

@ -14,7 +14,7 @@
# and the "b" field is the hex byte sequence for GB18030
use strict;
use warnings;
use warnings FATAL => 'all';
use convutils;

View File

@ -8,7 +8,7 @@
# "euc-jis-2004-std.txt" (http://x0213.org)
use strict;
use warnings;
use warnings FATAL => 'all';
use convutils;

View File

@ -12,7 +12,7 @@
# organization's ftp site.
use strict;
use warnings;
use warnings FATAL => 'all';
use convutils;

View File

@ -17,7 +17,7 @@
# # and Unicode name (not used in this script)
use strict;
use warnings;
use warnings FATAL => 'all';
use convutils;

View File

@ -18,7 +18,7 @@
# # and Unicode name (not used in this script)
use strict;
use warnings;
use warnings FATAL => 'all';
use convutils;

View File

@ -14,7 +14,7 @@
# and the "b" field is the hex byte sequence for GB18030
use strict;
use warnings;
use warnings FATAL => 'all';
use convutils;

View File

@ -16,7 +16,7 @@
# # and Unicode name (not used in this script)
use strict;
use warnings;
use warnings FATAL => 'all';
use convutils;

View File

@ -8,7 +8,7 @@
# "sjis-0213-2004-std.txt" (http://x0213.org)
use strict;
use warnings;
use warnings FATAL => 'all';
use convutils;

View File

@ -11,7 +11,7 @@
# ftp site.
use strict;
use warnings;
use warnings FATAL => 'all';
use convutils;

View File

@ -14,7 +14,7 @@
# and the "b" field is the hex byte sequence for UHC
use strict;
use warnings;
use warnings FATAL => 'all';
use convutils;

View File

@ -16,7 +16,7 @@
# # and Unicode name (not used in this script)
use strict;
use warnings;
use warnings FATAL => 'all';
use convutils;

View File

@ -6,7 +6,7 @@
package convutils;
use strict;
use warnings;
use warnings FATAL => 'all';
use Carp;
use Exporter 'import';

View File

@ -6,7 +6,7 @@
# Successful initdb consumes much time and I/O.
use strict;
use warnings;
use warnings FATAL => 'all';
use Fcntl ':mode';
use File::stat qw{lstat};
use PostgreSQL::Test::Cluster;

View File

@ -2,7 +2,7 @@
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Utils;
use Test::More;

View File

@ -2,7 +2,7 @@
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;

View File

@ -2,7 +2,7 @@
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;

View File

@ -2,7 +2,7 @@
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;

View File

@ -5,7 +5,7 @@
# presence of breaking sort order changes.
#
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;
use Test::More;

View File

@ -2,7 +2,7 @@
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Utils;
use Test::More;

View File

@ -2,7 +2,7 @@
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
use File::Basename qw(basename dirname);
use File::Path qw(rmtree);
use PostgreSQL::Test::Cluster;

View File

@ -1,7 +1,7 @@
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;
use Test::More;

View File

@ -2,7 +2,7 @@
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Utils;
use PostgreSQL::Test::Cluster;
use Test::More;

View File

@ -2,7 +2,7 @@
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Utils;
use PostgreSQL::Test::Cluster;
use Test::More;

View File

@ -2,7 +2,7 @@
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Utils;
use Test::More;

View File

@ -5,7 +5,7 @@
# an initialized cluster.
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;

View File

@ -1,7 +1,7 @@
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Utils;
use Test::More;

View File

@ -1,7 +1,7 @@
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
use File::Compare;
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;

View File

@ -4,7 +4,7 @@
# properly even when the reference backup is on a different timeline.
use strict;
use warnings;
use warnings FATAL => 'all';
use File::Compare;
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;

View File

@ -6,7 +6,7 @@
# pg_combinebackup does not produce a manifest when run with --no-manifest.
use strict;
use warnings;
use warnings FATAL => 'all';
use File::Compare;
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;

View File

@ -5,7 +5,7 @@
# prior backup.
use strict;
use warnings;
use warnings FATAL => 'all';
use File::Compare;
use File::Path qw(rmtree);
use PostgreSQL::Test::Cluster;

View File

@ -2,7 +2,7 @@
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Utils;
use Test::More;

View File

@ -2,7 +2,7 @@
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;
use Test::More;

View File

@ -2,7 +2,7 @@
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;

View File

@ -2,7 +2,7 @@
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;

View File

@ -2,7 +2,7 @@
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;

View File

@ -2,7 +2,7 @@
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;

View File

@ -2046,6 +2046,26 @@ selectDumpablePublicationObject(DumpableObject *dobj, Archive *fout)
DUMP_COMPONENT_ALL : DUMP_COMPONENT_NONE;
}
/*
* selectDumpableStatisticsObject: policy-setting subroutine
* Mark an extended statistics object as to be dumped or not
*
* We dump an extended statistics object if the schema it's in and the table
* it's for are being dumped. (This'll need more thought if statistics
* objects ever support cross-table stats.)
*/
static void
selectDumpableStatisticsObject(StatsExtInfo *sobj, Archive *fout)
{
if (checkExtensionMembership(&sobj->dobj, fout))
return; /* extension membership overrides all else */
sobj->dobj.dump = sobj->dobj.namespace->dobj.dump_contains;
if (sobj->stattable == NULL ||
!(sobj->stattable->dobj.dump & DUMP_COMPONENT_DEFINITION))
sobj->dobj.dump = DUMP_COMPONENT_NONE;
}
/*
* selectDumpableObject: policy-setting subroutine
* Mark a generic dumpable object as to be dumped or not
@ -7291,6 +7311,7 @@ getExtendedStatistics(Archive *fout)
int i_stxname;
int i_stxnamespace;
int i_stxowner;
int i_stxrelid;
int i_stattarget;
int i;
@ -7302,11 +7323,11 @@ getExtendedStatistics(Archive *fout)
if (fout->remoteVersion < 130000)
appendPQExpBufferStr(query, "SELECT tableoid, oid, stxname, "
"stxnamespace, stxowner, (-1) AS stxstattarget "
"stxnamespace, stxowner, stxrelid, (-1) AS stxstattarget "
"FROM pg_catalog.pg_statistic_ext");
else
appendPQExpBufferStr(query, "SELECT tableoid, oid, stxname, "
"stxnamespace, stxowner, stxstattarget "
"stxnamespace, stxowner, stxrelid, stxstattarget "
"FROM pg_catalog.pg_statistic_ext");
res = ExecuteSqlQuery(fout, query->data, PGRES_TUPLES_OK);
@ -7318,6 +7339,7 @@ getExtendedStatistics(Archive *fout)
i_stxname = PQfnumber(res, "stxname");
i_stxnamespace = PQfnumber(res, "stxnamespace");
i_stxowner = PQfnumber(res, "stxowner");
i_stxrelid = PQfnumber(res, "stxrelid");
i_stattarget = PQfnumber(res, "stxstattarget");
statsextinfo = (StatsExtInfo *) pg_malloc(ntups * sizeof(StatsExtInfo));
@ -7332,10 +7354,12 @@ getExtendedStatistics(Archive *fout)
statsextinfo[i].dobj.namespace =
findNamespace(atooid(PQgetvalue(res, i, i_stxnamespace)));
statsextinfo[i].rolname = getRoleName(PQgetvalue(res, i, i_stxowner));
statsextinfo[i].stattable =
findTableByOid(atooid(PQgetvalue(res, i, i_stxrelid)));
statsextinfo[i].stattarget = atoi(PQgetvalue(res, i, i_stattarget));
/* Decide whether we want to dump it */
selectDumpableObject(&(statsextinfo[i].dobj), fout);
selectDumpableStatisticsObject(&(statsextinfo[i]), fout);
}
PQclear(res);

View File

@ -423,7 +423,8 @@ typedef struct _indexAttachInfo
typedef struct _statsExtInfo
{
DumpableObject dobj;
const char *rolname;
const char *rolname; /* owner */
TableInfo *stattable; /* link to table the stats are for */
int stattarget; /* statistics target */
} StatsExtInfo;

View File

@ -2,7 +2,7 @@
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;

View File

@ -2,7 +2,7 @@
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;
@ -3742,14 +3742,15 @@ my %tests = (
'CREATE STATISTICS extended_stats_no_options' => {
create_order => 97,
create_sql => 'CREATE STATISTICS dump_test.test_ext_stats_no_options
ON col1, col2 FROM dump_test.test_fifth_table',
ON col1, col2 FROM dump_test.test_table',
regexp => qr/^
\QCREATE STATISTICS dump_test.test_ext_stats_no_options ON col1, col2 FROM dump_test.test_fifth_table;\E
\QCREATE STATISTICS dump_test.test_ext_stats_no_options ON col1, col2 FROM dump_test.test_table;\E
/xms,
like =>
{ %full_runs, %dump_test_schema_runs, section_post_data => 1, },
unlike => {
exclude_dump_test_schema => 1,
exclude_test_table => 1,
only_dump_measurement => 1,
},
},

View File

@ -2,7 +2,7 @@
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;

View File

@ -2,7 +2,7 @@
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;

View File

@ -2,7 +2,7 @@
# Copyright (c) 2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;

View File

@ -2,7 +2,7 @@
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;

View File

@ -2,7 +2,7 @@
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;

View File

@ -4,7 +4,7 @@
# Tests for handling a corrupted pg_control
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;

View File

@ -2,7 +2,7 @@
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Utils;
use Test::More;

View File

@ -2,7 +2,7 @@
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Utils;
use Test::More;

View File

@ -4,7 +4,7 @@
# Test how pg_rewind reacts to extra files and directories in the data dirs.
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Utils;
use Test::More;

View File

@ -5,7 +5,7 @@
# Test pg_rewind when the target's pg_wal directory is a symlink.
#
use strict;
use warnings;
use warnings FATAL => 'all';
use File::Copy;
use File::Path qw(rmtree);
use PostgreSQL::Test::Utils;

View File

@ -6,7 +6,7 @@
# on the same timeline runs successfully.
#
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Utils;
use Test::More;

View File

@ -5,7 +5,7 @@
# Test checking options of pg_rewind.
#
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Utils;
use Test::More;

View File

@ -25,7 +25,7 @@
# as is.
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Utils;
use Test::More;

View File

@ -31,7 +31,7 @@
# nodes.
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;
use Test::More;

View File

@ -2,7 +2,7 @@
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Utils;
use Test::More;

View File

@ -32,7 +32,7 @@ package RewindTest;
# to run psql against the primary and standby servers, respectively.
use strict;
use warnings;
use warnings FATAL => 'all';
use Carp;
use Exporter 'import';

View File

@ -2,7 +2,7 @@
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Utils;
use Test::More;

View File

@ -2,7 +2,7 @@
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Utils;
use Test::More;

View File

@ -1,7 +1,7 @@
# Copyright (c) 2022-2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Utils;
use Test::More;

View File

@ -2,7 +2,7 @@
# Set of tests for pg_upgrade, including cross-version checks.
use strict;
use warnings;
use warnings FATAL => 'all';
use Cwd qw(abs_path);
use File::Basename qw(dirname);

View File

@ -3,7 +3,7 @@
# Tests for upgrading logical replication slots
use strict;
use warnings;
use warnings FATAL => 'all';
use File::Find qw(find);

View File

@ -2,7 +2,7 @@
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Utils;
use Test::More;

View File

@ -4,7 +4,7 @@
# Verify that we can take and verify backups with various checksum types.
use strict;
use warnings;
use warnings FATAL => 'all';
use File::Path qw(rmtree);
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;

View File

@ -4,7 +4,7 @@
# Verify that various forms of corruption are detected by pg_verifybackup.
use strict;
use warnings;
use warnings FATAL => 'all';
use File::Path qw(rmtree);
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;

View File

@ -4,7 +4,7 @@
# Verify the behavior of assorted pg_verifybackup options.
use strict;
use warnings;
use warnings FATAL => 'all';
use File::Path qw(rmtree);
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;

View File

@ -5,7 +5,7 @@
# problems.
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;
use Test::More;

View File

@ -4,7 +4,7 @@
# Verify that pg_verifybackup handles hex-encoded filenames correctly.
use strict;
use warnings;
use warnings FATAL => 'all';
use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;
use Test::More;

Some files were not shown because too many files have changed in this diff Show More