Make all Perl warnings fatal
authorPeter Eisentraut <peter@eisentraut.org>
Fri, 29 Dec 2023 17:01:53 +0000 (18:01 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Fri, 29 Dec 2023 17:20:00 +0000 (18:20 +0100)
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

278 files changed:
config/check_modules.pl
contrib/amcheck/t/001_verify_heapam.pl
contrib/amcheck/t/002_cic.pl
contrib/amcheck/t/003_cic_2pc.pl
contrib/amcheck/t/004_verify_nbtree_unique.pl
contrib/amcheck/t/005_pitr.pl
contrib/auto_explain/t/001_auto_explain.pl
contrib/basebackup_to_shell/t/001_basic.pl
contrib/bloom/t/001_wal.pl
contrib/fuzzystrmatch/daitch_mokotoff_header.pl
contrib/intarray/bench/bench.pl
contrib/intarray/bench/create_test.pl
contrib/oid2name/t/001_basic.pl
contrib/pg_prewarm/t/001_basic.pl
contrib/seg/seg-validate.pl
contrib/seg/sort-segments.pl
contrib/test_decoding/t/001_repl_stats.pl
contrib/vacuumlo/t/001_basic.pl
doc/src/sgml/generate-errcodes-table.pl
doc/src/sgml/generate-keywords-table.pl
doc/src/sgml/generate-targets-meson.pl
doc/src/sgml/mk_feature_tables.pl
src/backend/catalog/Catalog.pm
src/backend/catalog/genbki.pl
src/backend/nodes/gen_node_support.pl
src/backend/parser/check_keywords.pl
src/backend/snowball/snowball_create.pl
src/backend/storage/lmgr/generate-lwlocknames.pl
src/backend/utils/Gen_dummy_probes.pl
src/backend/utils/Gen_fmgrtab.pl
src/backend/utils/activity/generate-wait_event_types.pl
src/backend/utils/generate-errcodes.pl
src/backend/utils/mb/Unicode/UCS_to_BIG5.pl
src/backend/utils/mb/Unicode/UCS_to_EUC_CN.pl
src/backend/utils/mb/Unicode/UCS_to_EUC_JIS_2004.pl
src/backend/utils/mb/Unicode/UCS_to_EUC_JP.pl
src/backend/utils/mb/Unicode/UCS_to_EUC_KR.pl
src/backend/utils/mb/Unicode/UCS_to_EUC_TW.pl
src/backend/utils/mb/Unicode/UCS_to_GB18030.pl
src/backend/utils/mb/Unicode/UCS_to_JOHAB.pl
src/backend/utils/mb/Unicode/UCS_to_SHIFT_JIS_2004.pl
src/backend/utils/mb/Unicode/UCS_to_SJIS.pl
src/backend/utils/mb/Unicode/UCS_to_UHC.pl
src/backend/utils/mb/Unicode/UCS_to_most.pl
src/backend/utils/mb/Unicode/convutils.pm
src/bin/initdb/t/001_initdb.pl
src/bin/pg_amcheck/t/001_basic.pl
src/bin/pg_amcheck/t/002_nonesuch.pl
src/bin/pg_amcheck/t/003_check.pl
src/bin/pg_amcheck/t/004_verify_heapam.pl
src/bin/pg_amcheck/t/005_opclass_damage.pl
src/bin/pg_archivecleanup/t/010_pg_archivecleanup.pl
src/bin/pg_basebackup/t/010_pg_basebackup.pl
src/bin/pg_basebackup/t/011_in_place_tablespace.pl
src/bin/pg_basebackup/t/020_pg_receivewal.pl
src/bin/pg_basebackup/t/030_pg_recvlogical.pl
src/bin/pg_checksums/t/001_basic.pl
src/bin/pg_checksums/t/002_actions.pl
src/bin/pg_combinebackup/t/001_basic.pl
src/bin/pg_combinebackup/t/002_compare_backups.pl
src/bin/pg_combinebackup/t/003_timeline.pl
src/bin/pg_combinebackup/t/004_manifest.pl
src/bin/pg_combinebackup/t/005_integrity.pl
src/bin/pg_config/t/001_pg_config.pl
src/bin/pg_controldata/t/001_pg_controldata.pl
src/bin/pg_ctl/t/001_start_stop.pl
src/bin/pg_ctl/t/002_status.pl
src/bin/pg_ctl/t/003_promote.pl
src/bin/pg_ctl/t/004_logrotate.pl
src/bin/pg_dump/t/001_basic.pl
src/bin/pg_dump/t/002_pg_dump.pl
src/bin/pg_dump/t/003_pg_dump_with_server.pl
src/bin/pg_dump/t/004_pg_dump_parallel.pl
src/bin/pg_dump/t/005_pg_dump_filterfile.pl
src/bin/pg_dump/t/010_dump_connstr.pl
src/bin/pg_resetwal/t/001_basic.pl
src/bin/pg_resetwal/t/002_corrupted.pl
src/bin/pg_rewind/t/001_basic.pl
src/bin/pg_rewind/t/002_databases.pl
src/bin/pg_rewind/t/003_extrafiles.pl
src/bin/pg_rewind/t/004_pg_xlog_symlink.pl
src/bin/pg_rewind/t/005_same_timeline.pl
src/bin/pg_rewind/t/006_options.pl
src/bin/pg_rewind/t/007_standby_source.pl
src/bin/pg_rewind/t/008_min_recovery_point.pl
src/bin/pg_rewind/t/009_growing_files.pl
src/bin/pg_rewind/t/RewindTest.pm
src/bin/pg_test_fsync/t/001_basic.pl
src/bin/pg_test_timing/t/001_basic.pl
src/bin/pg_upgrade/t/001_basic.pl
src/bin/pg_upgrade/t/002_pg_upgrade.pl
src/bin/pg_upgrade/t/003_logical_slots.pl
src/bin/pg_verifybackup/t/001_basic.pl
src/bin/pg_verifybackup/t/002_algorithm.pl
src/bin/pg_verifybackup/t/003_corruption.pl
src/bin/pg_verifybackup/t/004_options.pl
src/bin/pg_verifybackup/t/005_bad_manifest.pl
src/bin/pg_verifybackup/t/006_encoding.pl
src/bin/pg_verifybackup/t/007_wal.pl
src/bin/pg_verifybackup/t/008_untar.pl
src/bin/pg_verifybackup/t/009_extract.pl
src/bin/pg_verifybackup/t/010_client_untar.pl
src/bin/pg_waldump/t/001_basic.pl
src/bin/pg_waldump/t/002_save_fullpage.pl
src/bin/pgbench/t/001_pgbench_with_server.pl
src/bin/pgbench/t/002_pgbench_no_server.pl
src/bin/psql/create_help.pl
src/bin/psql/t/001_basic.pl
src/bin/psql/t/010_tab_completion.pl
src/bin/psql/t/020_cancel.pl
src/bin/scripts/t/010_clusterdb.pl
src/bin/scripts/t/011_clusterdb_all.pl
src/bin/scripts/t/020_createdb.pl
src/bin/scripts/t/040_createuser.pl
src/bin/scripts/t/050_dropdb.pl
src/bin/scripts/t/070_dropuser.pl
src/bin/scripts/t/080_pg_isready.pl
src/bin/scripts/t/090_reindexdb.pl
src/bin/scripts/t/091_reindexdb_all.pl
src/bin/scripts/t/100_vacuumdb.pl
src/bin/scripts/t/101_vacuumdb_all.pl
src/bin/scripts/t/102_vacuumdb_stages.pl
src/bin/scripts/t/200_connstr.pl
src/common/unicode/generate-norm_test_table.pl
src/common/unicode/generate-unicode_category_table.pl
src/common/unicode/generate-unicode_east_asian_fw_table.pl
src/common/unicode/generate-unicode_nonspacing_table.pl
src/common/unicode/generate-unicode_norm_table.pl
src/common/unicode/generate-unicode_normprops_table.pl
src/common/unicode/generate-unicode_version.pl
src/include/catalog/duplicate_oids
src/include/catalog/reformat_dat_file.pl
src/include/catalog/renumber_oids.pl
src/include/catalog/unused_oids
src/interfaces/ecpg/preproc/check_rules.pl
src/interfaces/ecpg/preproc/parse.pl
src/interfaces/libpq/t/001_uri.pl
src/interfaces/libpq/t/002_api.pl
src/interfaces/libpq/t/003_load_balance_host_list.pl
src/interfaces/libpq/t/004_load_balance_dns.pl
src/pl/plperl/plc_perlboot.pl
src/pl/plperl/plperl_opmask.pl
src/pl/plperl/text2macro.pl
src/pl/plpgsql/src/generate-plerrcodes.pl
src/pl/plpython/generate-spiexceptions.pl
src/pl/tcl/generate-pltclerrcodes.pl
src/test/authentication/t/001_password.pl
src/test/authentication/t/002_saslprep.pl
src/test/authentication/t/003_peer.pl
src/test/authentication/t/004_file_inclusion.pl
src/test/authentication/t/005_sspi.pl
src/test/authentication/t/006_login_trigger.pl
src/test/icu/t/010_database.pl
src/test/kerberos/t/001_auth.pl
src/test/ldap/LdapServer.pm
src/test/ldap/t/001_auth.pl
src/test/ldap/t/002_bindpasswd.pl
src/test/locale/sort-test.pl
src/test/modules/brin/t/01_workitems.pl
src/test/modules/brin/t/02_wal_consistency.pl
src/test/modules/commit_ts/t/001_base.pl
src/test/modules/commit_ts/t/002_standby.pl
src/test/modules/commit_ts/t/003_standby_2.pl
src/test/modules/commit_ts/t/004_restart.pl
src/test/modules/ldap_password_func/t/001_mutated_bindpasswd.pl
src/test/modules/libpq_pipeline/t/001_libpq_pipeline.pl
src/test/modules/ssl_passphrase_callback/t/001_testfunc.pl
src/test/modules/test_custom_rmgrs/t/001_basic.pl
src/test/modules/test_misc/t/001_constraint_validation.pl
src/test/modules/test_misc/t/002_tablespace.pl
src/test/modules/test_misc/t/003_check_guc.pl
src/test/modules/test_misc/t/004_io_direct.pl
src/test/modules/test_pg_dump/t/001_base.pl
src/test/modules/worker_spi/t/001_worker_spi.pl
src/test/modules/xid_wraparound/t/001_emergency_vacuum.pl
src/test/modules/xid_wraparound/t/002_limits.pl
src/test/modules/xid_wraparound/t/003_wraparounds.pl
src/test/perl/PostgreSQL/Test/AdjustUpgrade.pm
src/test/perl/PostgreSQL/Test/BackgroundPsql.pm
src/test/perl/PostgreSQL/Test/Cluster.pm
src/test/perl/PostgreSQL/Test/RecursiveCopy.pm
src/test/perl/PostgreSQL/Test/SimpleTee.pm
src/test/perl/PostgreSQL/Test/Utils.pm
src/test/perl/PostgreSQL/Version.pm
src/test/perl/README
src/test/recovery/t/001_stream_rep.pl
src/test/recovery/t/002_archiving.pl
src/test/recovery/t/003_recovery_targets.pl
src/test/recovery/t/004_timeline_switch.pl
src/test/recovery/t/005_replay_delay.pl
src/test/recovery/t/006_logical_decoding.pl
src/test/recovery/t/007_sync_rep.pl
src/test/recovery/t/008_fsm_truncation.pl
src/test/recovery/t/009_twophase.pl
src/test/recovery/t/010_logical_decoding_timelines.pl
src/test/recovery/t/012_subtransactions.pl
src/test/recovery/t/013_crash_restart.pl
src/test/recovery/t/014_unlogged_reinit.pl
src/test/recovery/t/015_promotion_pages.pl
src/test/recovery/t/016_min_consistency.pl
src/test/recovery/t/017_shm.pl
src/test/recovery/t/018_wal_optimize.pl
src/test/recovery/t/019_replslot_limit.pl
src/test/recovery/t/020_archive_status.pl
src/test/recovery/t/021_row_visibility.pl
src/test/recovery/t/022_crash_temp_files.pl
src/test/recovery/t/023_pitr_prepared_xact.pl
src/test/recovery/t/024_archive_recovery.pl
src/test/recovery/t/025_stuck_on_old_timeline.pl
src/test/recovery/t/026_overwrite_contrecord.pl
src/test/recovery/t/027_stream_regress.pl
src/test/recovery/t/028_pitr_timelines.pl
src/test/recovery/t/029_stats_restart.pl
src/test/recovery/t/030_stats_cleanup_replica.pl
src/test/recovery/t/031_recovery_conflict.pl
src/test/recovery/t/032_relfilenode_reuse.pl
src/test/recovery/t/033_replay_tsp_drops.pl
src/test/recovery/t/034_create_database.pl
src/test/recovery/t/035_standby_logical_decoding.pl
src/test/recovery/t/036_truncated_dropped.pl
src/test/recovery/t/037_invalid_database.pl
src/test/recovery/t/038_save_logical_slots_shutdown.pl
src/test/recovery/t/039_end_of_wal.pl
src/test/recovery/t/cp_history_files
src/test/ssl/t/001_ssltests.pl
src/test/ssl/t/002_scram.pl
src/test/ssl/t/003_sslinfo.pl
src/test/ssl/t/SSL/Backend/OpenSSL.pm
src/test/ssl/t/SSL/Server.pm
src/test/subscription/t/001_rep_changes.pl
src/test/subscription/t/002_types.pl
src/test/subscription/t/003_constraints.pl
src/test/subscription/t/004_sync.pl
src/test/subscription/t/005_encoding.pl
src/test/subscription/t/006_rewrite.pl
src/test/subscription/t/007_ddl.pl
src/test/subscription/t/008_diff_schema.pl
src/test/subscription/t/009_matviews.pl
src/test/subscription/t/010_truncate.pl
src/test/subscription/t/011_generated.pl
src/test/subscription/t/012_collation.pl
src/test/subscription/t/013_partition.pl
src/test/subscription/t/014_binary.pl
src/test/subscription/t/015_stream.pl
src/test/subscription/t/016_stream_subxact.pl
src/test/subscription/t/017_stream_ddl.pl
src/test/subscription/t/018_stream_subxact_abort.pl
src/test/subscription/t/019_stream_subxact_ddl_abort.pl
src/test/subscription/t/020_messages.pl
src/test/subscription/t/021_twophase.pl
src/test/subscription/t/022_twophase_cascade.pl
src/test/subscription/t/023_twophase_stream.pl
src/test/subscription/t/024_add_drop_pub.pl
src/test/subscription/t/025_rep_changes_for_schema.pl
src/test/subscription/t/026_stats.pl
src/test/subscription/t/027_nosuperuser.pl
src/test/subscription/t/028_row_filter.pl
src/test/subscription/t/029_on_error.pl
src/test/subscription/t/030_origin.pl
src/test/subscription/t/031_column_list.pl
src/test/subscription/t/032_subscribe_use_index.pl
src/test/subscription/t/033_run_as_table_owner.pl
src/test/subscription/t/100_bugs.pl
src/tools/PerfectHash.pm
src/tools/check_bison_recursion.pl
src/tools/ci/windows_build_config.pl
src/tools/copyright.pl
src/tools/fix-old-flex-code.pl
src/tools/gen_export.pl
src/tools/gen_keywordlist.pl
src/tools/git_changelog
src/tools/mark_pgdllimport.pl
src/tools/msvc_gendef.pl
src/tools/pg_bsd_indent/t/001_pg_bsd_indent.pl
src/tools/pginclude/pgcheckdefines
src/tools/pgindent/pgindent
src/tools/version_stamp.pl
src/tools/win32tzlist.pl

index 611f3a673fdf9afafde85c8190f38886ff875b08..1599abcc0b24c8e2dc7ba90fa3c261220e86df75 100644 (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;
index 46d5b53181e8899968da1f5a75b19a607399f1d1..c9caa48169751b19176b5571b527a1cbebe293ad 100644 (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;
index 42a047a35710fdc2597ada4a8ddc3bfff38709d4..f0b5d8f7e42a5b160da05cf1dbb8a43361c113d8 100644 (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;
index 3279a2505a38dddb853188c86a994442d661a082..a5eb2d9d696754707f18babdf8078603d50820a7 100644 (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;
index b999ab9c17681271bdea278a077e33b9687f290d..cb3632098666d2e22fab195cd1d6b1311566ccf0 100644 (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;
index 6bcc1596f2bc1d42b4ef2242c01e00cc582c32e4..aece77317e35cbd1a6942ddb2b542f0854de0fd4 100644 (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;
index abb422f8de6910760a542ad5b1d53caac60bff6a..2720215dbc502f0a969cd37c3172a47e8cc37908 100644 (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;
index e2cdd2ecb0cc698fd6142e6eaeb93b9296d7797e..221f5b2296a3d797545785b2b115953328563e2f 100644 (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;
index 2a69ff1a746bba3ce6db82a63940485dad2f4e56..7e8c2b1a3df4cee964bfdde2cb36d3776c49aa31 100644 (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;
index 51a40e774898a7c24651ccce74e1fbe9f6c38779..5ee0d1cc7c37a5d8d3db76c85e12044909b884ed 100755 (executable)
@@ -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];
index 067654986e2fe992391108ba7f96afbc13cc006f..ba8163ce1121e4f51e893cc44acfedad9bc2e37f 100755 (executable)
@@ -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();
index 6efe9151ca5557ac96b4af5abd358e171109b9a5..f6ffc5b4527c641e6b397d2ff1a0ffc9f439dd1b 100755 (executable)
@@ -5,7 +5,7 @@
 # contrib/intarray/bench/create_test.pl
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 print <<EOT;
 create table message (
index 74fe62291693ca66dc95de304fb35974d829fa1c..ac361a0139bf02e7fa877b80e9172db84046446e 100644 (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;
index 6b7c869afc0575f0876fe2505f904ffd832929c9..b2f86c1a2587bb60c2a2ef2eaee1f05623f6200c 100644 (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;
index 67c0015e6bea20509fe667ad98d5ebb7a0eb4b53..b21af13140ec120274c4291b3cc931ed98203a96 100755 (executable)
@@ -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]+';
index 3cc21a3ba04645f199b7a95b11abc07528014f14..9bd71c039133c1c1b3851b7d0ddb59f5f51e7f9b 100755 (executable)
@@ -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;
 
index 7c2d87561ce170a6357165fb85b8ffe276dfeeff..da466bdacffb08364479a9aeadf4196291274739 100644 (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;
index 75067863decf0aec1808a9b38c291ea52815239c..4e6566d86bfd086332ac54a842996315a82f6c48 100644 (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;
index 51f22bde9586553c137f645282d8610f56d45e17..e4df6d9ece324e1a4d2fc4060da60ecebcb9b234 100644 (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";
index ee44edaa6c44de7e692ac7e0fc5aa73f2c11623b..145d131670c5c87d7a8a860c15af3ee6200d3055 100644 (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');
 
index 56a94d6ead9494eabea03404b1c95eec083964c3..2a371ef86f227b357b0e514d445027a2194631c6 100644 (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;
index 824be729a0384dc0bc4b0fefc252307f13e78335..69b1d3a1a738907149ac1997a99dc37a2aaf62f8 100644 (file)
@@ -3,7 +3,7 @@
 # doc/src/sgml/mk_feature_tables.pl
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 my $yesno = $ARGV[0];
 
index be56cc153f90ac8766e8114a24d9232320fa7e95..c1ba8bfd543460a4ab5d070f4dbc82b6f185464e 100644 (file)
@@ -14,7 +14,7 @@
 package Catalog;
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use File::Compare;
 
index 380bc23c82e76ec175efd39100f9f76403c2250d..cde35cf2426e8360c2370e128e931147e9cfe96a 100644 (file)
@@ -14,7 +14,7 @@
 #----------------------------------------------------------------------
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use Getopt::Long;
 
 use FindBin;
index 72c79635781ed283476fa60f9afa528c1e8fe908..c7091d6bf25e963e4ffba974c1b371e88f1de5ae 100644 (file)
@@ -16,7 +16,7 @@
 #----------------------------------------------------------------------
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use File::Basename;
 use Getopt::Long;
index e9b6f40eaa61b486eb365b7fec2ce8baa0023af9..cc58ce88a98245dab1c74b2caab2eac03f860ce2 100644 (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];
index 35d1cd9621b0d7308d97d7a34ae1975b48a99b6c..f1c5d160de0b96cb9ea950f8eeaeff40378a37ad 100644 (file)
@@ -1,7 +1,7 @@
 #!/usr/bin/perl
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use Getopt::Long;
 
 my $outdir_path = '';
index 863c88252b2ce224ebff50e38617b8142eabadd4..34bac0faf5e8b8215a98f6b12bd75390cef96d4a 100644 (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 = '.';
index f6df82baa5f699ab292d3da01221d2584ca5d6b6..e82caae84646eb046a50754a0f728cdfa5159f7d 100644 (file)
@@ -7,7 +7,7 @@
 #-------------------------------------------------------------------------
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 m/^\s*probe / || next;
 s/^\s*probe ([^(]*)(.*);/$1$2/;
index 764216c56dd392735ad4397f78ae5f814a2092e7..d0f3652136b0b536e769dd58a9f0d7bfb32d1748 100644 (file)
@@ -17,7 +17,7 @@
 use Catalog;
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use Getopt::Long;
 
 my $output_path = '';
index 046be2cb7064cbad62935aa0246e7f90f5c2708d..14506990a24f2ab426ac6debc716c5d119e36768 100644 (file)
@@ -15,7 +15,7 @@
 #----------------------------------------------------------------------
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use Getopt::Long;
 
 my $output_path = '.';
index 34d0f25c2335d95d4962cc15b065ce3775135764..42730e8c1a270363f6fb31a28fa25315ddce43d0 100644 (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 = '';
index 4c5724b8b7502f2fdf102d9fb72cdaa2779a8941..41fe881e1b3080fdd814cea87ca75e7f1bc6f88b 100755 (executable)
@@ -25,7 +25,7 @@
 #       # and Unicode name (not used in this script)
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use convutils;
 
index f9ff2bd3d2a7905a27ca552ae0cfc6357e9b0bbb..a14e4ac82084c4e0c5701c6f61982e47ee6e5e84 100755 (executable)
@@ -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;
 
index 2d0e05fb794170068efd4a81a582046e8f97973b..4b77ecc6948d3a2b1887f17ba0e621134413f2ee 100755 (executable)
@@ -8,7 +8,7 @@
 # "euc-jis-2004-std.txt" (http://x0213.org)
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use convutils;
 
index 4073578027eba1aeed46475caadbea00304e188b..41c825dbe723dc17f321ce8bbc7726b09333c1de 100755 (executable)
@@ -12,7 +12,7 @@
 # organization's ftp site.
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use convutils;
 
index 9112e1cfe9bf5e2a5d8184bbe322afec12127917..ff2a644012303382fa0951f678cbe5a25de516be 100755 (executable)
@@ -17,7 +17,7 @@
 #       # and Unicode name (not used in this script)
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use convutils;
 
index 4ad17064abc22582c77ad9dfaa21f8a27a25c009..d2a3dac5892404e8642e59925c961088ab302b34 100755 (executable)
@@ -18,7 +18,7 @@
 #       # and Unicode name (not used in this script)
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use convutils;
 
index 9c8a983bf7103618e8b6d7ea51680f24d11c12fa..88c9c374b2d207b69e3b517fd24fd864d41805f3 100755 (executable)
@@ -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;
 
index f50baa8f1f423d6bbab5934b095408aeb7cae2cf..decf8ab4437068f219859c1b1114c34c9043c018 100755 (executable)
@@ -16,7 +16,7 @@
 #       # and Unicode name (not used in this script)
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use convutils;
 
index ed010a58facf00f3a0944822a3bb355f2ea88a97..eb57ca89c585cd2a91476f0476d9eb8ed99dbbc5 100755 (executable)
@@ -8,7 +8,7 @@
 # "sjis-0213-2004-std.txt" (http://x0213.org)
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use convutils;
 
index 0808c6836b3a155c165ef701c66d230fddad9e30..3ef8960ade37e853c249db523db89564c689c642 100755 (executable)
@@ -11,7 +11,7 @@
 # ftp site.
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use convutils;
 
index 207677d76dc22a7894bff39a27ce52175c8fad45..cc8b7d804cfc65a9dbe4da65574cf80ce9c174f7 100755 (executable)
@@ -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;
 
index a1947308ffa3a0bef0c6eb9e7da1744bcc9cc2e4..2a095b7d7dc6aab03f9adb2cfbf134202fd0d5b0 100755 (executable)
@@ -16,7 +16,7 @@
 #       # and Unicode name (not used in this script)
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use convutils;
 
index 77de7b1a4d7468f945112a690b5d4382ab8a6715..0f55d9621b2898375843c0deaff5e7a6578d5483 100644 (file)
@@ -6,7 +6,7 @@
 package convutils;
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use Carp;
 use Exporter 'import';
index 45f96cd8bbf04991d54555c6a80c7d6e1bfe1f7c..cd86ce3122e1c00e57008287470b7c2bd7ffc28f 100644 (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;
index 1f1e33278b81d94e5b129b843515e5cc71dde408..9737d965aa853cd4c0d713741bd3b1b437289a59 100644 (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;
index 99b94dd02238be779e71c7250ce57b052c8a41d8..df7ff5397a9d12465044ddb3b8f6d8b22cb06b34 100644 (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;
index 2b7ef1985523b28890f852f797ee87da96bccdbc..6d756e70a39ed2c0090165b04797ed734a077683 100644 (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;
index 1b5027c4204b68a3006622763fbe4958336c6c20..0f57adabe6681018c61fcc5d00497069a8f18969 100644 (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;
index a5ef2c0f33d0a9ea6ddc23b673229f2947b5cbe9..e8e1d62d83aecc89eec87ca650a789dcc4f49de6 100644 (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;
index 18a82ff002eb45d13815299ccf425f03551bbd7d..279c43834545290eaa07b6e32351e62c64ca30f9 100644 (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;
 
index bf765291e7d5a26126146b79a1afc2705a9347ca..53a9823c175d05490b13f50ca1689e21eb9af131 100644 (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;
index d58696e8f99cb7b8d3b6a0bc1bcf36b60f73cdd1..da7154362e19efe0a629b998eb931473c7c1a0a6 100644 (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;
index 374f090a8b6dd840a59fcbc3e0d81b9e2db058d3..765049ee962ed829e076fce4f8178baaca9b96ba 100644 (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;
index 62dca5b67a6ce6cc17b8c9f845e60387208654a1..1bbe88da14d1ca46cf5a4ab939ec09c2acb9cd82 100644 (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;
index d3601a5dd84a25c83d4105c6161b6c7677c5e0ce..cfc147b77ced74b6a908924a69e5b564c2bd286b 100644 (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;
 
index 2d63182d59f571181db00cfe2bd388d29061ec67..207dc8ec9cfbf1e7094d891855dd0cf4e0aa6229 100644 (file)
@@ -5,7 +5,7 @@
 # an initialized cluster.
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 
index fb66075d1a8ed6cd236b23a0440ecd08a86e5e44..7558bfb1fae66017d6c79df11561f0959b9ea501 100644 (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;
 
index 99a4f5ba2d45bcc3a2e35e544756dd2b70b56e87..3c612bd759506f6f6b18b7ab6e73996986ac1152 100644 (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;
index bc053ca5e8c257040aa9ad63657499a4d1002002..5abef20a9c47db4bec41d38abaf674bdef715525 100644 (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;
index 4f3779274fe8f131371547b62b92d9c4974fb36f..ed1821e0efe31f5fdeccc2c327a27c1b5b3b0e1f 100644 (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;
index b1f63a43e071637680d8b0193d5f79a13b9cf765..02909ecb42358add3543701e4febcee1b75794a2 100644 (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;
index 24acf7872b2a57e7d181d31e4cb98ad1c37f27ac..693f7be054df88a06c693a416586ecfdef40730d 100644 (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;
 
index 9db8015d0b0a5deb346f39182561d3cbaa1dc74e..6c7deda617b0072968bdaa3ba3eac17fd7dddb58 100644 (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;
index f019fe1703f3ead97f026e755e0a032aae188152..e072916dfa54fb590437a96c4497109c7746aee6 100644 (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;
index f5c50f6a7db52c76a2c55aacc81e3143121b115a..95bba696a40a00ade2deb158ebd2345e93ba5daa 100644 (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;
index 0e83933098d9484ee44331c24d61c3272334ab46..f38e02f4a2017c49603aacaff7502e6c9a1dc9ed 100644 (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;
index 8d48e56ee9b1efaf6542eece5e29903cf3fefc5e..912d89b5d6bcfb90b508f6f36afa2cab0d5aeadf 100644 (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;
index 8c63d31cb662e34878848fc16f321dc264ca1136..60f0e1de454f68caf2a5d6f3c76c44ea1205e55c 100644 (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;
index a671603cd28d11dad988fdc8e735cfc226cd0762..1639bdd9fcc412772595effd4993c1a1fabf050f 100644 (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;
index ab025c44a4325ff9084c74a85e6bd2fc255d075a..e21de45ba20063a19337d7863b49b55a70e28aca 100644 (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;
index c4b461ed87fbb440637a029341aa8461203c7805..c14391f58b588d8fdd943b73347550d15984ff00 100644 (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;
index d16f034170f7c38edc5a01f17d56a12a4510f51f..308a1e42c4bbb825af38ad7253271b02130c024f 100644 (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;
index ed86c332ef967650d04403d1696f914ead99771e..f03e1e08cc599203c0019068f553cc50c9dd6842 100644 (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;
index 18d0882cb1defb767c5a1c8971a23a535142bdf5..dcb5fa846e0a52325f6c83e8fd23a8b0dac31767 100644 (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;
index 91e4757ebc710ec903e7352a75c95d06f6db0a42..61c2339e24a16733938066d0c9d32105e9e6b3d5 100644 (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;
index c7b48255a71101fbde610e6504da243a8551be05..842f6c7fbe4753b173fe286bb9a1dedf71c2769e 100644 (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;
 
index 0d480aedb48bad166a0ab1c1adce80183984a5e5..313b2486e17156b21039daca91583764b22c0cd1 100644 (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;
 
index fd2bee5d208a374d8c252eace0c9d381f92407dd..6e040239c4c22db70555b4cbe28afde272c5f1e4 100644 (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;
 
index 5fb7fa9077c2fe0808de9ec4fd8033ded66e9555..7d1bb65cae2f2bba76fa67b603466300ef084a28 100644 (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;
index b4ef05e56078ade3946ba354201b54833fbddf5f..57e04b0ce2484fd5d41e577f352074716ed0be6f 100644 (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;
 
index 4b6e39a47c7680e88c4157531fd31a7f09bd6913..c346b370a66915f3552f0be71f668a8b3000b413 100644 (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;
 
index 4fd1ed001cf70abccf70fb9a93023fc58afe31d8..fab84a4bbb01db8bbcb008aa8d50dc37c45150ac 100644 (file)
@@ -25,7 +25,7 @@
 # as is.
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Utils;
 use Test::More;
 
index d4c89451e65aa6faff86bef32c31b6bef9428862..287e4555b5566aa96c0435f8804cd3dc341231be 100644 (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;
index cf60a04ae7131aeded0d3fc328104991c9a539a8..016f7736e77aba217afdabe5deeed71d413c2bd6 100644 (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;
 
index 8fbbd521cb5bebdb52faf88c95866390ce9fa758..23144f19e86654c4fe6d94c0b86ac45e0af678f3 100644 (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';
index 401ad2c07ca954fa449208ffeb503c8d72257f69..135e68b9baf0ba1a2e2d61df4f3a2ded350637df 100644 (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;
index 43bc68cb37de3c8753bcee6080a9984207f4673f..628a603f85da48468237ab7042f37abb6f4d84a5 100644 (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;
index ceac4e0851bc84601620185e5f081ffd9d50bae0..6f7117cec65428b23af3192a5240648617d912a4 100644 (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;
index e5f57e550afdb2db7230625d2a3379bfa93fdab3..b0470844de72485a682998fd39060cc0d78736d3 100644 (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);
index 020e7aa1ccec3d91cff52413522b2026e4da4a1b..752c25a601286d4483895616c631bbeb2110f86f 100644 (file)
@@ -3,7 +3,7 @@
 # Tests for upgrading logical replication slots
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use File::Find qw(find);
 
index 73e86632386793dca7207bfc73834aa267007bcb..f1127c827a9ac6bbc6ae9e596082bb32817853ce 100644 (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;
 
index 5b02ea4d55e3c8d902da6bb8bbe8be406f7bc6af..c9f0c10f83b2eded32db392566560bc37e2a7750 100644 (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;
index 4cc3dd05e3e2eec8cf392f0ae1ab743c56d3db69..273a6ff77bf0d24aa4f4e2b6acc31710fddd6568 100644 (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;
index 2aa8352f00ef11228e232b75d049e2bb60ef382a..f6b092b58a3c5483bd7a28d75ee3f2ba925f5571 100644 (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;
index c94fdd5df83051c43f05b43f4ff80be8d0cc925f..d481ea1f02c3f5a3c38acdc3a6f8a05cacdafacc 100644 (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;
index 0b37bda20c10302726f76e91d5f32f353afe5bd0..3831a28272318ff67e2414b9a53e9ebe46cd7a7b 100644 (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;
index 89f96f85db11ef2f6ffa4e54f349fc70d5de92b1..ea3d60b242d7b3354cc2df9e19cde48ae1ddb41b 100644 (file)
@@ -4,7 +4,7 @@
 # Test pg_verifybackup's WAL verification.
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 1a783d118839f483ff30c8ad87a9021822469b81..7f0f2245f62a64f03dc956b88bd08174bd2d3455 100644 (file)
@@ -6,7 +6,7 @@
 # format.
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use File::Path qw(rmtree);
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
index f4d5378555ea88b71e7affa453f97cbd9fca9454..e8e4f60768ffb82a7a153773f136aa215df83108 100644 (file)
@@ -5,7 +5,7 @@
 # a backup which was compressed by the server.
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use File::Path qw(rmtree);
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
index 44d83e777ffc92cbe06b798964d09113884ac07c..64907f0caefba56fe158ab3f7aa5dd1906d66b61 100644 (file)
@@ -5,7 +5,7 @@
 # backup that didn't start out in plain format.
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use File::Path qw(rmtree);
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
index 029a0d052187fb6b50c604fc0139eb9e93001e45..b805283385fd85eb888ef19a86316580850c737e 100644 (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;
index f0725805f21921d6d79c2d42d08d6f4a524a43f8..ed6726c486d1968653b4f15bc6d7725cbf51141d 100644 (file)
@@ -2,7 +2,7 @@
 # Copyright (c) 2022-2023, PostgreSQL Global Development Group
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use File::Basename;
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::RecursiveCopy;
index 85e6520007e1562b320730527446efeb8cb49d31..3e719cdeca1555b72692f3578f3a72be9f103e86 100644 (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;
index ffc8c772aed19624eaf39f4966c7e108e502d91d..457c67555faca225bbc7c4aa83987c112253b916 100644 (file)
@@ -6,7 +6,7 @@
 #
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use PostgreSQL::Test::Utils;
 use Test::More;
index 0809db41517b5cf5e04198c67dfb35e0b969c94d..def02465d50857e1b0d964d3885b37c55b2ca9b8 100644 (file)
@@ -20,7 +20,7 @@
 #
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use Getopt::Long;
 
 my $docdir = '';
index 95f4e60ab200f9add75d735223613f37c7e88a2d..eefcdfa05fb1abcc7c1cc25eabf45455cbd3e329 100644 (file)
@@ -2,7 +2,7 @@
 # Copyright (c) 2021-2023, PostgreSQL Global Development Group
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use locale;
 
 use PostgreSQL::Test::Cluster;
index f2d2809aef6e51302b24b0eba6c184a33866c1fc..2220ea270f5837e4b2f9e30f321a455283b20952 100644 (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;
index 2590b014dda41a909de428593ad1c94e2a2ef93b..5f0b921ac3ab63bf9fc685ff7d778ca7762befff 100644 (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;
index 715207fb4d16926cf8179c4618e3b984a883ae8d..60792c2eea57a09dc16d26a3d5405df281b04673 100644 (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;
index 35f0b18f50f375f810ca48d8b8829eae597c1fa9..26315d0a5102998e9ae601a5e2404c23ffe7eb81 100644 (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;
index 40291924e5d1295da2c087170967089e08b0a579..8815477672eb233295b8678250f34e6815b79e34 100644 (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;
index 3290e30c88f0b1efd5f4a7034cd5025029dc6c09..75dd7331ba26755fc5a1193390674bf791b1b467 100644 (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;
index 3ed670bb0a157f13e558db9f2ad3e7884bc7424b..e5acab9a38537943b3883583f4fe814f7ecf2f2f 100644 (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;
index 95c24c4f30dc9a48d26689173fe09d5de0633504..74947e8ca74c536dc004f1c23546aadb87f50329 100644 (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;
index 8f53aef573769cec8f5e6f7dd56e0168e7001fa5..9784006465c5e1df4c6f62668200eef263b7ad68 100644 (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;
index b663d0e741ace38a20857632da04ca5e695a082b..7ed71849c30116d4c3d49329f6d34edd14ac608a 100644 (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;
index 7f3e081ceb1bba0f160da060af6e21fd3125dbd5..fdb198b4e78f4665c480a60c7ebf340613279ac8 100644 (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 Test::More;
index 925079bbedb6fe5b0e345dfebf8b8d5a37ebc8fc..f731457e2e52c0fbc461d5334af5b3d28ce4d183 100644 (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;
index 8d7c3ab014bbab5e944666c95780e842b95cba98..673a94d00509fffe6436d60175829dc0c171968c 100644 (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 Test::More;
index 64d7ed1575ffc94a4e968b7848270565dbe3ef4b..c1174fd5e8f65059211a2d1b46bd58d17a49e757 100644 (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 Test::More;
index 53c5e21ab2ce2a43c693bda5f786b3ad8fed7bab..4f3d9ffe98d30181ff008e579f35c1788174bd6e 100644 (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;
index 3434f7e2630baffa1bf1ff2269b27ee2d0060047..fb1718047faac1d709ee500a699d6e914d0fde92 100644 (file)
@@ -8,7 +8,7 @@
 # Copyright (c) 2000-2023, PostgreSQL Global Development Group
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use File::Basename;
 
index 992b877ededd055b7cab14cd9a3fc6845310dde9..7936eed1029d3c91e225a5e201e99737e516610a 100644 (file)
@@ -9,7 +9,7 @@
 # Copyright (c) 2000-2023, PostgreSQL Global Development Group
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use Getopt::Long;
 
 use FindBin;
index 125bd396a073e92900312bcb5971c74dfbd9fd22..91423be78e92aeea46e228f91da69ef40143ce54 100644 (file)
@@ -7,7 +7,7 @@
 # Copyright (c) 2019-2023, PostgreSQL Global Development Group
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 my $range_start = undef;
 my ($first, $last);
index ae86e82922f31ef882295c405d7613c9ba4a318c..521b939943be049f319f5fdf0b0ac95417707690 100644 (file)
@@ -7,7 +7,7 @@
 # Copyright (c) 2019-2023, PostgreSQL Global Development Group
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 my $range_start = undef;
 my $codepoint;
index d5914118abffffd1856b726053c09f4cef9b3499..65b001d06575f28c66fa7d4003b8cb6776643fd7 100644 (file)
@@ -9,7 +9,7 @@
 # Copyright (c) 2000-2023, PostgreSQL Global Development Group
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use Getopt::Long;
 
 use FindBin;
index 1b7473180b33582517157ee2e77541bd79efc75b..f831c2d0d5f3c81de099126e58da8326fa943a9d 100644 (file)
@@ -7,7 +7,7 @@
 # Copyright (c) 2020-2023, PostgreSQL Global Development Group
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use FindBin;
 use lib "$FindBin::RealBin/../../tools/";
index 22eb2f1a3ddb45b75f3230ad1d700b120b96a9f6..e8cdb8e7d126c0fd83a1d918ef84227e167599e1 100644 (file)
@@ -7,7 +7,7 @@
 # Copyright (c) 2000-2023, PostgreSQL Global Development Group
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use Getopt::Long;
 
 use FindBin;
index eb5c3fb08407365866ff3c3bbd2e0f9061dae9c2..1830b95b0af360567afc39b30dc5a32318c36d4f 100755 (executable)
@@ -17,7 +17,7 @@
 #----------------------------------------------------------------------
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 # Must run in src/include/catalog
 use FindBin;
index 725117d846c5bf386bcd28a8df85159ed12682ad..b5235c24d3353a300cf1acd29228b0da8cc86ad4 100755 (executable)
@@ -18,7 +18,7 @@
 #----------------------------------------------------------------------
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use FindBin;
 use Getopt::Long;
index ec0958495982621f30d8c28e6149e01a0580c14b..a418b33d58428e950d24bca6ca439bdadb7ffa3c 100755 (executable)
@@ -16,7 +16,7 @@
 #----------------------------------------------------------------------
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use FindBin;
 use Getopt::Long;
index ccf3c3f78126fd20b07cf8e31baf95e35c53b241..f5f0c57b742454f5d1628b1b45c8e1f0ea5d5684 100755 (executable)
@@ -19,7 +19,7 @@
 #----------------------------------------------------------------------
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 # Must run in src/include/catalog
 use FindBin;
index 5e823fa30e09a30e5318c0da3c07b9e001346037..6417ee7315d0674ee8382fab0d49ad200d35d196 100644 (file)
@@ -17,7 +17,7 @@
 # Then it checks to make sure each rule in ecpg.addons was found in gram.y
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use Getopt::Long;
 
 my $srcdir = '.';
index 7574fc31106f7ecfb7f3b8e4613dcccc418e03dd..b0caeb356f3bf86e5e133d4c6d7654306df43b3c 100644 (file)
@@ -13,7 +13,7 @@
 #
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use Getopt::Long;
 
 my $srcdir = '.';
index fd062a95c574af7ed4512b7f93f927b657dbc1df..cd876e758f3dfafdb5d2fc34401932ae9445749d 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright (c) 2021-2023, PostgreSQL Global Development Group
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use PostgreSQL::Test::Utils;
 use Test::More;
index 8b43a984fbce8c562c90b5534ae3330d9366c36a..9d376bcaa2b68c6a62619468697a6c1020e01b94 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright (c) 2022-2023, PostgreSQL Global Development Group
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use PostgreSQL::Test::Utils;
 use Test::More;
index 21c3b8dd3353e5a793848aa76248d41a2f14ef84..c6fe049fe5fc53e0cb204bd0114b6341c860837d 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright (c) 2023, PostgreSQL Global Development Group
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use Config;
 use PostgreSQL::Test::Utils;
 use PostgreSQL::Test::Cluster;
index 875070e2120eced63dfcdb745a2cbbfdac387a16..81cf628ac7c5936bcba3458f7429853311b214f0 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright (c) 2023, PostgreSQL Global Development Group
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use Config;
 use PostgreSQL::Test::Utils;
 use PostgreSQL::Test::Cluster;
index 13298013d39618e75c662dc0a8b6d55bdfba4295..90c1b7e66793b0d59fef1482b5d07fa709bf5b9d 100644 (file)
@@ -4,7 +4,7 @@
 #  src/pl/plperl/plc_perlboot.pl
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use vars qw(%_SHARED $_TD);
 
@@ -58,7 +58,7 @@ sub ::encode_array_constructor
    package PostgreSQL::InServer;  ## no critic (RequireFilenameMatchesPackage)
 #>>>
    use strict;
-   use warnings;
+   use warnings FATAL => 'all';
 
    sub plperl_warn
    {
@@ -107,7 +107,7 @@ sub ::encode_array_constructor
 
    package PostgreSQL::InServer::ARRAY;
    use strict;
-   use warnings;
+   use warnings FATAL => 'all';
 
    use overload
      '""' => \&to_str,
index 26ac717770173ac556db0de29c006057f88c6473..09dc72d27306121123cba84e6650601f0d4791c5 100644 (file)
@@ -3,7 +3,7 @@
 # Copyright (c) 2021-2023, PostgreSQL Global Development Group
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use Opcode qw(opset opset_to_ops opdesc);
 
index 933632c0df98f2f08fed0b23d5e2840c64557915..7a41da84c67b1affacc2a67914ace5a850b1c622 100644 (file)
@@ -27,7 +27,7 @@ file as capitalized and used as the name of the macro, along with an optional pr
 =cut
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use Getopt::Long;
 
index f4fd376ef95a3afa073080f6cab6ef6b80c260ae..03ce58b94e39f51f1176346be2a29cf277c34491 100644 (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";
index 61b37c35417071eb11b7fce90f4bf352d97f6869..090e20472c04c503b71ab9ebc8a4ac7347d6d07d 100644 (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";
index 9c2309108c092e64599f3f561149080f607d69a2..df1ba7d4d45596f166344fb847afaee5fcde91c0 100644 (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";
index 320e45ef8422d0af725cef5faf97f3e8ee06d640..6a2b2ae7903d718b3db8fc29d5b3ae451e459523 100644 (file)
@@ -9,7 +9,7 @@
 # This test can only run with Unix-domain sockets.
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index ef158311668bd3603fc78d33cd092cd02182c9d7..c3a73dfda1b9484aeea0dd233a27452e1f1da8bb 100644 (file)
@@ -6,7 +6,7 @@
 # This test can only run with Unix-domain sockets.
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index eacff2b52aa09af792c068f2deff83a036fb5af5..96217b6661542ea69c94dcef2a3fe6d318a9e0e8 100644 (file)
@@ -6,7 +6,7 @@
 # and is only able to run with Unix-domain sockets.
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 55d28ad58644f0126ad75c2016240514f317c9a4..364bba81ca964f893beb10ae396522b9d774e391 100644 (file)
@@ -5,7 +5,7 @@
 # only run with Unix-domain sockets.
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use File::Basename qw(basename);
index 37fd5bc2437351ad969e4a1a5b8109e79325c107..bdc829dcf887580a46ee87ae8a9cb3c7726afb53 100644 (file)
@@ -4,7 +4,7 @@
 # Tests targeting SSPI on Windows.
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 3f1a8a7c457c99166b201d2efbd286e305945317..3415ab9e005c75344777eb9d6c031e0034b6198b 100644 (file)
@@ -5,7 +5,7 @@
 # tests.
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
index 67fc3bbf19b166b8d9f4090136cec2bd0add3888..39cba8492d3db536e449d7e9c8a5a5f273f29f50 100644 (file)
@@ -1,7 +1,7 @@
 # Copyright (c) 2022-2023, PostgreSQL Global Development Group
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 0deb9bffc8de9e8cc435a8d577de7c6b43042b2b..e9ceb712f5b83cf2fda9b9e7f4744d89a301b215 100644 (file)
@@ -18,7 +18,7 @@
 # See the README for additional information.
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Utils;
 use PostgreSQL::Test::Cluster;
 use Test::More;
index a4c1a1843c8b8dfbda87231835c3e66a064bc650..f63844d60a02d8b9e4a62c0ed1e548f8608ea465 100644 (file)
@@ -46,7 +46,7 @@ LdapServer - class for an LDAP server for testing pg_hba.conf authentication
 package LdapServer;
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use PostgreSQL::Test::Utils;
 use Test::More;
index 3e113fd6ebb535209a6014c5e423e10619427d38..5e569c4db969c69e938cdd905b391667ffe80156 100644 (file)
@@ -2,7 +2,7 @@
 # Copyright (c) 2021-2023, PostgreSQL Global Development Group
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use FindBin;
 use lib "$FindBin::RealBin/..";
index bcd4aa2b742fe0def7d294cfcd970f2feee7b661..204ed390590fb64b839d93d66a57cadbbdf31c16 100644 (file)
@@ -2,7 +2,7 @@
 # Copyright (c) 2023, PostgreSQL Global Development Group
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use FindBin;
 use lib "$FindBin::RealBin/..";
index 8bed29b3ad9467ef1eb89c59abe564adbcdc9326..47efa8f8bbe11e0328e4e4c08584de57ef1b9a15 100755 (executable)
@@ -3,7 +3,7 @@
 # Copyright (c) 2021-2023, PostgreSQL Global Development Group
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use locale;
 
 open(my $in_fh, '<', $ARGV[0]) || die;
index 5f710742314afce70d8c6733e45bb75a1a421c5c..376c3a43f1c59d40b00c436220712ad4f2f9910e 100644 (file)
@@ -4,7 +4,7 @@
 # Verify that work items work correctly
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use PostgreSQL::Test::Utils;
 use Test::More;
index 8b2b244feb918359cf79f84450a720deeee56814..a588a28669ff76576e143b579ed6102861116719 100644 (file)
@@ -3,7 +3,7 @@
 # Verify WAL consistency
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use PostgreSQL::Test::Utils;
 use Test::More;
index ae3fc5f52d20b789ef8e55a80bff4b6b513a4ce5..d6ea0c4c692072cc19570d8e139ecfc8956446d1 100644 (file)
@@ -4,7 +4,7 @@
 # Single-node test: value can be set, and is still present after recovery
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use PostgreSQL::Test::Utils;
 use Test::More;
index 59cc2b1244bca382b198208889c50bf535631cdc..e843578ddb2855c3b1ddb7691457c67960e987c0 100644 (file)
@@ -4,7 +4,7 @@
 # Test simple scenario involving a standby
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use PostgreSQL::Test::Utils;
 use Test::More;
index 5af511e369c2659b536771174686d90e32759971..b38c3c0f268a336c10897a86281b034868144c84 100644 (file)
@@ -4,7 +4,7 @@
 # Test primary/standby scenario where the track_commit_timestamp GUC is
 # repeatedly toggled on and off.
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use PostgreSQL::Test::Utils;
 use Test::More;
index 8fe4bedb140d446c20ba8dd468d2dcf917c57148..399268ebeee516fe6b06ab7f3dc15218c0c8d9fa 100644 (file)
@@ -3,7 +3,7 @@
 
 # Testing of commit timestamps preservation across restarts
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index c96c8d7a4de10799ab4d57f326fd26f3ad399b54..b7ac65091ac4cc6dbe97dc3960bc611c5eee6bb0 100644 (file)
@@ -2,7 +2,7 @@
 # Copyright (c) 2022, PostgreSQL Global Development Group
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use File::Copy;
 use FindBin;
 use PostgreSQL::Test::Utils;
index 056fa5c6d2b97bb999a6558ca3eeb076e71912c0..71a11ddf259ccab68cd379a861054676f11b45cb 100644 (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;
index 2b2c144ee288f1e922bf83d80574057407c65c07..c63e7bd394e1be8e10390b9e31ec3f3e2ee2d021 100644 (file)
@@ -2,7 +2,7 @@
 # Copyright (c) 2021-2023, PostgreSQL Global Development Group
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use File::Copy;
 
index 50655d3788a4fe594695f586187c15b4fd74ba87..dc3d83029994a670c4da677a4f78e25f46a9ce92 100644 (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;
index 5a07a5d36df3ade3eddbcaf44fac432a5421fa60..4d0ea0c59d8ee9124d9ffc5483034eada39260eb 100644 (file)
@@ -4,7 +4,7 @@
 # Verify that ALTER TABLE optimizes certain operations as expected
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index f774a021a8ad1553bfa957a34291957c428b0a8e..220e2b073d43af0933a535f05681a7a02e27470f 100644 (file)
@@ -3,7 +3,7 @@
 # regression tests.
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index a5d680e82e78e7cdb8b27ceb0beb1367e900285b..0c222bada905fb3fd71672ce248915db174cb9b6 100644 (file)
@@ -2,7 +2,7 @@
 # postgresql.conf.sample.
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index dddcfb1aa96594995a1b2e531300e98e987d8b15..e3f0966b8de74385d673cd997bb10d4c56db1f22 100644 (file)
@@ -1,7 +1,7 @@
 # Very simple exercise of direct I/O GUC.
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use Fcntl;
 use IO::File;
 use PostgreSQL::Test::Cluster;
index a5d5b9b35d3f65b90378a0c54451f6b4edb7e8d8..25a80c8c6638432f1dcd0615b80bc38179d3eae0 100644 (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;
index ba1d281e81b521473f594007509851d36f30ec3f..4759b55a60850cc7e7b58b2f5a876401a22bab81 100644 (file)
@@ -3,7 +3,7 @@
 # Test worker_spi module.
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 4cf579047eee11b11c5f702de2ac47ebe1d653e0..4121154a53ce3c673ee3aa034ece0baa59f87ee0 100644 (file)
@@ -2,7 +2,7 @@
 
 # Test wraparound emergency autovacuum.
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 6aeea19cdc83b8d61a75fb0d40c134847d2d0615..7750473bc58b4c85fe1e75b5fb7ab47eb40a7f32 100644 (file)
@@ -8,7 +8,7 @@
 # been advanced.
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index be71b00a17c7846690936371009b2e5f98bcbb72..283d1532c2a546fd9bd4e0c4390cdd874df55998 100644 (file)
@@ -4,7 +4,7 @@
 #
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index e34dfb924348c30c8c6e5f7f4de41db1e010ed4a..1b1078f8c6a7a44743a5a3a2d40d326fd29faf34 100644 (file)
@@ -30,7 +30,7 @@ compare the results of cross-version upgrade tests.
 package PostgreSQL::Test::AdjustUpgrade;
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use Exporter 'import';
 use PostgreSQL::Version;
index bae452ac9c1d62ca9cd708d28e2229603837e4da..ec91f735a8e9dd93cc00cd72d815bc8f81d66c0e 100644 (file)
@@ -54,7 +54,7 @@ initiated by PostgreSQL::Test::Cluster.
 package PostgreSQL::Test::BackgroundPsql;
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use Carp;
 use Config;
index b0777e2724db0368ccd33e5cf14ff0cc3487992d..869b0fb88522a34c870644ab8c784b66fbc3a5f7 100644 (file)
@@ -97,7 +97,7 @@ The IPC::Run module is required.
 package PostgreSQL::Test::Cluster;
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use Carp;
 use Config;
index 15964e62173fdd92d0e697b90f113026a291afc1..1c79bfabd1ebe7274d428cb4100817e511d45230 100644 (file)
@@ -19,7 +19,7 @@ PostgreSQL::Test::RecursiveCopy::copypath($from, $to);
 package PostgreSQL::Test::RecursiveCopy;
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use Carp;
 use File::Basename;
index 82099bf50369fa1c61e5318be6826477d38a1ee2..9258b7c4cda1da87159ea8812a6625fade3002e8 100644 (file)
@@ -17,7 +17,7 @@
 
 package PostgreSQL::Test::SimpleTee;
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use Time::HiRes qw(time);
 
index cd86897580ca945a70434d2001a90acec60564a6..2b78840629f65dc0474544cd812ab20dd324e941 100644 (file)
@@ -42,7 +42,7 @@ aimed at controlling command execution, logging and test functions.
 package PostgreSQL::Test::Utils;
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use Carp;
 use Config;
index 3705c1bdafc1b1427f7dfde7cb5b466c456a13b5..dadc90fecc7165d22a3b7a48d633260b8857cfe3 100644 (file)
@@ -45,7 +45,7 @@ of common version formats and comparison operations.
 package PostgreSQL::Version;
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use Scalar::Util qw(blessed);
 
index 8fb44184b91560630cf7bd7700bc8660e894bbff..af037a8091cc0b782071f0a682909093440fd9a3 100644 (file)
@@ -58,7 +58,7 @@ order.
 Each test script should begin with:
 
     use strict;
-    use warnings;
+    use warnings FATAL => 'all';
     use PostgreSQL::Test::Cluster;
     use PostgreSQL::Test::Utils;
     use Test::More;
index f0de921b4b199e0b6a3ffd526426b5247cd04771..3aff0f61d592a3de0facd4b577c7fa12803b1423 100644 (file)
@@ -3,7 +3,7 @@
 
 # Minimal test testing streaming replication
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 48e00f9e2963743c4c5778e992f7fa5eadffec2a..c4d0a2a81f96b973ea3cdae0b6f51687a2494033 100644 (file)
@@ -3,7 +3,7 @@
 
 # test for archiving with hot standby
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index e882ce20773574eeb2c08508d3a637e56a28667c..1b63116ceb1682cc29da1a15458e5b74503fda63 100644 (file)
@@ -3,7 +3,7 @@
 
 # Test for recovery targets: name, timestamp, XID
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index edaef918454b489cf3f2535d78b3ac3450eb74ab..2500201b9951f287ed65a437fcb5f07c85a10571 100644 (file)
@@ -3,7 +3,7 @@
 
 # Test for timeline switch
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 8fadca4204597c770b54cb1ac4405467b198ccef..2f7a99e6870a218e0ba7f99342220c34f31fb2b1 100644 (file)
@@ -3,7 +3,7 @@
 
 # Checks for recovery_min_apply_delay and recovery pause
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
index 5c851bf4c191e7a4313f998c0c41ab337df5a1db..97e3df04aa0511a9709d7fd5b13252cea2daca51 100644 (file)
@@ -7,7 +7,7 @@
 # is for work that doesn't fit well there, like where server restarts
 # are required.
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 2026af07021aadf0ef7318eccb9a6b2dd3a630dd..b25ae1e8eca0a202f86047a2613937ee57cac05c 100644 (file)
@@ -3,7 +3,7 @@
 
 # Minimal test testing synchronous replication sync_state transition
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index acac0a0a55d87ce19de82929230d764a62147ec8..10d1535a934fb34c4aa85561d3cdd7a4c57f4ced 100644 (file)
@@ -6,7 +6,7 @@
 # FSM changes don't normally need to be WAL-logged, except for truncation.
 # The FSM mustn't return a page that doesn't exist (anymore).
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
index e1273fd0f1204fdabf01cd379ecb5bd400f7e3d6..cde6e2a944d29b45a4c091c5ac82899cc028071d 100644 (file)
@@ -3,7 +3,7 @@
 
 # Tests dedicated to two-phase commit in recovery
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
index 6fbbeedde3b06875f2291d79b7908e3ae4ecce58..2359821b2821d0ab65e4eb480f871f028d4c680c 100644 (file)
@@ -22,7 +22,7 @@
 # on logical slots).
 #
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
index 91ae79dd5144c88cfc74ef3678cb38ddf443d50a..32434d434012b483074337d37edb9365a5c7a914 100644 (file)
@@ -3,7 +3,7 @@
 
 # Tests dedicated to subtransactions in recovery
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
index ce57792f3128c83ab3edfd9fe2cc2dd03b2ccc38..0dfd197df4f8c21e94a0d788212938ac04dfd856 100644 (file)
@@ -12,7 +12,7 @@
 # backend died), or because it's already restarted.
 #
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 3591b3309e691aa211ef48bc820bd80faa690a6e..bee8b8804ff41a7e18026f07af60e6faf0d75f4d 100644 (file)
@@ -7,7 +7,7 @@
 # that is not tested here.
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index beeb9dfddf753437509da83371cf6571e592dd54..b49dd4c8352555e15bdb57e418dbe749d57be050 100644 (file)
@@ -6,7 +6,7 @@
 # invalid page references at replay based on the minimum consistent
 # recovery point defined.
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 81f7a43c079e8c287f22b90f25f87113d9ed780a..cabdd3156e620798605c04357ed8674f1489e4d4 100644 (file)
@@ -8,7 +8,7 @@
 # both checked.
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 74359e0e3882fd79c4eb85727839263c6ff3558b..7935ce63d3e0fa80e8c285c31cea2b19093c4e41 100644 (file)
@@ -5,7 +5,7 @@
 # Tests of pg_shmem.h functions
 #
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use File::stat qw(stat);
 use IPC::Run 'run';
 use PostgreSQL::Test::Cluster;
index 1d613eaede4db7ad3ba6ec96db0ce4b2d7010800..0752bff1741fc6c30306a8df7f9339163fb169ee 100644 (file)
@@ -10,7 +10,7 @@
 # For many years, individual commands made the decision to skip WAL, hence the
 # frequent appearance of COPY in these tests.
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
index 6c244a555023ca86ed7ab8e86a48668357bcb5fd..22ca8ecb5cc494b4e4bbe2b83dbde2fe1199a5f9 100644 (file)
@@ -5,7 +5,7 @@
 # Ensure that max_slot_wal_keep_size limits the number of WAL files to
 # be kept by replication slots.
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use PostgreSQL::Test::Utils;
 use PostgreSQL::Test::Cluster;
index fa24153d4b98bd6d7409f4d0aa17cf77f5b75df2..ce51bfb58ee31a4a75b8ad8f1e8b4d5326433194 100644 (file)
@@ -5,7 +5,7 @@
 # Tests related to WAL archiving and recovery.
 #
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 52a6a3509c216feb7e8aca1992667f787a1a95bd..3bdd42c25d02e2b82780c63e2997f37c438efe1a 100644 (file)
@@ -4,7 +4,7 @@
 # Checks that snapshots on standbys behave in a minimally reasonable
 # way.
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
index 14fd8bfc7fcb1418a6c7e74f674463121d412a3f..e702323a8f1b45d051ce61dd0b4cbbb99ba8fda1 100644 (file)
@@ -3,7 +3,7 @@
 
 # Test remove of temporary files after a crash.
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index a8cdf4efdd4861b5b4936b7f1c85ceb0847316ef..090711ca4b47655776e2a11098bdc3d77aa15f62 100644 (file)
@@ -3,7 +3,7 @@
 
 # Test for point-in-time recovery (PITR) with prepared transactions
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index d594332b18d19b2f82a2bc8dc29caa277c322af7..e9ab11895ff388f186307c25c5ad372670a33352 100644 (file)
@@ -3,7 +3,7 @@
 
 # Test for archive recovery of WAL generated with wal_level=minimal
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 91309030df9b449b158ac540032a8f0a51389f6c..65d8864327c4b3dcc1914a3a3cf25d5f039d2751 100644 (file)
@@ -7,7 +7,7 @@
 # archive, so the WAL files all have to be streamed.  Test that the cascading
 # standby can follow the new primary (promoted standby).
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 
index 6807a97f26d51385766f65347d457ae29c859c75..09c7e13da94710d67992617285aa4a9c192b5449 100644 (file)
@@ -3,7 +3,7 @@
 # Tests for already-propagated WAL segments ending in incomplete WAL records.
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use FindBin;
 use PostgreSQL::Test::Cluster;
index f2f4e77626fd3f601c0f9c65027dfeba6d3ab277..20508307b5bd575250d41e2913f5421cfa51172b 100644 (file)
@@ -1,6 +1,6 @@
 # Run the standard regression tests with streaming replication
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index bb29a2d378c58be7279baa11d9d929010e6ce5df..58390b6d796ecddd6aa97f780587d18c29be452c 100644 (file)
@@ -27,7 +27,7 @@
 # The actual checks are not sensitive to that.
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index f6368ab1d3c83a4373e89e6aed68b15096832442..e350a5e8aa01f15570bbc492592f3f633b241fb4 100644 (file)
@@ -4,7 +4,7 @@
 # invalid stats files, as well as restorting stats after "normal" restarts.
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 51495aebcd74c4a9cc2c51eb6a96d230ff83a0fc..db451d9d1b3551fa146faa93fc5535eef1c4b67f 100644 (file)
@@ -6,7 +6,7 @@
 # - discard stats after immediate / crash restarts
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 7cafe2fd86712cdc6e133a4e8854274a80fa4020..82ba7a7b1015c5f6537fb943f8628e9b84992a5f 100644 (file)
@@ -5,7 +5,7 @@
 # pg_stat_database_conflicts are populated correctly
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 3bc2db1a4f3d24d53e043d57d153f44f39500214..8a4cceacc2baf759877d9902cb477d644aff8f61 100644 (file)
@@ -1,5 +1,5 @@
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index af97ed9f70ad4abd1594556fe5b05fd79bfd00d6..64c370224c061762a81b08e7a9175d1742b777c5 100644 (file)
@@ -4,7 +4,7 @@
 # Test replay of tablespace/database creation/drop
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
index ed562bba25152e2836dd0f44d5f708d2a40f9f9c..d4d7500dd5afda024d470b9e7989f24ebe803e5c 100644 (file)
@@ -4,7 +4,7 @@
 # Test WAL replay for CREATE DATABASE .. STRATEGY WAL_LOG.
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 5d7c278d01a41f6a250bcb57c770ee31892839d9..2e7893ec4e04030cfec3e7da3f0a0251f3102a00 100644 (file)
@@ -4,7 +4,7 @@
 # recovery conflict and standby promotion.
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
index 2d5339d9d8d99ef0936fc98bddf4f136551f9cd6..53194978fcf9241e8d56bbe8ea6cd0ff1c6c6bf6 100644 (file)
@@ -5,7 +5,7 @@
 # truncated or dropped.
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use Test::More;
 
index 29b9bb6977c12c9bc0ab9c3d0ed4684ff172b40b..a6b23c3ba7c8106328543b3123598a9b64820d4d 100644 (file)
@@ -3,7 +3,7 @@
 # Test we handle interrupted DROP DATABASE correctly.
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 52ec4e88200bc2b119c07f44cd964bde16dd0548..f263aff5b384596b351d8666fd5e53956b97fdb8 100644 (file)
@@ -5,7 +5,7 @@
 # checkpoint.
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
index d2bf062bb23aef4c8e2ed0d8218772510bbf3fcd..285aab06838b14e794956f38ff598dc10fa49d27 100644 (file)
@@ -5,7 +5,7 @@
 # scenarios.
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index cfeea41e5b918ed51fe62878558c2f5401de4e32..5832b98ef42a18a04df75a47fd8cbf05bf2de1e3 100644 (file)
@@ -2,7 +2,7 @@
 
 use File::Copy;
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 die "wrong number of arguments" if @ARGV != 2;
 my ($source, $target) = @ARGV;
index d921f1dde9fa8bb0cc7a0f684ba454a5f3e19988..4f2864da935d9c4b96bd80612764c22908ca901b 100644 (file)
@@ -2,7 +2,7 @@
 # Copyright (c) 2021-2023, PostgreSQL Global Development Group
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use Config qw ( %Config );
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
@@ -708,6 +708,8 @@ if ($? == 0)
    # integer like how we do when grabbing the serial fails.
    if ($Config{ivsize} == 8)
    {
+       no warnings qw(portable);
+
        $serialno =~ s/^serial=//;
        $serialno =~ s/\s+//g;
        $serialno = hex($serialno);
index 91e771ec47d64177e4cdbf0d9f3d48a502ae84f4..807b211f9845f6fa9f05d14d36944ea98e91a7da 100644 (file)
@@ -4,7 +4,7 @@
 # Test SCRAM authentication and TLS channel binding types
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 5306aad8023d25ba786fbf91aea49c5f22dfbfd9..866fe5ad2c4499515dee1ace728284ea3e7df4f7 100644 (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;
index a762f43634ffc9e86a12073ef618dbb0517031d1..a2b44f851667d98dcbeb9e6484f494762bc8a136 100644 (file)
@@ -25,7 +25,7 @@ for a PostgreSQL cluster compiled against OpenSSL.
 package SSL::Backend::OpenSSL;
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use File::Basename;
 use File::Copy;
 
index 2c5c0552227e89271c2a87241740493a2eee6fbb..836e0989020051b206daa5602ae02d867059a92b 100644 (file)
@@ -64,7 +64,7 @@ specific infrastructure. Currently only OpenSSL is supported.
 package SSL::Server;
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index e49da00b29af5d2abf117c0b0c8ff44b42a6474e..16c7fb94ebe7d9672638709ff09ab45a5295c16d 100644 (file)
@@ -3,7 +3,7 @@
 
 # Basic logical replication test
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 40155ad5633a888acd3adcda0d31709f05f94a7e..e8f6044351d0c7519b96b0dd688d609a937921af 100644 (file)
@@ -4,7 +4,7 @@
 # This tests that more complex datatypes are replicated correctly
 # by logical replication
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 6e3591d486b5ffcb816dc447c05a7b3debd0dac8..e0c7b1051df2016c2a4e6760be978416a9912b19 100644 (file)
@@ -3,7 +3,7 @@
 
 # This test checks that constraints work on subscriber
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 11269708aa254d3a9e67cf9baca6fc639ad7db8d..6ecbc9b7291036ea4e79fde427ac2b3f7c9a9003 100644 (file)
@@ -3,7 +3,7 @@
 
 # Tests for logical replication table syncing
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index c9cece48c451491c52d01522e84edc10c364d0c0..4836a48ca4063dd1285cc31c1b1e78f0e90f560c 100644 (file)
@@ -3,7 +3,7 @@
 
 # Test replication between databases with different encodings
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 62a1bdcd15213ecac16db894db840c38da7e537d..90e81ab6704cca7fa4c24d04f581bd2b89b490a9 100644 (file)
@@ -3,7 +3,7 @@
 
 # Test logical replication behavior with heap rewrites
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 02e9dd61d53b830d2b76f9a2a288752f15812ce9..241c911ac76aa87c1e3f9f21e1708642987612b0 100644 (file)
@@ -3,7 +3,7 @@
 
 # Test some logical replication DDL behavior
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index ed676b73e56b48cebc88691e23a2060f2d9beae8..491352668ddfa88038b9b7df7927a8f779968c4c 100644 (file)
@@ -3,7 +3,7 @@
 
 # Test behavior with different schema on subscriber
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 798aad53c7381a65831aea66f84655cc6d5b9782..6e25b8fe908f9b4140ff1ce60009d0ecea0a9835 100644 (file)
@@ -3,7 +3,7 @@
 
 # Test materialized views behavior
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 9eeb518b5281cfe06aed908c03e650969a96182f..4d97402c8dd553ff1677692c82a1523afa770d06 100644 (file)
@@ -3,7 +3,7 @@
 
 # Test TRUNCATE
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 4f8518cf351de52937fdbc74a5e755d55f6693a8..bf54cebcd847d63b611c3372fa62627eace29989 100644 (file)
@@ -3,7 +3,7 @@
 
 # Test generated columns
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index dd66424be8c543768cc106976b26c04064658777..dc2adce8ddc7cc9e115bfc0030fbda80cf2a7261 100644 (file)
@@ -4,7 +4,7 @@
 # Test collations, in particular nondeterministic ones
 # (only works with ICU)
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 0f1a34235d0a1bf3aedb5159e36042c8fe2862d6..ce881f31bd0d822886ff7a69dfbae3733b2c09ca 100644 (file)
@@ -3,7 +3,7 @@
 
 # Test logical replication with partitioned tables
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 6abc899bd966fae1c6a61472013c65f0825420d6..4a04db7de20dd9df9756a5c8c3b4bae310dee0dd 100644 (file)
@@ -4,7 +4,7 @@
 # Binary mode logical replication test
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 986e879968c658110c87d9438ebe7388cfd7b3e6..6d2eb76d271787d1f348d52ace6f4dcb43ea2e3a 100644 (file)
@@ -3,7 +3,7 @@
 
 # Test streaming of simple large transaction
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 561855cb42cc8004f8a8c11561b2004ea007c50b..fe255fbb075ee15ada8f5096e99b4413131145c6 100644 (file)
@@ -3,7 +3,7 @@
 
 # Test streaming of transaction containing subtransactions
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 2fd4ede4027f8e81c8e57aa596a74ca866172ad4..176c033ac6196b3c30eab236d21cd78ecfde1c16 100644 (file)
@@ -6,7 +6,7 @@
 # This file is mainly to test the DDL/DML interaction of the publisher side,
 # so we didn't add a parallel apply version for the tests in this file.
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index e115216e7557e50f3d76cf29f843704f61123bcd..9f06217536285781c6c6bba57e77f0c7f1c98644 100644 (file)
@@ -3,7 +3,7 @@
 
 # Test streaming of transaction containing multiple subtransactions and rollbacks
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index cd26eee05a2eb68143f6cbd2d89f708a5413ca07..ebd17a4f9b7f1d450befed49935b429516f6589e 100644 (file)
@@ -7,7 +7,7 @@
 # This file is mainly to test the DDL/DML interaction of the publisher side,
 # so we didn't add a parallel apply version for the tests in this file.
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 6f31fe4d6f71d937df218821176136277c85b29e..001882d7cc41e52854fb4b8946bf7122209429e8 100644 (file)
@@ -3,7 +3,7 @@
 
 # Tests that logical decoding messages
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 9bcf46c7b359e8f1a5fc10d7d51d196017519344..cf71391318771320edb892548c82cab2ac01422a 100644 (file)
@@ -3,7 +3,7 @@
 
 # logical replication of 2PC test
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 75b1a62a743825c8bb2d827dbea3297dd0366006..76a0b4320d4c716cff1d27484750fc833a9f1888 100644 (file)
@@ -8,7 +8,7 @@
 # Two-phase and parallel apply will be tested in 023_twophase_stream, so we
 # didn't add a parallel apply version for the tests in this file.
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 22948e6424841e929e520f44458e70ab1bbd5711..e440200ae3a8a1fa9374b65d2a9f1de5be9b1f3f 100644 (file)
@@ -3,7 +3,7 @@
 
 # Test logical replication of 2PC with streaming.
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index cdb14a919a8bfedac7d9776bd991944ae908fd00..b54a5ce3402f24bf6074c56127b1c444de109920 100644 (file)
@@ -3,7 +3,7 @@
 
 # This test checks behaviour of ALTER SUBSCRIPTION ... ADD/DROP PUBLICATION
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 97405cd8d555b1f0f76255595654a74f80d392bf..30111f2c3248807333eb88968a50bb7a7e53a866 100644 (file)
@@ -3,7 +3,7 @@
 
 # Logical replication tests for schema publications
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index f31b25b4afa75d92b4c318bc8be3cd6109e5ed3c..a7777c0de86b0c969d74b42df162b26b8346d997 100644 (file)
@@ -3,7 +3,7 @@
 
 # Tests for subscription stats.
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 642baa5d7c9b8fb012b03bf7965dad07cb4f9251..9acd616ba2b1c3890544889b7d384ce476a5f025 100644 (file)
@@ -3,7 +3,7 @@
 
 # Test that logical replication respects permissions
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use Test::More;
 
index 1510149f97ba89a34a04f402321963f46b675fdf..638ea12989f2446e05a87efa4be3d87ba92427f7 100644 (file)
@@ -2,7 +2,7 @@
 
 # Test logical replication behavior with row filtering
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index fcab7386feec253107f04ac1f3d94674190e86f1..d874e83896138de6f99383ae804f8fc5003c7079 100644 (file)
@@ -3,7 +3,7 @@
 
 # Tests for disable_on_error and SKIP transaction features.
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 9ca1fa25d8f3a835dc864ad077ff4db08ec24d0d..fa33f997e8ff2e90b67a02f4b770dfd073da8f1a 100644 (file)
@@ -4,7 +4,7 @@
 # Test the CREATE SUBSCRIPTION 'origin' parameter and its interaction with
 # 'copy_data' parameter.
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index 7bf83e01f463ebe70f210c5a0ba50d375196b3b5..90c321df3c5b295c32c90cf74d419e0f3385fe5a 100644 (file)
@@ -2,7 +2,7 @@
 
 # Test partial-column publication of tables
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index d1f65d05e5eb5c10a3706ef2a6129309aa90765d..f085e3a560c03e341e8731dcb4b751d79c10c474 100644 (file)
@@ -2,7 +2,7 @@
 
 # Test logical replication behavior with subscriber using available index
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index f4083202e5313e9e31999397dbe16f7dd874f34e..3e3ee875e6c22ab05806f5acee4718283114b66a 100644 (file)
@@ -3,7 +3,7 @@
 
 # Test that logical replication respects permissions
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use Test::More;
 
index d64be621e81ba0ea6619818ba5b09f7e325f507e..f061f4d68dd6b9f995b6f0f7ebcce4d3dae08846 100644 (file)
@@ -3,7 +3,7 @@
 
 # Tests for various bugs found over time
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use PostgreSQL::Test::Cluster;
 use PostgreSQL::Test::Utils;
 use Test::More;
index e54905a3ef8581f71ebc8d661f7e270d4afe01aa..0587107962f1aa8fffd84b9b1c41d47879057395 100644 (file)
@@ -30,7 +30,7 @@
 package PerfectHash;
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 
 # At runtime, we'll compute two simple hash functions of the input key,
index 18f14ad1272919097c7a0a37521ae468861c1eb9..2f079a01a748fd3417c334a038e15946009c5823 100755 (executable)
@@ -22,7 +22,7 @@
 #################################################################
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 my $debug = 0;
 
index b0d4360c7483ab35fdc21c74b0360903c77c75bd..a3eb96b7fdb48478a9fbf6b29b4309b83fe260b8 100644 (file)
@@ -1,5 +1,5 @@
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 our $config;
 
index 30c38c757b2395581493896f0bc8304a125d920f..4263b5a3eb6aa14ed350e477a6f30d818b304922 100755 (executable)
@@ -10,7 +10,7 @@
 #################################################################
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use File::Find;
 use File::Basename;
index d88e68b8b6ebb8658cc1c1208023cb0d127b8247..c9b0517ed4f4e1f0dde707298acc4baea10985b9 100644 (file)
@@ -16,7 +16,7 @@
 #----------------------------------------------------------------------
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 # Get command line argument.
 usage() if $#ARGV != 0;
index ed60abe9562838f801c1cd0f087de30655c16c14..08f839ed07538eb474525f96facb337594c8e354 100644 (file)
@@ -1,5 +1,5 @@
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use Getopt::Long;
 
 my $format;
index 97a9ff1b301241c4d226f91cac0898e31042d28a..2ad9c9a4a34b475d940f417e6ecee8987142d256 100644 (file)
@@ -29,7 +29,7 @@
 #----------------------------------------------------------------------
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use Getopt::Long;
 
 use FindBin;
index 39e1b1fe1550ebbc9ecc07aca9d7c76cdaa57d15..f3c225d556331b62f0d00564496374a013726f01 100755 (executable)
@@ -50,7 +50,7 @@
 
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 require Time::Local;
 require Getopt::Long;
 require IPC::Open2;
index 45b4e73bff1acd281e0939f950d39bb6ba805689..a0ff7f0e2b0a6f0c5a99070c3d40ea5e3b3c0642 100755 (executable)
@@ -23,7 +23,7 @@
 #----------------------------------------------------------------------
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 for my $include_file (@ARGV)
 {
index 8749fd0dd7a5969c32d5536b8bf218e5621f2cfa..efdd67f67c2d18a6536a45446f001b013d58cda7 100644 (file)
@@ -2,7 +2,7 @@
 # Copyright (c) 2021-2023, PostgreSQL Global Development Group
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 use List::Util qw(min);
 use Getopt::Long;
 
index fef5c86ca47f39538efca59ef3723daccdf42d60..fb772cb89b026e86e10ede63b1d14be0e569728f 100644 (file)
@@ -4,7 +4,7 @@
 # Copyright (c) 2017-2023, PostgreSQL Global Development Group
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use Cwd qw(getcwd);
 use File::Copy "cp";
index a9fe79ebe585492943ab07fc66401f3dc8b77e7f..68aa5d178e88300811f5956f456b273c5dd0d7a6 100755 (executable)
@@ -23,7 +23,7 @@
 #
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use Cwd;
 use File::Basename;
index 37f38eefc3e3f7d85588f93a8ccb0b1deda13102..2d454fc92bd2aa2f61a4eeb8a32e0cbd68042266 100755 (executable)
@@ -3,7 +3,7 @@
 # Copyright (c) 2021-2023, PostgreSQL Global Development Group
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use Cwd qw(abs_path getcwd);
 use File::Find;
index 1f0074ded5ea60c968ae9743b2c2acc317b1ed9a..ad0f233758bad5c3d1a3176076f92b13ade82097 100755 (executable)
@@ -21,7 +21,7 @@
 #
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 # Major version is hard-wired into the script.  We update it when we branch
 # a new development version.
index 457462df274cdaaf26264682f00c11a8b8a64939..1efbc5a543935a2ebdc4ba65e45a07af82fc9057 100755 (executable)
@@ -16,7 +16,7 @@
 #
 
 use strict;
-use warnings;
+use warnings FATAL => 'all';
 
 use Config;