diff --git a/contrib/amcheck/t/001_verify_heapam.pl b/contrib/amcheck/t/001_verify_heapam.pl index bf47c2ed37..f86a932bd0 100644 --- a/contrib/amcheck/t/001_verify_heapam.pl +++ b/contrib/amcheck/t/001_verify_heapam.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; diff --git a/contrib/auto_explain/t/001_auto_explain.pl b/contrib/auto_explain/t/001_auto_explain.pl index 7968be963b..9c4f1d0571 100644 --- a/contrib/auto_explain/t/001_auto_explain.pl +++ b/contrib/auto_explain/t/001_auto_explain.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; diff --git a/contrib/bloom/t/001_wal.pl b/contrib/bloom/t/001_wal.pl index 7f6398f571..9310af5c3d 100644 --- a/contrib/bloom/t/001_wal.pl +++ b/contrib/bloom/t/001_wal.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Test generic xlog record work for bloom index replication. use strict; use warnings; diff --git a/contrib/intarray/bench/bench.pl b/contrib/intarray/bench/bench.pl index daf3febc80..6a618cbe9c 100755 --- a/contrib/intarray/bench/bench.pl +++ b/contrib/intarray/bench/bench.pl @@ -1,5 +1,8 @@ #!/usr/bin/perl + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; diff --git a/contrib/intarray/bench/create_test.pl b/contrib/intarray/bench/create_test.pl index 3f2a6e4da2..4df46d05d0 100755 --- a/contrib/intarray/bench/create_test.pl +++ b/contrib/intarray/bench/create_test.pl @@ -1,5 +1,8 @@ #!/usr/bin/perl + +# Copyright (c) 2021, PostgreSQL Global Development Group + # contrib/intarray/bench/create_test.pl use strict; diff --git a/contrib/oid2name/t/001_basic.pl b/contrib/oid2name/t/001_basic.pl index fa2c5743f6..8f0d4349a0 100644 --- a/contrib/oid2name/t/001_basic.pl +++ b/contrib/oid2name/t/001_basic.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; diff --git a/contrib/seg/seg-validate.pl b/contrib/seg/seg-validate.pl index 9fa0887e71..bdd8e1ac8b 100755 --- a/contrib/seg/seg-validate.pl +++ b/contrib/seg/seg-validate.pl @@ -1,5 +1,8 @@ #!/usr/bin/perl + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; diff --git a/contrib/seg/sort-segments.pl b/contrib/seg/sort-segments.pl index 2e3c9734a9..370da29b2c 100755 --- a/contrib/seg/sort-segments.pl +++ b/contrib/seg/sort-segments.pl @@ -1,5 +1,8 @@ #!/usr/bin/perl + +# Copyright (c) 2021, PostgreSQL Global Development Group + # this script will sort any table with the segment data type in its last column use strict; diff --git a/contrib/test_decoding/t/001_repl_stats.pl b/contrib/test_decoding/t/001_repl_stats.pl index 3ab0e80722..2dc5ef5f07 100644 --- a/contrib/test_decoding/t/001_repl_stats.pl +++ b/contrib/test_decoding/t/001_repl_stats.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Test replication statistics data in pg_stat_replication_slots is sane after # drop replication slot and restart. use strict; diff --git a/contrib/vacuumlo/t/001_basic.pl b/contrib/vacuumlo/t/001_basic.pl index 2bfb6ce17d..2121f454e0 100644 --- a/contrib/vacuumlo/t/001_basic.pl +++ b/contrib/vacuumlo/t/001_basic.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; diff --git a/src/bin/initdb/t/001_initdb.pl b/src/bin/initdb/t/001_initdb.pl index 8387b945d3..635ff79b47 100644 --- a/src/bin/initdb/t/001_initdb.pl +++ b/src/bin/initdb/t/001_initdb.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # To test successful data directory creation with an additional feature, first # try to elaborate the "successful creation" test instead of adding a test. # Successful initdb consumes much time and I/O. diff --git a/src/bin/pg_amcheck/t/001_basic.pl b/src/bin/pg_amcheck/t/001_basic.pl index dfa0ae9e06..6f60e3ec1f 100644 --- a/src/bin/pg_amcheck/t/001_basic.pl +++ b/src/bin/pg_amcheck/t/001_basic.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; diff --git a/src/bin/pg_amcheck/t/002_nonesuch.pl b/src/bin/pg_amcheck/t/002_nonesuch.pl index afff146e24..7c446064ab 100644 --- a/src/bin/pg_amcheck/t/002_nonesuch.pl +++ b/src/bin/pg_amcheck/t/002_nonesuch.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; diff --git a/src/bin/pg_amcheck/t/003_check.pl b/src/bin/pg_amcheck/t/003_check.pl index 2da9631da4..659fd15983 100644 --- a/src/bin/pg_amcheck/t/003_check.pl +++ b/src/bin/pg_amcheck/t/003_check.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; diff --git a/src/bin/pg_amcheck/t/004_verify_heapam.pl b/src/bin/pg_amcheck/t/004_verify_heapam.pl index b842f7bc6d..fa4059172e 100644 --- a/src/bin/pg_amcheck/t/004_verify_heapam.pl +++ b/src/bin/pg_amcheck/t/004_verify_heapam.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; diff --git a/src/bin/pg_amcheck/t/005_opclass_damage.pl b/src/bin/pg_amcheck/t/005_opclass_damage.pl index eba8ea9cae..062015aa00 100644 --- a/src/bin/pg_amcheck/t/005_opclass_damage.pl +++ b/src/bin/pg_amcheck/t/005_opclass_damage.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # This regression test checks the behavior of the btree validation in the # presence of breaking sort order changes. # diff --git a/src/bin/pg_archivecleanup/t/010_pg_archivecleanup.pl b/src/bin/pg_archivecleanup/t/010_pg_archivecleanup.pl index 22782d3042..8134c2a62e 100644 --- a/src/bin/pg_archivecleanup/t/010_pg_archivecleanup.pl +++ b/src/bin/pg_archivecleanup/t/010_pg_archivecleanup.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; use TestLib; diff --git a/src/bin/pg_basebackup/t/010_pg_basebackup.pl b/src/bin/pg_basebackup/t/010_pg_basebackup.pl index a9dfe88aaa..28949c9caf 100644 --- a/src/bin/pg_basebackup/t/010_pg_basebackup.pl +++ b/src/bin/pg_basebackup/t/010_pg_basebackup.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; use Cwd; diff --git a/src/bin/pg_basebackup/t/020_pg_receivewal.pl b/src/bin/pg_basebackup/t/020_pg_receivewal.pl index 6e2f051187..a547c97ef1 100644 --- a/src/bin/pg_basebackup/t/020_pg_receivewal.pl +++ b/src/bin/pg_basebackup/t/020_pg_receivewal.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; use TestLib; diff --git a/src/bin/pg_basebackup/t/030_pg_recvlogical.pl b/src/bin/pg_basebackup/t/030_pg_recvlogical.pl index 99154bcf39..53f41814b0 100644 --- a/src/bin/pg_basebackup/t/030_pg_recvlogical.pl +++ b/src/bin/pg_basebackup/t/030_pg_recvlogical.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; use TestLib; diff --git a/src/bin/pg_checksums/t/001_basic.pl b/src/bin/pg_checksums/t/001_basic.pl index 4334c80606..62e78a5043 100644 --- a/src/bin/pg_checksums/t/001_basic.pl +++ b/src/bin/pg_checksums/t/001_basic.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; use TestLib; diff --git a/src/bin/pg_checksums/t/002_actions.pl b/src/bin/pg_checksums/t/002_actions.pl index d52bbac5fa..af88b94795 100644 --- a/src/bin/pg_checksums/t/002_actions.pl +++ b/src/bin/pg_checksums/t/002_actions.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Do basic sanity checks supported by pg_checksums using # an initialized cluster. diff --git a/src/bin/pg_config/t/001_pg_config.pl b/src/bin/pg_config/t/001_pg_config.pl index ccca190bb1..d8829faea6 100644 --- a/src/bin/pg_config/t/001_pg_config.pl +++ b/src/bin/pg_config/t/001_pg_config.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; use TestLib; diff --git a/src/bin/pg_controldata/t/001_pg_controldata.pl b/src/bin/pg_controldata/t/001_pg_controldata.pl index 3b63ad230f..c3f3aca095 100644 --- a/src/bin/pg_controldata/t/001_pg_controldata.pl +++ b/src/bin/pg_controldata/t/001_pg_controldata.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; use PostgresNode; diff --git a/src/bin/pg_ctl/t/001_start_stop.pl b/src/bin/pg_ctl/t/001_start_stop.pl index b1e419f02e..4bfc23b93d 100644 --- a/src/bin/pg_ctl/t/001_start_stop.pl +++ b/src/bin/pg_ctl/t/001_start_stop.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; diff --git a/src/bin/pg_ctl/t/002_status.pl b/src/bin/pg_ctl/t/002_status.pl index 606d10560f..e69cb80134 100644 --- a/src/bin/pg_ctl/t/002_status.pl +++ b/src/bin/pg_ctl/t/002_status.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; diff --git a/src/bin/pg_ctl/t/003_promote.pl b/src/bin/pg_ctl/t/003_promote.pl index ecb294b490..2d7e2fd5f3 100644 --- a/src/bin/pg_ctl/t/003_promote.pl +++ b/src/bin/pg_ctl/t/003_promote.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; diff --git a/src/bin/pg_ctl/t/004_logrotate.pl b/src/bin/pg_ctl/t/004_logrotate.pl index 2f381e556e..9a0492ae63 100644 --- a/src/bin/pg_ctl/t/004_logrotate.pl +++ b/src/bin/pg_ctl/t/004_logrotate.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; diff --git a/src/bin/pg_dump/t/001_basic.pl b/src/bin/pg_dump/t/001_basic.pl index 083fb3ad08..9f12ca6c51 100644 --- a/src/bin/pg_dump/t/001_basic.pl +++ b/src/bin/pg_dump/t/001_basic.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; diff --git a/src/bin/pg_dump/t/002_pg_dump.pl b/src/bin/pg_dump/t/002_pg_dump.pl index 86113df29c..c1bbf3c7d4 100644 --- a/src/bin/pg_dump/t/002_pg_dump.pl +++ b/src/bin/pg_dump/t/002_pg_dump.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; diff --git a/src/bin/pg_dump/t/003_pg_dump_with_server.pl b/src/bin/pg_dump/t/003_pg_dump_with_server.pl index dd9a60a2c9..f9fea9ddcf 100644 --- a/src/bin/pg_dump/t/003_pg_dump_with_server.pl +++ b/src/bin/pg_dump/t/003_pg_dump_with_server.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; diff --git a/src/bin/pg_dump/t/010_dump_connstr.pl b/src/bin/pg_dump/t/010_dump_connstr.pl index 5497e46056..9a61eea060 100644 --- a/src/bin/pg_dump/t/010_dump_connstr.pl +++ b/src/bin/pg_dump/t/010_dump_connstr.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; diff --git a/src/bin/pg_resetwal/t/001_basic.pl b/src/bin/pg_resetwal/t/001_basic.pl index ca93ddbda0..9c08ade79f 100644 --- a/src/bin/pg_resetwal/t/001_basic.pl +++ b/src/bin/pg_resetwal/t/001_basic.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; diff --git a/src/bin/pg_resetwal/t/002_corrupted.pl b/src/bin/pg_resetwal/t/002_corrupted.pl index f9940d7fc5..954790c28c 100644 --- a/src/bin/pg_resetwal/t/002_corrupted.pl +++ b/src/bin/pg_resetwal/t/002_corrupted.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Tests for handling a corrupted pg_control use strict; diff --git a/src/bin/pg_rewind/t/001_basic.pl b/src/bin/pg_rewind/t/001_basic.pl index 93fa09467b..15a6f25ade 100644 --- a/src/bin/pg_rewind/t/001_basic.pl +++ b/src/bin/pg_rewind/t/001_basic.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; use TestLib; diff --git a/src/bin/pg_rewind/t/002_databases.pl b/src/bin/pg_rewind/t/002_databases.pl index 5506fe425b..72c4b225a7 100644 --- a/src/bin/pg_rewind/t/002_databases.pl +++ b/src/bin/pg_rewind/t/002_databases.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; use TestLib; diff --git a/src/bin/pg_rewind/t/003_extrafiles.pl b/src/bin/pg_rewind/t/003_extrafiles.pl index 5b953b11ae..4fc500d4b4 100644 --- a/src/bin/pg_rewind/t/003_extrafiles.pl +++ b/src/bin/pg_rewind/t/003_extrafiles.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Test how pg_rewind reacts to extra files and directories in the data dirs. use strict; diff --git a/src/bin/pg_rewind/t/004_pg_xlog_symlink.pl b/src/bin/pg_rewind/t/004_pg_xlog_symlink.pl index fff4758508..8fb0ab3ead 100644 --- a/src/bin/pg_rewind/t/004_pg_xlog_symlink.pl +++ b/src/bin/pg_rewind/t/004_pg_xlog_symlink.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # # Test pg_rewind when the target's pg_wal directory is a symlink. # diff --git a/src/bin/pg_rewind/t/005_same_timeline.pl b/src/bin/pg_rewind/t/005_same_timeline.pl index 8706d5aed5..efe1d4c77f 100644 --- a/src/bin/pg_rewind/t/005_same_timeline.pl +++ b/src/bin/pg_rewind/t/005_same_timeline.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # # Test that running pg_rewind with the source and target clusters # on the same timeline runs successfully. diff --git a/src/bin/pg_rewind/t/006_options.pl b/src/bin/pg_rewind/t/006_options.pl index 1515696e66..81793899e5 100644 --- a/src/bin/pg_rewind/t/006_options.pl +++ b/src/bin/pg_rewind/t/006_options.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # # Test checking options of pg_rewind. # diff --git a/src/bin/pg_rewind/t/007_standby_source.pl b/src/bin/pg_rewind/t/007_standby_source.pl index 7a597bf12b..44319a8204 100644 --- a/src/bin/pg_rewind/t/007_standby_source.pl +++ b/src/bin/pg_rewind/t/007_standby_source.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # # Test using a standby server as the source. # diff --git a/src/bin/pg_rewind/t/008_min_recovery_point.pl b/src/bin/pg_rewind/t/008_min_recovery_point.pl index e3d94b3346..7d9362cc22 100644 --- a/src/bin/pg_rewind/t/008_min_recovery_point.pl +++ b/src/bin/pg_rewind/t/008_min_recovery_point.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # # Test situation where a target data directory contains # WAL records beyond both the last checkpoint and the divergence diff --git a/src/bin/pg_rewind/t/RewindTest.pm b/src/bin/pg_rewind/t/RewindTest.pm index 41ed7d4b3b..55a350af9d 100644 --- a/src/bin/pg_rewind/t/RewindTest.pm +++ b/src/bin/pg_rewind/t/RewindTest.pm @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + package RewindTest; # Test driver for pg_rewind. Each test consists of a cycle where a new cluster diff --git a/src/bin/pg_test_fsync/t/001_basic.pl b/src/bin/pg_test_fsync/t/001_basic.pl index fe9c295c49..c0d0effd92 100644 --- a/src/bin/pg_test_fsync/t/001_basic.pl +++ b/src/bin/pg_test_fsync/t/001_basic.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; diff --git a/src/bin/pg_test_timing/t/001_basic.pl b/src/bin/pg_test_timing/t/001_basic.pl index 8bad19c7fa..72e5a42b6f 100644 --- a/src/bin/pg_test_timing/t/001_basic.pl +++ b/src/bin/pg_test_timing/t/001_basic.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; diff --git a/src/bin/pg_verifybackup/t/001_basic.pl b/src/bin/pg_verifybackup/t/001_basic.pl index 0c35062dc0..4ad1c3f0a9 100644 --- a/src/bin/pg_verifybackup/t/001_basic.pl +++ b/src/bin/pg_verifybackup/t/001_basic.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; use TestLib; diff --git a/src/bin/pg_verifybackup/t/002_algorithm.pl b/src/bin/pg_verifybackup/t/002_algorithm.pl index 6c11883266..c2c4c3176a 100644 --- a/src/bin/pg_verifybackup/t/002_algorithm.pl +++ b/src/bin/pg_verifybackup/t/002_algorithm.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Verify that we can take and verify backups with various checksum types. use strict; diff --git a/src/bin/pg_verifybackup/t/003_corruption.pl b/src/bin/pg_verifybackup/t/003_corruption.pl index 0c0691ba2b..682b3b857e 100644 --- a/src/bin/pg_verifybackup/t/003_corruption.pl +++ b/src/bin/pg_verifybackup/t/003_corruption.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Verify that various forms of corruption are detected by pg_verifybackup. use strict; diff --git a/src/bin/pg_verifybackup/t/004_options.pl b/src/bin/pg_verifybackup/t/004_options.pl index 1bd0aab545..3f6e84c221 100644 --- a/src/bin/pg_verifybackup/t/004_options.pl +++ b/src/bin/pg_verifybackup/t/004_options.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Verify the behavior of assorted pg_verifybackup options. use strict; diff --git a/src/bin/pg_verifybackup/t/005_bad_manifest.pl b/src/bin/pg_verifybackup/t/005_bad_manifest.pl index 5bd5556038..9f8a100a71 100644 --- a/src/bin/pg_verifybackup/t/005_bad_manifest.pl +++ b/src/bin/pg_verifybackup/t/005_bad_manifest.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Test the behavior of pg_verifybackup when the backup manifest has # problems. diff --git a/src/bin/pg_verifybackup/t/006_encoding.pl b/src/bin/pg_verifybackup/t/006_encoding.pl index 35b854a78e..a821d52a6a 100644 --- a/src/bin/pg_verifybackup/t/006_encoding.pl +++ b/src/bin/pg_verifybackup/t/006_encoding.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Verify that pg_verifybackup handles hex-encoded filenames correctly. use strict; diff --git a/src/bin/pg_verifybackup/t/007_wal.pl b/src/bin/pg_verifybackup/t/007_wal.pl index 23a4f8bbd8..28837b8503 100644 --- a/src/bin/pg_verifybackup/t/007_wal.pl +++ b/src/bin/pg_verifybackup/t/007_wal.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Test pg_verifybackup's WAL verification. use strict; diff --git a/src/bin/pg_waldump/t/001_basic.pl b/src/bin/pg_waldump/t/001_basic.pl index 5af0ce94fb..fb2f807dc3 100644 --- a/src/bin/pg_waldump/t/001_basic.pl +++ b/src/bin/pg_waldump/t/001_basic.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; use TestLib; diff --git a/src/bin/pgbench/t/001_pgbench_with_server.pl b/src/bin/pgbench/t/001_pgbench_with_server.pl index c2482dea17..e1496bb213 100644 --- a/src/bin/pgbench/t/001_pgbench_with_server.pl +++ b/src/bin/pgbench/t/001_pgbench_with_server.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; diff --git a/src/bin/pgbench/t/002_pgbench_no_server.pl b/src/bin/pgbench/t/002_pgbench_no_server.pl index 4027e68dfa..9023fac52d 100644 --- a/src/bin/pgbench/t/002_pgbench_no_server.pl +++ b/src/bin/pgbench/t/002_pgbench_no_server.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # # pgbench tests which do not need a server # diff --git a/src/bin/psql/t/010_tab_completion.pl b/src/bin/psql/t/010_tab_completion.pl index c27f216d39..3c58d50118 100644 --- a/src/bin/psql/t/010_tab_completion.pl +++ b/src/bin/psql/t/010_tab_completion.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; diff --git a/src/bin/scripts/t/010_clusterdb.pl b/src/bin/scripts/t/010_clusterdb.pl index ba093fa3a7..6d483be143 100644 --- a/src/bin/scripts/t/010_clusterdb.pl +++ b/src/bin/scripts/t/010_clusterdb.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; diff --git a/src/bin/scripts/t/011_clusterdb_all.pl b/src/bin/scripts/t/011_clusterdb_all.pl index efd541bc4d..c7e8514fb6 100644 --- a/src/bin/scripts/t/011_clusterdb_all.pl +++ b/src/bin/scripts/t/011_clusterdb_all.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; diff --git a/src/bin/scripts/t/020_createdb.pl b/src/bin/scripts/t/020_createdb.pl index 983dbb1d37..7261ebb2ef 100644 --- a/src/bin/scripts/t/020_createdb.pl +++ b/src/bin/scripts/t/020_createdb.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; diff --git a/src/bin/scripts/t/040_createuser.pl b/src/bin/scripts/t/040_createuser.pl index 916d925947..8fdd32d77b 100644 --- a/src/bin/scripts/t/040_createuser.pl +++ b/src/bin/scripts/t/040_createuser.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; diff --git a/src/bin/scripts/t/050_dropdb.pl b/src/bin/scripts/t/050_dropdb.pl index c51babe093..646cb4e82f 100644 --- a/src/bin/scripts/t/050_dropdb.pl +++ b/src/bin/scripts/t/050_dropdb.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; diff --git a/src/bin/scripts/t/070_dropuser.pl b/src/bin/scripts/t/070_dropuser.pl index 2e858c595b..cbcb09b0ad 100644 --- a/src/bin/scripts/t/070_dropuser.pl +++ b/src/bin/scripts/t/070_dropuser.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; diff --git a/src/bin/scripts/t/080_pg_isready.pl b/src/bin/scripts/t/080_pg_isready.pl index 6da89e1b04..e2e39ea2d4 100644 --- a/src/bin/scripts/t/080_pg_isready.pl +++ b/src/bin/scripts/t/080_pg_isready.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; diff --git a/src/bin/scripts/t/090_reindexdb.pl b/src/bin/scripts/t/090_reindexdb.pl index 159b637230..af5bdf352c 100644 --- a/src/bin/scripts/t/090_reindexdb.pl +++ b/src/bin/scripts/t/090_reindexdb.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; diff --git a/src/bin/scripts/t/091_reindexdb_all.pl b/src/bin/scripts/t/091_reindexdb_all.pl index 8e6041460c..299b198d15 100644 --- a/src/bin/scripts/t/091_reindexdb_all.pl +++ b/src/bin/scripts/t/091_reindexdb_all.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; diff --git a/src/bin/scripts/t/100_vacuumdb.pl b/src/bin/scripts/t/100_vacuumdb.pl index 99ec8bebde..0addc97bf8 100644 --- a/src/bin/scripts/t/100_vacuumdb.pl +++ b/src/bin/scripts/t/100_vacuumdb.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; diff --git a/src/bin/scripts/t/101_vacuumdb_all.pl b/src/bin/scripts/t/101_vacuumdb_all.pl index 43212587e5..504f252748 100644 --- a/src/bin/scripts/t/101_vacuumdb_all.pl +++ b/src/bin/scripts/t/101_vacuumdb_all.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; diff --git a/src/bin/scripts/t/102_vacuumdb_stages.pl b/src/bin/scripts/t/102_vacuumdb_stages.pl index 17a7fc720d..155c77edd9 100644 --- a/src/bin/scripts/t/102_vacuumdb_stages.pl +++ b/src/bin/scripts/t/102_vacuumdb_stages.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; diff --git a/src/bin/scripts/t/200_connstr.pl b/src/bin/scripts/t/200_connstr.pl index ee2523d085..b1ceab73bb 100644 --- a/src/bin/scripts/t/200_connstr.pl +++ b/src/bin/scripts/t/200_connstr.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; diff --git a/src/interfaces/libpq/test/regress.pl b/src/interfaces/libpq/test/regress.pl index 54db4f1abf..cc1db485f4 100644 --- a/src/interfaces/libpq/test/regress.pl +++ b/src/interfaces/libpq/test/regress.pl @@ -1,5 +1,8 @@ #!/usr/bin/perl + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; diff --git a/src/pl/plperl/plc_perlboot.pl b/src/pl/plperl/plc_perlboot.pl index ee1b9bf463..028c4cea6d 100644 --- a/src/pl/plperl/plc_perlboot.pl +++ b/src/pl/plperl/plc_perlboot.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # src/pl/plperl/plc_perlboot.pl use strict; diff --git a/src/pl/plperl/plc_trusted.pl b/src/pl/plperl/plc_trusted.pl index dea3727682..2ca71e6e12 100644 --- a/src/pl/plperl/plc_trusted.pl +++ b/src/pl/plperl/plc_trusted.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # src/pl/plperl/plc_trusted.pl #<<< protect next line from perltidy so perlcritic annotation works diff --git a/src/pl/plperl/plperl_opmask.pl b/src/pl/plperl/plperl_opmask.pl index ee18e91528..7ad315f1fb 100644 --- a/src/pl/plperl/plperl_opmask.pl +++ b/src/pl/plperl/plperl_opmask.pl @@ -1,5 +1,8 @@ #!perl + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; diff --git a/src/pl/plperl/text2macro.pl b/src/pl/plperl/text2macro.pl index 52fcbe1be1..a3e307b161 100644 --- a/src/pl/plperl/text2macro.pl +++ b/src/pl/plperl/text2macro.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # src/pl/plperl/text2macro.pl =head1 NAME diff --git a/src/test/authentication/t/001_password.pl b/src/test/authentication/t/001_password.pl index 150b226c0e..17d686e702 100644 --- a/src/test/authentication/t/001_password.pl +++ b/src/test/authentication/t/001_password.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Set of tests for authentication and pg_hba.conf. The following password # methods are checked through this test: # - Plain diff --git a/src/test/authentication/t/002_saslprep.pl b/src/test/authentication/t/002_saslprep.pl index aa164b2bd9..f080a0ccba 100644 --- a/src/test/authentication/t/002_saslprep.pl +++ b/src/test/authentication/t/002_saslprep.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Test password normalization in SCRAM. # # This test can only run with Unix-domain sockets. diff --git a/src/test/kerberos/t/001_auth.pl b/src/test/kerberos/t/001_auth.pl index 26c2c7077b..0333706438 100644 --- a/src/test/kerberos/t/001_auth.pl +++ b/src/test/kerberos/t/001_auth.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Sets up a KDC and then runs a variety of tests to make sure that the # GSSAPI/Kerberos authentication and encryption are working properly, # that the options in pg_hba.conf and pg_ident.conf are handled correctly, diff --git a/src/test/ldap/t/001_auth.pl b/src/test/ldap/t/001_auth.pl index ec4721234b..0ae14e4c85 100644 --- a/src/test/ldap/t/001_auth.pl +++ b/src/test/ldap/t/001_auth.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; use TestLib; diff --git a/src/test/locale/sort-test.pl b/src/test/locale/sort-test.pl index b61968b7e0..a2a17e7f34 100755 --- a/src/test/locale/sort-test.pl +++ b/src/test/locale/sort-test.pl @@ -1,5 +1,8 @@ #! /usr/bin/perl + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; use locale; diff --git a/src/test/modules/brin/t/01_workitems.pl b/src/test/modules/brin/t/01_workitems.pl index 534ab63ab2..a4f603a9d5 100644 --- a/src/test/modules/brin/t/01_workitems.pl +++ b/src/test/modules/brin/t/01_workitems.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Verify that work items work correctly use strict; diff --git a/src/test/modules/commit_ts/t/001_base.pl b/src/test/modules/commit_ts/t/001_base.pl index f8d5d84cc5..dd41936658 100644 --- a/src/test/modules/commit_ts/t/001_base.pl +++ b/src/test/modules/commit_ts/t/001_base.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Single-node test: value can be set, and is still present after recovery use strict; diff --git a/src/test/modules/commit_ts/t/002_standby.pl b/src/test/modules/commit_ts/t/002_standby.pl index 872efb2e8e..24446bb384 100644 --- a/src/test/modules/commit_ts/t/002_standby.pl +++ b/src/test/modules/commit_ts/t/002_standby.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Test simple scenario involving a standby use strict; diff --git a/src/test/modules/commit_ts/t/003_standby_2.pl b/src/test/modules/commit_ts/t/003_standby_2.pl index 36ab829dfd..1d57ecedae 100644 --- a/src/test/modules/commit_ts/t/003_standby_2.pl +++ b/src/test/modules/commit_ts/t/003_standby_2.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Test primary/standby scenario where the track_commit_timestamp GUC is # repeatedly toggled on and off. use strict; diff --git a/src/test/modules/commit_ts/t/004_restart.pl b/src/test/modules/commit_ts/t/004_restart.pl index 4e6ae776b9..bc9931944f 100644 --- a/src/test/modules/commit_ts/t/004_restart.pl +++ b/src/test/modules/commit_ts/t/004_restart.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Testing of commit timestamps preservation across restarts use strict; use warnings; diff --git a/src/test/modules/libpq_pipeline/t/001_libpq_pipeline.pl b/src/test/modules/libpq_pipeline/t/001_libpq_pipeline.pl index 4819dbd849..99a41150a2 100644 --- a/src/test/modules/libpq_pipeline/t/001_libpq_pipeline.pl +++ b/src/test/modules/libpq_pipeline/t/001_libpq_pipeline.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; diff --git a/src/test/modules/ssl_passphrase_callback/t/001_testfunc.pl b/src/test/modules/ssl_passphrase_callback/t/001_testfunc.pl index a2bed5336c..1e2455e82f 100644 --- a/src/test/modules/ssl_passphrase_callback/t/001_testfunc.pl +++ b/src/test/modules/ssl_passphrase_callback/t/001_testfunc.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; diff --git a/src/test/modules/test_misc/t/001_constraint_validation.pl b/src/test/modules/test_misc/t/001_constraint_validation.pl index c9453f9063..3729906c1a 100644 --- a/src/test/modules/test_misc/t/001_constraint_validation.pl +++ b/src/test/modules/test_misc/t/001_constraint_validation.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Verify that ALTER TABLE optimizes certain operations as expected use strict; diff --git a/src/test/modules/test_pg_dump/t/001_base.pl b/src/test/modules/test_pg_dump/t/001_base.pl index 1cc6f29ab6..4baca365c6 100644 --- a/src/test/modules/test_pg_dump/t/001_base.pl +++ b/src/test/modules/test_pg_dump/t/001_base.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; diff --git a/src/test/perl/PostgresNode.pm b/src/test/perl/PostgresNode.pm index 0eb8df5fbf..8493066eb2 100644 --- a/src/test/perl/PostgresNode.pm +++ b/src/test/perl/PostgresNode.pm @@ -1,4 +1,7 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + =pod =head1 NAME diff --git a/src/test/perl/RecursiveCopy.pm b/src/test/perl/RecursiveCopy.pm index baf5d0ac63..341cee62fa 100644 --- a/src/test/perl/RecursiveCopy.pm +++ b/src/test/perl/RecursiveCopy.pm @@ -1,4 +1,7 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + =pod =head1 NAME diff --git a/src/test/perl/SimpleTee.pm b/src/test/perl/SimpleTee.pm index 74409bde6d..681a36a0f8 100644 --- a/src/test/perl/SimpleTee.pm +++ b/src/test/perl/SimpleTee.pm @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # A simple 'tee' implementation, using perl tie. # # Whenever you print to the handle, it gets forwarded to a list of diff --git a/src/test/perl/TestLib.pm b/src/test/perl/TestLib.pm index 6bdedc2cfa..5dbe7cf397 100644 --- a/src/test/perl/TestLib.pm +++ b/src/test/perl/TestLib.pm @@ -1,4 +1,7 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + =pod =head1 NAME diff --git a/src/test/recovery/t/001_stream_rep.pl b/src/test/recovery/t/001_stream_rep.pl index 9b0e44280c..7ce67d2b20 100644 --- a/src/test/recovery/t/001_stream_rep.pl +++ b/src/test/recovery/t/001_stream_rep.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Minimal test testing streaming replication use strict; use warnings; diff --git a/src/test/recovery/t/002_archiving.pl b/src/test/recovery/t/002_archiving.pl index cf8988f62a..c675c0886c 100644 --- a/src/test/recovery/t/002_archiving.pl +++ b/src/test/recovery/t/002_archiving.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # test for archiving with hot standby use strict; use warnings; diff --git a/src/test/recovery/t/003_recovery_targets.pl b/src/test/recovery/t/003_recovery_targets.pl index 448afc4e0e..4da7ed970e 100644 --- a/src/test/recovery/t/003_recovery_targets.pl +++ b/src/test/recovery/t/003_recovery_targets.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Test for recovery targets: name, timestamp, XID use strict; use warnings; diff --git a/src/test/recovery/t/004_timeline_switch.pl b/src/test/recovery/t/004_timeline_switch.pl index c8dbd8f9df..c101980e9e 100644 --- a/src/test/recovery/t/004_timeline_switch.pl +++ b/src/test/recovery/t/004_timeline_switch.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Test for timeline switch use strict; use warnings; diff --git a/src/test/recovery/t/005_replay_delay.pl b/src/test/recovery/t/005_replay_delay.pl index 459772f6c4..7f177afaed 100644 --- a/src/test/recovery/t/005_replay_delay.pl +++ b/src/test/recovery/t/005_replay_delay.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Checks for recovery_min_apply_delay use strict; use warnings; diff --git a/src/test/recovery/t/006_logical_decoding.pl b/src/test/recovery/t/006_logical_decoding.pl index 8cdfae1e1e..827a7b488e 100644 --- a/src/test/recovery/t/006_logical_decoding.pl +++ b/src/test/recovery/t/006_logical_decoding.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Testing of logical decoding using SQL interface and/or pg_recvlogical # # Most logical decoding tests are in contrib/test_decoding. This module diff --git a/src/test/recovery/t/007_sync_rep.pl b/src/test/recovery/t/007_sync_rep.pl index e3c6738d3a..ad3fb1b44c 100644 --- a/src/test/recovery/t/007_sync_rep.pl +++ b/src/test/recovery/t/007_sync_rep.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Minimal test testing synchronous replication sync_state transition use strict; use warnings; diff --git a/src/test/recovery/t/008_fsm_truncation.pl b/src/test/recovery/t/008_fsm_truncation.pl index 37967c1174..14b4b97e9e 100644 --- a/src/test/recovery/t/008_fsm_truncation.pl +++ b/src/test/recovery/t/008_fsm_truncation.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Test WAL replay of FSM changes. # # FSM changes don't normally need to be WAL-logged, except for truncation. diff --git a/src/test/recovery/t/009_twophase.pl b/src/test/recovery/t/009_twophase.pl index 9da3464bc1..3ee012226d 100644 --- a/src/test/recovery/t/009_twophase.pl +++ b/src/test/recovery/t/009_twophase.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Tests dedicated to two-phase commit in recovery use strict; use warnings; diff --git a/src/test/recovery/t/010_logical_decoding_timelines.pl b/src/test/recovery/t/010_logical_decoding_timelines.pl index 329500f0ae..8719c61a02 100644 --- a/src/test/recovery/t/010_logical_decoding_timelines.pl +++ b/src/test/recovery/t/010_logical_decoding_timelines.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Demonstrate that logical can follow timeline switches. # # Logical replication slots can follow timeline switches but it's diff --git a/src/test/recovery/t/011_crash_recovery.pl b/src/test/recovery/t/011_crash_recovery.pl index 10cd98f70a..0e5059db99 100644 --- a/src/test/recovery/t/011_crash_recovery.pl +++ b/src/test/recovery/t/011_crash_recovery.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # # Tests relating to PostgreSQL crash recovery and redo # diff --git a/src/test/recovery/t/012_subtransactions.pl b/src/test/recovery/t/012_subtransactions.pl index 6b9e29ae3c..aa84073311 100644 --- a/src/test/recovery/t/012_subtransactions.pl +++ b/src/test/recovery/t/012_subtransactions.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Tests dedicated to subtransactions in recovery use strict; use warnings; diff --git a/src/test/recovery/t/013_crash_restart.pl b/src/test/recovery/t/013_crash_restart.pl index 95d7bb6242..66e43ffbe8 100644 --- a/src/test/recovery/t/013_crash_restart.pl +++ b/src/test/recovery/t/013_crash_restart.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # # Tests restarts of postgres due to crashes of a subprocess. # diff --git a/src/test/recovery/t/014_unlogged_reinit.pl b/src/test/recovery/t/014_unlogged_reinit.pl index ee05e1a1ee..b629d549dd 100644 --- a/src/test/recovery/t/014_unlogged_reinit.pl +++ b/src/test/recovery/t/014_unlogged_reinit.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Tests that unlogged tables are properly reinitialized after a crash. # # The behavior should be the same when restoring from a backup, but diff --git a/src/test/recovery/t/015_promotion_pages.pl b/src/test/recovery/t/015_promotion_pages.pl index 25a9e4764a..2b72dc2334 100644 --- a/src/test/recovery/t/015_promotion_pages.pl +++ b/src/test/recovery/t/015_promotion_pages.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Test for promotion handling with WAL records generated post-promotion # before the first checkpoint is generated. This test case checks for # invalid page references at replay based on the minimum consistent diff --git a/src/test/recovery/t/016_min_consistency.pl b/src/test/recovery/t/016_min_consistency.pl index 707538b986..60ecd3dbe7 100644 --- a/src/test/recovery/t/016_min_consistency.pl +++ b/src/test/recovery/t/016_min_consistency.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Test for checking consistency of on-disk pages for a cluster with # the minimum recovery LSN, ensuring that the updates happen across # all processes. In this test, the updates from the startup process diff --git a/src/test/recovery/t/017_shm.pl b/src/test/recovery/t/017_shm.pl index dc0dcd3ca2..6fe9b97f6e 100644 --- a/src/test/recovery/t/017_shm.pl +++ b/src/test/recovery/t/017_shm.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # # Tests of pg_shmem.h functions # diff --git a/src/test/recovery/t/018_wal_optimize.pl b/src/test/recovery/t/018_wal_optimize.pl index 1bc01b5fa5..53d9864309 100644 --- a/src/test/recovery/t/018_wal_optimize.pl +++ b/src/test/recovery/t/018_wal_optimize.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Test WAL replay when some operation has skipped WAL. # # These tests exercise code that once violated the mandate described in diff --git a/src/test/recovery/t/019_replslot_limit.pl b/src/test/recovery/t/019_replslot_limit.pl index 20f4a1bbc3..7094aa0704 100644 --- a/src/test/recovery/t/019_replslot_limit.pl +++ b/src/test/recovery/t/019_replslot_limit.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Test for replication slot limit # Ensure that max_slot_wal_keep_size limits the number of WAL files to # be kept by replication slots. diff --git a/src/test/recovery/t/020_archive_status.pl b/src/test/recovery/t/020_archive_status.pl index 27d63d3cbf..777bf05274 100644 --- a/src/test/recovery/t/020_archive_status.pl +++ b/src/test/recovery/t/020_archive_status.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # # Tests related to WAL archiving and recovery. # diff --git a/src/test/recovery/t/021_row_visibility.pl b/src/test/recovery/t/021_row_visibility.pl index f6a486bb88..2d0f055629 100644 --- a/src/test/recovery/t/021_row_visibility.pl +++ b/src/test/recovery/t/021_row_visibility.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Checks that snapshots on standbys behave in a minimally reasonable # way. use strict; diff --git a/src/test/recovery/t/022_crash_temp_files.pl b/src/test/recovery/t/022_crash_temp_files.pl index 41d8b74911..42c3cfc027 100644 --- a/src/test/recovery/t/022_crash_temp_files.pl +++ b/src/test/recovery/t/022_crash_temp_files.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Test remove of temporary files after a crash. use strict; use warnings; diff --git a/src/test/recovery/t/023_pitr_prepared_xact.pl b/src/test/recovery/t/023_pitr_prepared_xact.pl index 533cd1a0fb..9190a38f93 100644 --- a/src/test/recovery/t/023_pitr_prepared_xact.pl +++ b/src/test/recovery/t/023_pitr_prepared_xact.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Test for point-in-time-recovery (PITR) with prepared transactions use strict; use warnings; diff --git a/src/test/recovery/t/024_archive_recovery.pl b/src/test/recovery/t/024_archive_recovery.pl index 78f06b690a..302c69f96b 100644 --- a/src/test/recovery/t/024_archive_recovery.pl +++ b/src/test/recovery/t/024_archive_recovery.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Test for archive recovery of WAL generated with wal_level=minimal use strict; use warnings; diff --git a/src/test/ssl/t/001_ssltests.pl b/src/test/ssl/t/001_ssltests.pl index cc797a5c98..45acb1687c 100644 --- a/src/test/ssl/t/001_ssltests.pl +++ b/src/test/ssl/t/001_ssltests.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; use PostgresNode; diff --git a/src/test/ssl/t/002_scram.pl b/src/test/ssl/t/002_scram.pl index 194000b523..9143fa515f 100644 --- a/src/test/ssl/t/002_scram.pl +++ b/src/test/ssl/t/002_scram.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Test SCRAM authentication and TLS channel binding types use strict; diff --git a/src/test/ssl/t/SSLServer.pm b/src/test/ssl/t/SSLServer.pm index 129a7154a9..0ca2bebf2b 100644 --- a/src/test/ssl/t/SSLServer.pm +++ b/src/test/ssl/t/SSLServer.pm @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # This module sets up a test server, for the SSL regression tests. # # The server is configured as follows: diff --git a/src/test/subscription/t/001_rep_changes.pl b/src/test/subscription/t/001_rep_changes.pl index 04635e93e9..46a88b6d30 100644 --- a/src/test/subscription/t/001_rep_changes.pl +++ b/src/test/subscription/t/001_rep_changes.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Basic logical replication test use strict; use warnings; diff --git a/src/test/subscription/t/002_types.pl b/src/test/subscription/t/002_types.pl index aedcab2fbc..96669f869b 100644 --- a/src/test/subscription/t/002_types.pl +++ b/src/test/subscription/t/002_types.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # This tests that more complex datatypes are replicated correctly # by logical replication use strict; diff --git a/src/test/subscription/t/003_constraints.pl b/src/test/subscription/t/003_constraints.pl index 9f140b552b..1182a1288c 100644 --- a/src/test/subscription/t/003_constraints.pl +++ b/src/test/subscription/t/003_constraints.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # This test checks that constraints work on subscriber use strict; use warnings; diff --git a/src/test/subscription/t/004_sync.pl b/src/test/subscription/t/004_sync.pl index c7926681b6..f4afdc241d 100644 --- a/src/test/subscription/t/004_sync.pl +++ b/src/test/subscription/t/004_sync.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Tests for logical replication table syncing use strict; use warnings; diff --git a/src/test/subscription/t/005_encoding.pl b/src/test/subscription/t/005_encoding.pl index aec7a17a78..a3f56a452f 100644 --- a/src/test/subscription/t/005_encoding.pl +++ b/src/test/subscription/t/005_encoding.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Test replication between databases with different encodings use strict; use warnings; diff --git a/src/test/subscription/t/006_rewrite.pl b/src/test/subscription/t/006_rewrite.pl index c6cda10a19..37e05a401a 100644 --- a/src/test/subscription/t/006_rewrite.pl +++ b/src/test/subscription/t/006_rewrite.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Test logical replication behavior with heap rewrites use strict; use warnings; diff --git a/src/test/subscription/t/007_ddl.pl b/src/test/subscription/t/007_ddl.pl index 7fe6cc6d63..dd10d5cffa 100644 --- a/src/test/subscription/t/007_ddl.pl +++ b/src/test/subscription/t/007_ddl.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Test some logical replication DDL behavior use strict; use warnings; diff --git a/src/test/subscription/t/008_diff_schema.pl b/src/test/subscription/t/008_diff_schema.pl index 963334ed89..a04a798a18 100644 --- a/src/test/subscription/t/008_diff_schema.pl +++ b/src/test/subscription/t/008_diff_schema.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Test behavior with different schema on subscriber use strict; use warnings; diff --git a/src/test/subscription/t/009_matviews.pl b/src/test/subscription/t/009_matviews.pl index 7afc7bdba9..92c7d18be8 100644 --- a/src/test/subscription/t/009_matviews.pl +++ b/src/test/subscription/t/009_matviews.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Test materialized views behavior use strict; use warnings; diff --git a/src/test/subscription/t/010_truncate.pl b/src/test/subscription/t/010_truncate.pl index 7fc403e138..cd3f45c192 100644 --- a/src/test/subscription/t/010_truncate.pl +++ b/src/test/subscription/t/010_truncate.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Test TRUNCATE use strict; use warnings; diff --git a/src/test/subscription/t/011_generated.pl b/src/test/subscription/t/011_generated.pl index f35d1cba4c..29108cbcf2 100644 --- a/src/test/subscription/t/011_generated.pl +++ b/src/test/subscription/t/011_generated.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Test generated columns use strict; use warnings; diff --git a/src/test/subscription/t/012_collation.pl b/src/test/subscription/t/012_collation.pl index 4bfcef7c2f..8137a165ee 100644 --- a/src/test/subscription/t/012_collation.pl +++ b/src/test/subscription/t/012_collation.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Test collations, in particular nondeterministic ones # (only works with ICU) use strict; diff --git a/src/test/subscription/t/013_partition.pl b/src/test/subscription/t/013_partition.pl index 4b7d637c70..6daf8daa3c 100644 --- a/src/test/subscription/t/013_partition.pl +++ b/src/test/subscription/t/013_partition.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Test logical replication with partitioned tables use strict; use warnings; diff --git a/src/test/subscription/t/014_binary.pl b/src/test/subscription/t/014_binary.pl index 36a2f58e17..7260378f5e 100644 --- a/src/test/subscription/t/014_binary.pl +++ b/src/test/subscription/t/014_binary.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Binary mode logical replication test use strict; diff --git a/src/test/subscription/t/015_stream.pl b/src/test/subscription/t/015_stream.pl index 1b0e6fb9fb..d76e14c376 100644 --- a/src/test/subscription/t/015_stream.pl +++ b/src/test/subscription/t/015_stream.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Test streaming of simple large transaction use strict; use warnings; diff --git a/src/test/subscription/t/016_stream_subxact.pl b/src/test/subscription/t/016_stream_subxact.pl index b6a2d10e91..399036f14b 100644 --- a/src/test/subscription/t/016_stream_subxact.pl +++ b/src/test/subscription/t/016_stream_subxact.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Test streaming of large transaction containing large subtransactions use strict; use warnings; diff --git a/src/test/subscription/t/017_stream_ddl.pl b/src/test/subscription/t/017_stream_ddl.pl index be7d7d74e3..8194a3882a 100644 --- a/src/test/subscription/t/017_stream_ddl.pl +++ b/src/test/subscription/t/017_stream_ddl.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Test streaming of large transaction with DDL and subtransactions use strict; use warnings; diff --git a/src/test/subscription/t/018_stream_subxact_abort.pl b/src/test/subscription/t/018_stream_subxact_abort.pl index ddf0621558..aafb555ada 100644 --- a/src/test/subscription/t/018_stream_subxact_abort.pl +++ b/src/test/subscription/t/018_stream_subxact_abort.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Test streaming of large transaction containing multiple subtransactions and rollbacks use strict; use warnings; diff --git a/src/test/subscription/t/019_stream_subxact_ddl_abort.pl b/src/test/subscription/t/019_stream_subxact_ddl_abort.pl index 33e42edfef..517a26342b 100644 --- a/src/test/subscription/t/019_stream_subxact_ddl_abort.pl +++ b/src/test/subscription/t/019_stream_subxact_ddl_abort.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Test streaming of large transaction with subtransactions, DDLs, DMLs, and # rollbacks use strict; diff --git a/src/test/subscription/t/020_messages.pl b/src/test/subscription/t/020_messages.pl index c8be26be73..e5d48ec8a0 100644 --- a/src/test/subscription/t/020_messages.pl +++ b/src/test/subscription/t/020_messages.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Tests that logical decoding messages use strict; use warnings; diff --git a/src/test/subscription/t/100_bugs.pl b/src/test/subscription/t/100_bugs.pl index b8f46f08cc..76a9a90bcb 100644 --- a/src/test/subscription/t/100_bugs.pl +++ b/src/test/subscription/t/100_bugs.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Tests for various bugs found over time use strict; use warnings; diff --git a/src/tools/git_changelog b/src/tools/git_changelog index 0911389b1e..fd1e8aa0ea 100755 --- a/src/tools/git_changelog +++ b/src/tools/git_changelog @@ -1,5 +1,8 @@ #!/usr/bin/perl + +# Copyright (c) 2021, PostgreSQL Global Development Group + # # src/tools/git_changelog # diff --git a/src/tools/msvc/Install.pm b/src/tools/msvc/Install.pm index ffcd0e5095..2ff6b0784f 100644 --- a/src/tools/msvc/Install.pm +++ b/src/tools/msvc/Install.pm @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + package Install; # diff --git a/src/tools/msvc/MSBuildProject.pm b/src/tools/msvc/MSBuildProject.pm index ebb169e201..ebe6530ba5 100644 --- a/src/tools/msvc/MSBuildProject.pm +++ b/src/tools/msvc/MSBuildProject.pm @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + package MSBuildProject; # diff --git a/src/tools/msvc/Mkvcbuild.pm b/src/tools/msvc/Mkvcbuild.pm index 58a99e4f10..5a1ab33b3d 100644 --- a/src/tools/msvc/Mkvcbuild.pm +++ b/src/tools/msvc/Mkvcbuild.pm @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + package Mkvcbuild; # diff --git a/src/tools/msvc/Project.pm b/src/tools/msvc/Project.pm index 20f79b382b..2f1679ab44 100644 --- a/src/tools/msvc/Project.pm +++ b/src/tools/msvc/Project.pm @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + package Project; # diff --git a/src/tools/msvc/Solution.pm b/src/tools/msvc/Solution.pm index d2bc7abef0..459579d312 100644 --- a/src/tools/msvc/Solution.pm +++ b/src/tools/msvc/Solution.pm @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + package Solution; # diff --git a/src/tools/msvc/VSObjectFactory.pm b/src/tools/msvc/VSObjectFactory.pm index 5412540061..61e83f52a0 100644 --- a/src/tools/msvc/VSObjectFactory.pm +++ b/src/tools/msvc/VSObjectFactory.pm @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + package VSObjectFactory; # diff --git a/src/tools/msvc/build.pl b/src/tools/msvc/build.pl index a75d191b6d..4c51d8b260 100644 --- a/src/tools/msvc/build.pl +++ b/src/tools/msvc/build.pl @@ -1,4 +1,7 @@ # -*-perl-*- hey - emacs - this is a perl file + +# Copyright (c) 2021, PostgreSQL Global Development Group + # # Script that provides 'make' functionality for msvc builds. # diff --git a/src/tools/msvc/config_default.pl b/src/tools/msvc/config_default.pl index 5395e211eb..256878f582 100644 --- a/src/tools/msvc/config_default.pl +++ b/src/tools/msvc/config_default.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # Configuration arguments for vcbuild. use strict; use warnings; diff --git a/src/tools/msvc/dummylib/Win32.pm b/src/tools/msvc/dummylib/Win32.pm index 079e276f24..d47e59a609 100644 --- a/src/tools/msvc/dummylib/Win32.pm +++ b/src/tools/msvc/dummylib/Win32.pm @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + package Win32; use strict; use warnings; diff --git a/src/tools/msvc/dummylib/Win32/Registry.pm b/src/tools/msvc/dummylib/Win32/Registry.pm index 1433b1fb54..73bd898497 100644 --- a/src/tools/msvc/dummylib/Win32/Registry.pm +++ b/src/tools/msvc/dummylib/Win32/Registry.pm @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + package Win32::Registry; use strict; diff --git a/src/tools/msvc/dummylib/Win32API/File.pm b/src/tools/msvc/dummylib/Win32API/File.pm index bfba9cc7d6..b74d28fc29 100644 --- a/src/tools/msvc/dummylib/Win32API/File.pm +++ b/src/tools/msvc/dummylib/Win32API/File.pm @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + package Win32API::File; use strict; diff --git a/src/tools/msvc/gendef.pl b/src/tools/msvc/gendef.pl index 41d53eda46..71c18580a6 100644 --- a/src/tools/msvc/gendef.pl +++ b/src/tools/msvc/gendef.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; use 5.8.0; diff --git a/src/tools/msvc/install.pl b/src/tools/msvc/install.pl index 66c42557d4..45276d0d18 100755 --- a/src/tools/msvc/install.pl +++ b/src/tools/msvc/install.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # # Script that provides 'make install' functionality for msvc builds # diff --git a/src/tools/msvc/mkvcbuild.pl b/src/tools/msvc/mkvcbuild.pl index 2e396c0672..3749e7f23b 100644 --- a/src/tools/msvc/mkvcbuild.pl +++ b/src/tools/msvc/mkvcbuild.pl @@ -1,3 +1,6 @@ + +# Copyright (c) 2021, PostgreSQL Global Development Group + # # Script that parses Unix style build environment and generates build files # for building with Visual Studio. diff --git a/src/tools/msvc/pgbison.pl b/src/tools/msvc/pgbison.pl index 774d5be059..e5d16ae9b7 100644 --- a/src/tools/msvc/pgbison.pl +++ b/src/tools/msvc/pgbison.pl @@ -1,5 +1,8 @@ # -*-perl-*- hey - emacs - this is a perl file + +# Copyright (c) 2021, PostgreSQL Global Development Group + # src/tools/msvc/pgbison.pl use strict; diff --git a/src/tools/msvc/pgflex.pl b/src/tools/msvc/pgflex.pl index 26c73dbfad..5caebe6bd6 100644 --- a/src/tools/msvc/pgflex.pl +++ b/src/tools/msvc/pgflex.pl @@ -1,5 +1,8 @@ # -*-perl-*- hey - emacs - this is a perl file + +# Copyright (c) 2021, PostgreSQL Global Development Group + # src/tools/msvc/pgflex.pl use strict; diff --git a/src/tools/msvc/vcregress.pl b/src/tools/msvc/vcregress.pl index d9bac6c3a2..8815ee7e90 100644 --- a/src/tools/msvc/vcregress.pl +++ b/src/tools/msvc/vcregress.pl @@ -1,5 +1,8 @@ # -*-perl-*- hey - emacs - this is a perl file + +# Copyright (c) 2021, PostgreSQL Global Development Group + # src/tools/msvc/vcregress.pl use strict; diff --git a/src/tools/pginclude/pgcheckdefines b/src/tools/pginclude/pgcheckdefines index 0a760d6eca..6603323613 100755 --- a/src/tools/pginclude/pgcheckdefines +++ b/src/tools/pginclude/pgcheckdefines @@ -1,5 +1,8 @@ #! /usr/bin/perl + +# Copyright (c) 2021, PostgreSQL Global Development Group + # # This script looks for symbols that are referenced in #ifdef or defined() # tests without having #include'd the file that defines them. Since this diff --git a/src/tools/pgindent/pgindent b/src/tools/pgindent/pgindent index feb02067c5..6d2ca9c59a 100755 --- a/src/tools/pgindent/pgindent +++ b/src/tools/pgindent/pgindent @@ -1,5 +1,8 @@ #!/usr/bin/perl + +# Copyright (c) 2021, PostgreSQL Global Development Group + use strict; use warnings; use 5.008001;