summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorAndrew Dunstan2021-05-07 14:56:14 +0000
committerAndrew Dunstan2021-05-07 14:56:14 +0000
commit8fa6e6919c1aaa6f74c74e16452aaf0b5f3b4cd5 (patch)
tree259a4b2f67a9814659137c59cebd05bb6cf79459 /src/test
parent44f90ad092f95fe19bebb51465193bc63849c15f (diff)
Add a copyright notice to perl files lacking one.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/authentication/t/001_password.pl3
-rw-r--r--src/test/authentication/t/002_saslprep.pl3
-rw-r--r--src/test/kerberos/t/001_auth.pl3
-rw-r--r--src/test/ldap/t/001_auth.pl3
-rwxr-xr-xsrc/test/locale/sort-test.pl3
-rw-r--r--src/test/modules/brin/t/01_workitems.pl3
-rw-r--r--src/test/modules/commit_ts/t/001_base.pl3
-rw-r--r--src/test/modules/commit_ts/t/002_standby.pl3
-rw-r--r--src/test/modules/commit_ts/t/003_standby_2.pl3
-rw-r--r--src/test/modules/commit_ts/t/004_restart.pl3
-rw-r--r--src/test/modules/libpq_pipeline/t/001_libpq_pipeline.pl3
-rw-r--r--src/test/modules/ssl_passphrase_callback/t/001_testfunc.pl3
-rw-r--r--src/test/modules/test_misc/t/001_constraint_validation.pl3
-rw-r--r--src/test/modules/test_pg_dump/t/001_base.pl3
-rw-r--r--src/test/perl/PostgresNode.pm3
-rw-r--r--src/test/perl/RecursiveCopy.pm3
-rw-r--r--src/test/perl/SimpleTee.pm3
-rw-r--r--src/test/perl/TestLib.pm3
-rw-r--r--src/test/recovery/t/001_stream_rep.pl3
-rw-r--r--src/test/recovery/t/002_archiving.pl3
-rw-r--r--src/test/recovery/t/003_recovery_targets.pl3
-rw-r--r--src/test/recovery/t/004_timeline_switch.pl3
-rw-r--r--src/test/recovery/t/005_replay_delay.pl3
-rw-r--r--src/test/recovery/t/006_logical_decoding.pl3
-rw-r--r--src/test/recovery/t/007_sync_rep.pl3
-rw-r--r--src/test/recovery/t/008_fsm_truncation.pl3
-rw-r--r--src/test/recovery/t/009_twophase.pl3
-rw-r--r--src/test/recovery/t/010_logical_decoding_timelines.pl3
-rw-r--r--src/test/recovery/t/011_crash_recovery.pl3
-rw-r--r--src/test/recovery/t/012_subtransactions.pl3
-rw-r--r--src/test/recovery/t/013_crash_restart.pl3
-rw-r--r--src/test/recovery/t/014_unlogged_reinit.pl3
-rw-r--r--src/test/recovery/t/015_promotion_pages.pl3
-rw-r--r--src/test/recovery/t/016_min_consistency.pl3
-rw-r--r--src/test/recovery/t/017_shm.pl3
-rw-r--r--src/test/recovery/t/018_wal_optimize.pl3
-rw-r--r--src/test/recovery/t/019_replslot_limit.pl3
-rw-r--r--src/test/recovery/t/020_archive_status.pl3
-rw-r--r--src/test/recovery/t/021_row_visibility.pl3
-rw-r--r--src/test/recovery/t/022_crash_temp_files.pl3
-rw-r--r--src/test/recovery/t/023_pitr_prepared_xact.pl3
-rw-r--r--src/test/recovery/t/024_archive_recovery.pl3
-rw-r--r--src/test/ssl/t/001_ssltests.pl3
-rw-r--r--src/test/ssl/t/002_scram.pl3
-rw-r--r--src/test/ssl/t/SSLServer.pm3
-rw-r--r--src/test/subscription/t/001_rep_changes.pl3
-rw-r--r--src/test/subscription/t/002_types.pl3
-rw-r--r--src/test/subscription/t/003_constraints.pl3
-rw-r--r--src/test/subscription/t/004_sync.pl3
-rw-r--r--src/test/subscription/t/005_encoding.pl3
-rw-r--r--src/test/subscription/t/006_rewrite.pl3
-rw-r--r--src/test/subscription/t/007_ddl.pl3
-rw-r--r--src/test/subscription/t/008_diff_schema.pl3
-rw-r--r--src/test/subscription/t/009_matviews.pl3
-rw-r--r--src/test/subscription/t/010_truncate.pl3
-rw-r--r--src/test/subscription/t/011_generated.pl3
-rw-r--r--src/test/subscription/t/012_collation.pl3
-rw-r--r--src/test/subscription/t/013_partition.pl3
-rw-r--r--src/test/subscription/t/014_binary.pl3
-rw-r--r--src/test/subscription/t/015_stream.pl3
-rw-r--r--src/test/subscription/t/016_stream_subxact.pl3
-rw-r--r--src/test/subscription/t/017_stream_ddl.pl3
-rw-r--r--src/test/subscription/t/018_stream_subxact_abort.pl3
-rw-r--r--src/test/subscription/t/019_stream_subxact_ddl_abort.pl3
-rw-r--r--src/test/subscription/t/020_messages.pl3
-rw-r--r--src/test/subscription/t/100_bugs.pl3
66 files changed, 198 insertions, 0 deletions
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;