mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 00:01:57 -04:00
Compare commits
4 Commits
541e8f14a1
...
9d49837d71
Author | SHA1 | Date | |
---|---|---|---|
|
9d49837d71 | ||
|
2c321ceaa9 | ||
|
c538592959 | ||
|
7418767f11 |
@ -5,7 +5,7 @@
|
|||||||
# but specify them anyway for documentation's sake.)
|
# but specify them anyway for documentation's sake.)
|
||||||
#
|
#
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
use Config;
|
use Config;
|
||||||
|
|
||||||
use IPC::Run 0.79;
|
use IPC::Run 0.79;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
use PostgreSQL::Test::Cluster;
|
use PostgreSQL::Test::Cluster;
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
# Test CREATE INDEX CONCURRENTLY with concurrent modifications
|
# Test CREATE INDEX CONCURRENTLY with concurrent modifications
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
use PostgreSQL::Test::Cluster;
|
use PostgreSQL::Test::Cluster;
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
# Test CREATE INDEX CONCURRENTLY with concurrent prepared-xact modifications
|
# Test CREATE INDEX CONCURRENTLY with concurrent prepared-xact modifications
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
use PostgreSQL::Test::Cluster;
|
use PostgreSQL::Test::Cluster;
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
# presence of breaking sort order changes.
|
# presence of breaking sort order changes.
|
||||||
#
|
#
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
use PostgreSQL::Test::Cluster;
|
use PostgreSQL::Test::Cluster;
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
use Test::More;
|
use Test::More;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# Test integrity of intermediate states by PITR to those states
|
# Test integrity of intermediate states by PITR to those states
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
use PostgreSQL::Test::Cluster;
|
use PostgreSQL::Test::Cluster;
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
use Test::More;
|
use Test::More;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
use PostgreSQL::Test::Cluster;
|
use PostgreSQL::Test::Cluster;
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
use PostgreSQL::Test::Cluster;
|
use PostgreSQL::Test::Cluster;
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
# Test generic xlog record work for bloom index replication.
|
# Test generic xlog record work for bloom index replication.
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
use PostgreSQL::Test::Cluster;
|
use PostgreSQL::Test::Cluster;
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
use Test::More;
|
use Test::More;
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
die "Usage: $0 OUTPUT_FILE\n" if @ARGV != 1;
|
die "Usage: $0 OUTPUT_FILE\n" if @ARGV != 1;
|
||||||
my $output_file = $ARGV[0];
|
my $output_file = $ARGV[0];
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
# make sure we are in a sane environment.
|
# make sure we are in a sane environment.
|
||||||
use DBI();
|
use DBI();
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
# contrib/intarray/bench/create_test.pl
|
# contrib/intarray/bench/create_test.pl
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
print <<EOT;
|
print <<EOT;
|
||||||
create table message (
|
create table message (
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
use Test::More;
|
use Test::More;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
use PostgreSQL::Test::Cluster;
|
use PostgreSQL::Test::Cluster;
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
my $integer = '[+-]?[0-9]+';
|
my $integer = '[+-]?[0-9]+';
|
||||||
my $real = '[+-]?[0-9]+\.[0-9]+';
|
my $real = '[+-]?[0-9]+\.[0-9]+';
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
# this script will sort any table with the segment data type in its last column
|
# this script will sort any table with the segment data type in its last column
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
my @rows;
|
my @rows;
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# Test replication statistics data in pg_stat_replication_slots is sane after
|
# Test replication statistics data in pg_stat_replication_slots is sane after
|
||||||
# drop replication slot and restart.
|
# drop replication slot and restart.
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
use File::Path qw(rmtree);
|
use File::Path qw(rmtree);
|
||||||
use PostgreSQL::Test::Cluster;
|
use PostgreSQL::Test::Cluster;
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
use Test::More;
|
use Test::More;
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# Copyright (c) 2000-2023, PostgreSQL Global Development Group
|
# Copyright (c) 2000-2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
print
|
print
|
||||||
"<!-- autogenerated from src/backend/utils/errcodes.txt, do not edit -->\n";
|
"<!-- autogenerated from src/backend/utils/errcodes.txt, do not edit -->\n";
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
# Copyright (c) 2019-2023, PostgreSQL Global Development Group
|
# Copyright (c) 2019-2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
my @sql_versions = reverse sort ('1992', '2016', '2023');
|
my @sql_versions = reverse sort ('1992', '2016', '2023');
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# Copyright (c) 2000-2023, PostgreSQL Global Development Group
|
# Copyright (c) 2000-2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
my $targets_meson_file = $ARGV[0];
|
my $targets_meson_file = $ARGV[0];
|
||||||
open my $targets_meson, '<', $targets_meson_file or die;
|
open my $targets_meson, '<', $targets_meson_file or die;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# doc/src/sgml/mk_feature_tables.pl
|
# doc/src/sgml/mk_feature_tables.pl
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
my $yesno = $ARGV[0];
|
my $yesno = $ARGV[0];
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
package Catalog;
|
package Catalog;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
use File::Compare;
|
use File::Compare;
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
use Getopt::Long;
|
use Getopt::Long;
|
||||||
|
|
||||||
use FindBin;
|
use FindBin;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
use File::Basename;
|
use File::Basename;
|
||||||
use Getopt::Long;
|
use Getopt::Long;
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
# Copyright (c) 2009-2023, PostgreSQL Global Development Group
|
# Copyright (c) 2009-2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
my $gram_filename = $ARGV[0];
|
my $gram_filename = $ARGV[0];
|
||||||
my $kwlist_filename = $ARGV[1];
|
my $kwlist_filename = $ARGV[1];
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/perl
|
#!/usr/bin/perl
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
use Getopt::Long;
|
use Getopt::Long;
|
||||||
|
|
||||||
my $outdir_path = '';
|
my $outdir_path = '';
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# Copyright (c) 2000-2023, PostgreSQL Global Development Group
|
# Copyright (c) 2000-2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
use Getopt::Long;
|
use Getopt::Long;
|
||||||
|
|
||||||
my $output_path = '.';
|
my $output_path = '.';
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
m/^\s*probe / || next;
|
m/^\s*probe / || next;
|
||||||
s/^\s*probe ([^(]*)(.*);/$1$2/;
|
s/^\s*probe ([^(]*)(.*);/$1$2/;
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
use Catalog;
|
use Catalog;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
use Getopt::Long;
|
use Getopt::Long;
|
||||||
|
|
||||||
my $output_path = '';
|
my $output_path = '';
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
use Getopt::Long;
|
use Getopt::Long;
|
||||||
|
|
||||||
my $output_path = '.';
|
my $output_path = '.';
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# Copyright (c) 2000-2023, PostgreSQL Global Development Group
|
# Copyright (c) 2000-2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
use Getopt::Long;
|
use Getopt::Long;
|
||||||
|
|
||||||
my $outfile = '';
|
my $outfile = '';
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
# # and Unicode name (not used in this script)
|
# # and Unicode name (not used in this script)
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
use convutils;
|
use convutils;
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
# and the "b" field is the hex byte sequence for GB18030
|
# and the "b" field is the hex byte sequence for GB18030
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
use convutils;
|
use convutils;
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# "euc-jis-2004-std.txt" (http://x0213.org)
|
# "euc-jis-2004-std.txt" (http://x0213.org)
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
use convutils;
|
use convutils;
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
# organization's ftp site.
|
# organization's ftp site.
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
use convutils;
|
use convutils;
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
# # and Unicode name (not used in this script)
|
# # and Unicode name (not used in this script)
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
use convutils;
|
use convutils;
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
# # and Unicode name (not used in this script)
|
# # and Unicode name (not used in this script)
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
use convutils;
|
use convutils;
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
# and the "b" field is the hex byte sequence for GB18030
|
# and the "b" field is the hex byte sequence for GB18030
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
use convutils;
|
use convutils;
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
# # and Unicode name (not used in this script)
|
# # and Unicode name (not used in this script)
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
use convutils;
|
use convutils;
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# "sjis-0213-2004-std.txt" (http://x0213.org)
|
# "sjis-0213-2004-std.txt" (http://x0213.org)
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
use convutils;
|
use convutils;
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
# ftp site.
|
# ftp site.
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
use convutils;
|
use convutils;
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
# and the "b" field is the hex byte sequence for UHC
|
# and the "b" field is the hex byte sequence for UHC
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
use convutils;
|
use convutils;
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
# # and Unicode name (not used in this script)
|
# # and Unicode name (not used in this script)
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
use convutils;
|
use convutils;
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
package convutils;
|
package convutils;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
use Carp;
|
use Carp;
|
||||||
use Exporter 'import';
|
use Exporter 'import';
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
# Successful initdb consumes much time and I/O.
|
# Successful initdb consumes much time and I/O.
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
use Fcntl ':mode';
|
use Fcntl ':mode';
|
||||||
use File::stat qw{lstat};
|
use File::stat qw{lstat};
|
||||||
use PostgreSQL::Test::Cluster;
|
use PostgreSQL::Test::Cluster;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
use Test::More;
|
use Test::More;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
use PostgreSQL::Test::Cluster;
|
use PostgreSQL::Test::Cluster;
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
use PostgreSQL::Test::Cluster;
|
use PostgreSQL::Test::Cluster;
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
use PostgreSQL::Test::Cluster;
|
use PostgreSQL::Test::Cluster;
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
# presence of breaking sort order changes.
|
# presence of breaking sort order changes.
|
||||||
#
|
#
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
use PostgreSQL::Test::Cluster;
|
use PostgreSQL::Test::Cluster;
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
use Test::More;
|
use Test::More;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
use Test::More;
|
use Test::More;
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
use File::Basename qw(basename dirname);
|
use File::Basename qw(basename dirname);
|
||||||
use File::Path qw(rmtree);
|
use File::Path qw(rmtree);
|
||||||
use PostgreSQL::Test::Cluster;
|
use PostgreSQL::Test::Cluster;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
use PostgreSQL::Test::Cluster;
|
use PostgreSQL::Test::Cluster;
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
use Test::More;
|
use Test::More;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
use PostgreSQL::Test::Cluster;
|
use PostgreSQL::Test::Cluster;
|
||||||
use Test::More;
|
use Test::More;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
use PostgreSQL::Test::Cluster;
|
use PostgreSQL::Test::Cluster;
|
||||||
use Test::More;
|
use Test::More;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
use Test::More;
|
use Test::More;
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
# an initialized cluster.
|
# an initialized cluster.
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
use PostgreSQL::Test::Cluster;
|
use PostgreSQL::Test::Cluster;
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
use Test::More;
|
use Test::More;
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
use File::Compare;
|
use File::Compare;
|
||||||
use PostgreSQL::Test::Cluster;
|
use PostgreSQL::Test::Cluster;
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# properly even when the reference backup is on a different timeline.
|
# properly even when the reference backup is on a different timeline.
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
use File::Compare;
|
use File::Compare;
|
||||||
use PostgreSQL::Test::Cluster;
|
use PostgreSQL::Test::Cluster;
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
# pg_combinebackup does not produce a manifest when run with --no-manifest.
|
# pg_combinebackup does not produce a manifest when run with --no-manifest.
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
use File::Compare;
|
use File::Compare;
|
||||||
use PostgreSQL::Test::Cluster;
|
use PostgreSQL::Test::Cluster;
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
# prior backup.
|
# prior backup.
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
use File::Compare;
|
use File::Compare;
|
||||||
use File::Path qw(rmtree);
|
use File::Path qw(rmtree);
|
||||||
use PostgreSQL::Test::Cluster;
|
use PostgreSQL::Test::Cluster;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
use Test::More;
|
use Test::More;
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
use PostgreSQL::Test::Cluster;
|
use PostgreSQL::Test::Cluster;
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
use Test::More;
|
use Test::More;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
use PostgreSQL::Test::Cluster;
|
use PostgreSQL::Test::Cluster;
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
use PostgreSQL::Test::Cluster;
|
use PostgreSQL::Test::Cluster;
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
use PostgreSQL::Test::Cluster;
|
use PostgreSQL::Test::Cluster;
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
use PostgreSQL::Test::Cluster;
|
use PostgreSQL::Test::Cluster;
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
|
@ -2046,6 +2046,26 @@ selectDumpablePublicationObject(DumpableObject *dobj, Archive *fout)
|
|||||||
DUMP_COMPONENT_ALL : DUMP_COMPONENT_NONE;
|
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
|
* selectDumpableObject: policy-setting subroutine
|
||||||
* Mark a generic dumpable object as to be dumped or not
|
* Mark a generic dumpable object as to be dumped or not
|
||||||
@ -7291,6 +7311,7 @@ getExtendedStatistics(Archive *fout)
|
|||||||
int i_stxname;
|
int i_stxname;
|
||||||
int i_stxnamespace;
|
int i_stxnamespace;
|
||||||
int i_stxowner;
|
int i_stxowner;
|
||||||
|
int i_stxrelid;
|
||||||
int i_stattarget;
|
int i_stattarget;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
@ -7302,11 +7323,11 @@ getExtendedStatistics(Archive *fout)
|
|||||||
|
|
||||||
if (fout->remoteVersion < 130000)
|
if (fout->remoteVersion < 130000)
|
||||||
appendPQExpBufferStr(query, "SELECT tableoid, oid, stxname, "
|
appendPQExpBufferStr(query, "SELECT tableoid, oid, stxname, "
|
||||||
"stxnamespace, stxowner, (-1) AS stxstattarget "
|
"stxnamespace, stxowner, stxrelid, (-1) AS stxstattarget "
|
||||||
"FROM pg_catalog.pg_statistic_ext");
|
"FROM pg_catalog.pg_statistic_ext");
|
||||||
else
|
else
|
||||||
appendPQExpBufferStr(query, "SELECT tableoid, oid, stxname, "
|
appendPQExpBufferStr(query, "SELECT tableoid, oid, stxname, "
|
||||||
"stxnamespace, stxowner, stxstattarget "
|
"stxnamespace, stxowner, stxrelid, stxstattarget "
|
||||||
"FROM pg_catalog.pg_statistic_ext");
|
"FROM pg_catalog.pg_statistic_ext");
|
||||||
|
|
||||||
res = ExecuteSqlQuery(fout, query->data, PGRES_TUPLES_OK);
|
res = ExecuteSqlQuery(fout, query->data, PGRES_TUPLES_OK);
|
||||||
@ -7318,6 +7339,7 @@ getExtendedStatistics(Archive *fout)
|
|||||||
i_stxname = PQfnumber(res, "stxname");
|
i_stxname = PQfnumber(res, "stxname");
|
||||||
i_stxnamespace = PQfnumber(res, "stxnamespace");
|
i_stxnamespace = PQfnumber(res, "stxnamespace");
|
||||||
i_stxowner = PQfnumber(res, "stxowner");
|
i_stxowner = PQfnumber(res, "stxowner");
|
||||||
|
i_stxrelid = PQfnumber(res, "stxrelid");
|
||||||
i_stattarget = PQfnumber(res, "stxstattarget");
|
i_stattarget = PQfnumber(res, "stxstattarget");
|
||||||
|
|
||||||
statsextinfo = (StatsExtInfo *) pg_malloc(ntups * sizeof(StatsExtInfo));
|
statsextinfo = (StatsExtInfo *) pg_malloc(ntups * sizeof(StatsExtInfo));
|
||||||
@ -7332,10 +7354,12 @@ getExtendedStatistics(Archive *fout)
|
|||||||
statsextinfo[i].dobj.namespace =
|
statsextinfo[i].dobj.namespace =
|
||||||
findNamespace(atooid(PQgetvalue(res, i, i_stxnamespace)));
|
findNamespace(atooid(PQgetvalue(res, i, i_stxnamespace)));
|
||||||
statsextinfo[i].rolname = getRoleName(PQgetvalue(res, i, i_stxowner));
|
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));
|
statsextinfo[i].stattarget = atoi(PQgetvalue(res, i, i_stattarget));
|
||||||
|
|
||||||
/* Decide whether we want to dump it */
|
/* Decide whether we want to dump it */
|
||||||
selectDumpableObject(&(statsextinfo[i].dobj), fout);
|
selectDumpableStatisticsObject(&(statsextinfo[i]), fout);
|
||||||
}
|
}
|
||||||
|
|
||||||
PQclear(res);
|
PQclear(res);
|
||||||
|
@ -423,7 +423,8 @@ typedef struct _indexAttachInfo
|
|||||||
typedef struct _statsExtInfo
|
typedef struct _statsExtInfo
|
||||||
{
|
{
|
||||||
DumpableObject dobj;
|
DumpableObject dobj;
|
||||||
const char *rolname;
|
const char *rolname; /* owner */
|
||||||
|
TableInfo *stattable; /* link to table the stats are for */
|
||||||
int stattarget; /* statistics target */
|
int stattarget; /* statistics target */
|
||||||
} StatsExtInfo;
|
} StatsExtInfo;
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
use PostgreSQL::Test::Cluster;
|
use PostgreSQL::Test::Cluster;
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
use PostgreSQL::Test::Cluster;
|
use PostgreSQL::Test::Cluster;
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
@ -3742,14 +3742,15 @@ my %tests = (
|
|||||||
'CREATE STATISTICS extended_stats_no_options' => {
|
'CREATE STATISTICS extended_stats_no_options' => {
|
||||||
create_order => 97,
|
create_order => 97,
|
||||||
create_sql => 'CREATE STATISTICS dump_test.test_ext_stats_no_options
|
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/^
|
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,
|
/xms,
|
||||||
like =>
|
like =>
|
||||||
{ %full_runs, %dump_test_schema_runs, section_post_data => 1, },
|
{ %full_runs, %dump_test_schema_runs, section_post_data => 1, },
|
||||||
unlike => {
|
unlike => {
|
||||||
exclude_dump_test_schema => 1,
|
exclude_dump_test_schema => 1,
|
||||||
|
exclude_test_table => 1,
|
||||||
only_dump_measurement => 1,
|
only_dump_measurement => 1,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
use PostgreSQL::Test::Cluster;
|
use PostgreSQL::Test::Cluster;
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
use PostgreSQL::Test::Cluster;
|
use PostgreSQL::Test::Cluster;
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Copyright (c) 2023, PostgreSQL Global Development Group
|
# Copyright (c) 2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
use PostgreSQL::Test::Cluster;
|
use PostgreSQL::Test::Cluster;
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
use PostgreSQL::Test::Cluster;
|
use PostgreSQL::Test::Cluster;
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
use PostgreSQL::Test::Cluster;
|
use PostgreSQL::Test::Cluster;
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# Tests for handling a corrupted pg_control
|
# Tests for handling a corrupted pg_control
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
use PostgreSQL::Test::Cluster;
|
use PostgreSQL::Test::Cluster;
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
use Test::More;
|
use Test::More;
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
use Test::More;
|
use Test::More;
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# Test how pg_rewind reacts to extra files and directories in the data dirs.
|
# Test how pg_rewind reacts to extra files and directories in the data dirs.
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
use Test::More;
|
use Test::More;
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
# Test pg_rewind when the target's pg_wal directory is a symlink.
|
# Test pg_rewind when the target's pg_wal directory is a symlink.
|
||||||
#
|
#
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
use File::Copy;
|
use File::Copy;
|
||||||
use File::Path qw(rmtree);
|
use File::Path qw(rmtree);
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
# on the same timeline runs successfully.
|
# on the same timeline runs successfully.
|
||||||
#
|
#
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
use Test::More;
|
use Test::More;
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
# Test checking options of pg_rewind.
|
# Test checking options of pg_rewind.
|
||||||
#
|
#
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
use Test::More;
|
use Test::More;
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
# as is.
|
# as is.
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
use Test::More;
|
use Test::More;
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
# nodes.
|
# nodes.
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
use PostgreSQL::Test::Cluster;
|
use PostgreSQL::Test::Cluster;
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
use Test::More;
|
use Test::More;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
use Test::More;
|
use Test::More;
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ package RewindTest;
|
|||||||
# to run psql against the primary and standby servers, respectively.
|
# to run psql against the primary and standby servers, respectively.
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
use Carp;
|
use Carp;
|
||||||
use Exporter 'import';
|
use Exporter 'import';
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
use Test::More;
|
use Test::More;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
use Test::More;
|
use Test::More;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# Copyright (c) 2022-2023, PostgreSQL Global Development Group
|
# Copyright (c) 2022-2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
use Test::More;
|
use Test::More;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# Set of tests for pg_upgrade, including cross-version checks.
|
# Set of tests for pg_upgrade, including cross-version checks.
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
use Cwd qw(abs_path);
|
use Cwd qw(abs_path);
|
||||||
use File::Basename qw(dirname);
|
use File::Basename qw(dirname);
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# Tests for upgrading logical replication slots
|
# Tests for upgrading logical replication slots
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
|
|
||||||
use File::Find qw(find);
|
use File::Find qw(find);
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
# Copyright (c) 2021-2023, PostgreSQL Global Development Group
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
use Test::More;
|
use Test::More;
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# Verify that we can take and verify backups with various checksum types.
|
# Verify that we can take and verify backups with various checksum types.
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
use File::Path qw(rmtree);
|
use File::Path qw(rmtree);
|
||||||
use PostgreSQL::Test::Cluster;
|
use PostgreSQL::Test::Cluster;
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# Verify that various forms of corruption are detected by pg_verifybackup.
|
# Verify that various forms of corruption are detected by pg_verifybackup.
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
use File::Path qw(rmtree);
|
use File::Path qw(rmtree);
|
||||||
use PostgreSQL::Test::Cluster;
|
use PostgreSQL::Test::Cluster;
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# Verify the behavior of assorted pg_verifybackup options.
|
# Verify the behavior of assorted pg_verifybackup options.
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
use File::Path qw(rmtree);
|
use File::Path qw(rmtree);
|
||||||
use PostgreSQL::Test::Cluster;
|
use PostgreSQL::Test::Cluster;
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
# problems.
|
# problems.
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
use PostgreSQL::Test::Cluster;
|
use PostgreSQL::Test::Cluster;
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
use Test::More;
|
use Test::More;
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# Verify that pg_verifybackup handles hex-encoded filenames correctly.
|
# Verify that pg_verifybackup handles hex-encoded filenames correctly.
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings FATAL => 'all';
|
||||||
use PostgreSQL::Test::Cluster;
|
use PostgreSQL::Test::Cluster;
|
||||||
use PostgreSQL::Test::Utils;
|
use PostgreSQL::Test::Utils;
|
||||||
use Test::More;
|
use Test::More;
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user