diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2021-05-07 10:56:14 -0400 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2021-05-07 10:56:14 -0400 |
commit | 8fa6e6919c1aaa6f74c74e16452aaf0b5f3b4cd5 (patch) | |
tree | 259a4b2f67a9814659137c59cebd05bb6cf79459 | |
parent | 44f90ad092f95fe19bebb51465193bc63849c15f (diff) | |
download | postgresql-8fa6e6919c1aaa6f74c74e16452aaf0b5f3b4cd5.tar.gz postgresql-8fa6e6919c1aaa6f74c74e16452aaf0b5f3b4cd5.zip |
Add a copyright notice to perl files lacking one.
160 files changed, 480 insertions, 0 deletions
diff --git a/contrib/amcheck/t/001_verify_heapam.pl b/contrib/amcheck/t/001_verify_heapam.pl index bf47c2ed373..f86a932bd07 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 7968be963b1..9c4f1d05713 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 7f6398f5712..9310af5c3dd 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 daf3febc804..6a618cbe9c0 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 3f2a6e4da2a..4df46d05d0f 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 fa2c5743f63..8f0d4349a07 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 9fa0887e710..bdd8e1ac8bf 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 2e3c9734a94..370da29b2ca 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 3ab0e807228..2dc5ef5f079 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 2bfb6ce17d9..2121f454e02 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 8387b945d36..635ff79b475 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 dfa0ae9e062..6f60e3ec1f5 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 afff146e246..7c446064ab6 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 2da9631da4a..659fd15983e 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 b842f7bc6db..fa4059172ec 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 eba8ea9cae6..062015aa003 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 22782d30420..8134c2a62e8 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 a9dfe88aaae..28949c9caf8 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 6e2f0511877..a547c97ef18 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 99154bcf398..53f41814b0b 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 4334c806061..62e78a50438 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 d52bbac5faa..af88b947953 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 ccca190bb19..d8829faea6c 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 3b63ad230fc..c3f3aca095c 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 b1e419f02e9..4bfc23b93de 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 606d10560fc..e69cb801348 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 ecb294b4906..2d7e2fd5f3d 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 2f381e556ec..9a0492ae631 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 083fb3ad083..9f12ca6c51d 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 86113df29c4..c1bbf3c7d4b 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 dd9a60a2c9f..f9fea9ddcfe 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 5497e460564..9a61eea060d 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 ca93ddbda05..9c08ade79fc 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 f9940d7fc5d..954790c28cc 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 93fa09467b4..15a6f25adee 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 5506fe425bc..72c4b225a7f 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 5b953b11ae8..4fc500d4b4c 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 fff47585083..8fb0ab3eadd 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 8706d5aed5c..efe1d4c77f5 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 1515696e663..81793899e59 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 7a597bf12bd..44319a8204e 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 e3d94b3346d..7d9362cc229 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 41ed7d4b3be..55a350af9d6 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 fe9c295c497..c0d0effd92d 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 8bad19c7fad..72e5a42b6f2 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 0c35062dc0a..4ad1c3f0a99 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 6c118832668..c2c4c3176af 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 0c0691ba2b2..682b3b857e6 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 1bd0aab5459..3f6e84c2210 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 5bd5556038c..9f8a100a716 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 35b854a78e8..a821d52a6af 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 23a4f8bbd8d..28837b8503d 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 5af0ce94fb8..fb2f807dc3b 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 c2482dea175..e1496bb2130 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 4027e68dfac..9023fac52d5 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 c27f216d392..3c58d50118a 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 ba093fa3a7a..6d483be1433 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 efd541bc4d6..c7e8514fb6c 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 983dbb1d37f..7261ebb2eff 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 916d9259479..8fdd32d77b7 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 c51babe093f..646cb4e82f4 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 2e858c595bc..cbcb09b0ad8 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 6da89e1b04f..e2e39ea2d4e 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 159b6372303..af5bdf352c4 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 8e6041460c5..299b198d159 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 99ec8bebde3..0addc97bf8b 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 43212587e5a..504f252748b 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 17a7fc720d2..155c77edd90 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 ee2523d0858..b1ceab73bba 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 54db4f1abfc..cc1db485f49 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 ee1b9bf4634..028c4cea6d1 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 dea3727682c..2ca71e6e12d 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 ee18e915289..7ad315f1fb2 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 52fcbe1be1c..a3e307b1611 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 150b226c0e8..17d686e702e 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 aa164b2bd98..f080a0ccbae 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 26c2c7077b3..03337064380 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 ec4721234bc..0ae14e4c85f 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 b61968b7e0a..a2a17e7f347 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 534ab63ab26..a4f603a9d54 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 f8d5d84cc52..dd41936658d 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 872efb2e8ea..24446bb3841 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 36ab829dfdd..1d57ecedae5 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 4e6ae776b97..bc9931944f3 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 4819dbd8495..99a41150a2c 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 a2bed5336c0..1e2455e82f3 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 c9453f9063e..3729906c1ac 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 1cc6f29ab69..4baca365c64 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 0eb8df5fbf0..8493066eb24 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 baf5d0ac63b..341cee62fae 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 74409bde6d7..681a36a0f8e 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 6bdedc2cfaf..5dbe7cf3976 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 9b0e44280c6..7ce67d2b200 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 cf8988f62a7..c675c0886cd 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 448afc4e0e7..4da7ed970e1 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 c8dbd8f9df3..c101980e9e2 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 459772f6c44..7f177afaedc 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 8cdfae1e1e2..827a7b488e2 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 e3c6738d3ab..ad3fb1b44ce 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 37967c11744..14b4b97e9e7 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 9da3464bc1d..3ee012226da 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 329500f0ae5..8719c61a02d 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 10cd98f70aa..0e5059db997 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 6b9e29ae3c7..aa84073311b 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 95d7bb62425..66e43ffbe8d 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 ee05e1a1ee1..b629d549dd9 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 25a9e4764a2..2b72dc23343 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 707538b9869..60ecd3dbe7c 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 dc0dcd3ca27..6fe9b97f6e0 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 1bc01b5fa5f..53d9864309f 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 20f4a1bbc3d..7094aa0704b 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 27d63d3cbfc..777bf052743 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 f6a486bb886..2d0f0556298 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 41d8b74911f..42c3cfc027d 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 533cd1a0fb3..9190a38f93c 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 78f06b690ac..302c69f96b5 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 cc797a5c98f..45acb1687c8 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 194000b523f..9143fa515f2 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 129a7154a98..0ca2bebf2b3 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 04635e93e99..46a88b6d305 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 aedcab2fbcc..96669f869b1 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 9f140b552b4..1182a1288ce 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 c7926681b66..f4afdc241d5 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 aec7a17a78e..a3f56a452f3 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 c6cda10a19b..37e05a401af 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 7fe6cc6d639..dd10d5cffa8 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 963334ed89d..a04a798a187 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 7afc7bdba9f..92c7d18be8e 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 7fc403e1385..cd3f45c1925 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 f35d1cba4c9..29108cbcf20 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 4bfcef7c2f5..8137a165eed 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 4b7d637c70d..6daf8daa3cc 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 36a2f58e17b..7260378f5e8 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 1b0e6fb9fb6..d76e14c3764 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 b6a2d10e91e..399036f14b4 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 be7d7d74e3f..8194a3882ac 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 ddf0621558a..aafb555ada5 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 33e42edfef2..517a26342ba 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 c8be26be736..e5d48ec8a00 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 b8f46f08cc5..76a9a90bcb9 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 0911389b1e4..fd1e8aa0ea0 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 ffcd0e50958..2ff6b0784fa 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 ebb169e2012..ebe6530ba58 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 58a99e4f104..5a1ab33b3d4 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 20f79b382b1..2f1679ab44f 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 d2bc7abef0d..459579d312f 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 54125400612..61e83f52a09 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 a75d191b6dd..4c51d8b260c 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 5395e211eb2..256878f5820 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 079e276f246..d47e59a6090 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 1433b1fb54f..73bd898497f 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 bfba9cc7d61..b74d28fc29a 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 41d53eda468..71c18580a65 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 66c42557d4d..45276d0d18c 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 2e396c06726..3749e7f23b1 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 774d5be0595..e5d16ae9b74 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 26c73dbfade..5caebe6bd6c 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 d9bac6c3a29..8815ee7e902 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 0a760d6ecad..66033236132 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 feb02067c5a..6d2ca9c59a1 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; |