pgindent run prior to branching v15.
authorTom Lane <[email protected]>
Thu, 30 Jun 2022 15:03:03 +0000 (11:03 -0400)
committerTom Lane <[email protected]>
Thu, 30 Jun 2022 15:03:03 +0000 (11:03 -0400)
pgperltidy and reformat-dat-files too.  Not many changes.

src/backend/access/transam/xact.c
src/bin/pg_dump/t/010_dump_connstr.pl
src/bin/pg_upgrade/t/002_pg_upgrade.pl
src/bin/psql/t/001_basic.pl
src/include/catalog/pg_proc.dat
src/test/subscription/t/013_partition.pl
src/test/subscription/t/027_nosuperuser.pl
src/test/subscription/t/031_column_list.pl

index 47d80b0d25740fcea3ea182838b761df36d57f7d..bd60b55574c80f1ee7229e33fed14c71e7004194 100644 (file)
@@ -122,7 +122,7 @@ bool        bsysscan = false;
  * lookups as fast as possible.
  */
 static FullTransactionId XactTopFullTransactionId = {InvalidTransactionId};
-static int nParallelCurrentXids = 0;
+static int nParallelCurrentXids = 0;
 static TransactionId *ParallelCurrentXids;
 
 /*
index 6e497447c35333af442b739a304202bae32f98a0..f0e3aaf93247081cab4bd8e9485e29b51bfeb880 100644 (file)
@@ -30,7 +30,8 @@ my $dbname1 =
   . generate_ascii_string(1,  9)
   . generate_ascii_string(11, 12)
   . generate_ascii_string(14, 33)
-  . ($PostgreSQL::Test::Utils::windows_os
+  . (
+   $PostgreSQL::Test::Utils::windows_os
    ? ''
    : '"x"')    # IPC::Run mishandles '"' on Windows
   . generate_ascii_string(35, 43)    # skip ','
index 3f11540e189bd4f3d513a2f73eaa1f499fb01058..67e0be685683f0a21abf83e0ae0e679be2594024 100644 (file)
@@ -244,7 +244,7 @@ command_ok(
        '-P',         $newnode->port,     '--check'
    ],
    'run of pg_upgrade --check for new instance');
-ok( !-d $newnode->data_dir . "/pg_upgrade_output.d",
+ok(!-d $newnode->data_dir . "/pg_upgrade_output.d",
    "pg_upgrade_output.d/ not removed after pg_upgrade --check success");
 
 # Actual run, pg_upgrade_output.d is removed at the end.
index 57486ceffdb70b729470df490c02fa8a36984b2b..f4478457175d7bf4ff4a7dc55b7bdd34bf153777 100644 (file)
@@ -90,10 +90,17 @@ SELECT 1',
 
 # test \timing with query that fails
 {
-   my ($ret, $stdout, $stderr) = $node->psql('postgres', "\\timing on\nSELECT error");
+   my ($ret, $stdout, $stderr) =
+     $node->psql('postgres', "\\timing on\nSELECT error");
    isnt($ret, 0, '\timing with query error: query failed');
-   like($stdout, qr/^Time: \d+[.,]\d\d\d ms/m, '\timing with query error: timing output appears');
-   unlike($stdout, qr/^Time: 0[.,]000 ms/m, '\timing with query error: timing was updated');
+   like(
+       $stdout,
+       qr/^Time: \d+[.,]\d\d\d ms/m,
+       '\timing with query error: timing output appears');
+   unlike(
+       $stdout,
+       qr/^Time: 0[.,]000 ms/m,
+       '\timing with query error: timing was updated');
 }
 
 # test that ENCODING variable is set and that it is updated when
index 87aa571a3319b0a6be896c6ed7fac0a6481ed81b..a77b29372347523ec124c78e3e7dc5747375cae8 100644 (file)
 { oid => '6119', descr => 'get information of tables in a publication',
   proname => 'pg_get_publication_tables', prorows => '1000', proretset => 't',
   provolatile => 's', prorettype => 'record', proargtypes => 'text',
-  proallargtypes => '{text,oid,int2vector,pg_node_tree}', proargmodes => '{i,o,o,o}',
-  proargnames => '{pubname,relid,attrs,qual}', prosrc => 'pg_get_publication_tables' },
+  proallargtypes => '{text,oid,int2vector,pg_node_tree}',
+  proargmodes => '{i,o,o,o}', proargnames => '{pubname,relid,attrs,qual}',
+  prosrc => 'pg_get_publication_tables' },
 { oid => '6121',
   descr => 'returns whether a relation can be part of a publication',
   proname => 'pg_relation_is_publishable', provolatile => 's',
index f2b75c11dea2a0cc81dd20cdeccbc76ae2100376..0dfbbabc3b0365a532925725920b9f225d14876a 100644 (file)
@@ -851,7 +851,9 @@ $node_publisher->wait_for_catchup('sub2');
 
 $result = $node_subscriber2->safe_psql('postgres',
    "SELECT a, b, c FROM tab5 ORDER BY 1");
-is($result, qq(3|1|), 'updates of tab5 replicated correctly after altering table on subscriber');
+is($result, qq(3|1|),
+   'updates of tab5 replicated correctly after altering table on subscriber'
+);
 
 # Test that replication into the partitioned target table continues to
 # work correctly when the published table is altered.
@@ -866,7 +868,8 @@ $node_publisher->wait_for_catchup('sub2');
 
 $result = $node_subscriber2->safe_psql('postgres',
    "SELECT a, b, c FROM tab5 ORDER BY 1");
-is($result, qq(3||1), 'updates of tab5 replicated correctly after altering table on publisher');
+is($result, qq(3||1),
+   'updates of tab5 replicated correctly after altering table on publisher');
 
 # Test that replication works correctly as long as the leaf partition
 # has the necessary REPLICA IDENTITY, even though the actual target
index 96ec23aab704c2dd1ef256fba7b39c7db64f046a..e8f3e4bba11582da7d20c9ede7580ef9308279c2 100644 (file)
@@ -178,7 +178,10 @@ expect_replication("alice.unpartitioned", 2, 5, 7,
 revoke_superuser("regress_admin");
 publish_update("alice.unpartitioned", 5 => 9);
 expect_failure(
-   "alice.unpartitioned", 2, 5, 7,
+   "alice.unpartitioned",
+   2,
+   5,
+   7,
    qr/ERROR: ( [A-Z0-9]+:)? permission denied for table unpartitioned/msi,
    "non-superuser admin fails to replicate update");
 grant_superuser("regress_admin");
index 7f031bc19512895095d1bffade4ba1b0051e57ff..9fa6e0b35ffb923a54a832c0ce9ef08cce358fc4 100644 (file)
@@ -20,7 +20,7 @@ $node_subscriber->append_conf('postgresql.conf',
 $node_subscriber->start;
 
 my $publisher_connstr = $node_publisher->connstr . ' dbname=postgres';
-my $offset = 0;
+my $offset            = 0;
 
 sub wait_for_subscription_sync
 {
@@ -1169,13 +1169,15 @@ is( $node_subscriber->safe_psql(
 # TEST: With a table included in multiple publications with different column
 # lists, we should catch the error when creating the subscription.
 
-$node_publisher->safe_psql('postgres', qq(
+$node_publisher->safe_psql(
+   'postgres', qq(
    CREATE TABLE test_mix_1 (a int PRIMARY KEY, b int, c int);
    CREATE PUBLICATION pub_mix_1 FOR TABLE test_mix_1 (a, b);
    CREATE PUBLICATION pub_mix_2 FOR TABLE test_mix_1 (a, c);
 ));
 
-$node_subscriber->safe_psql('postgres', qq(
+$node_subscriber->safe_psql(
+   'postgres', qq(
    DROP SUBSCRIPTION sub1;
    CREATE TABLE test_mix_1 (a int PRIMARY KEY, b int, c int);
 ));
@@ -1192,17 +1194,20 @@ ok( $stderr =~
 # TEST: If the column list is changed after creating the subscription, we
 # should catch the error reported by walsender.
 
-$node_publisher->safe_psql('postgres', qq(
+$node_publisher->safe_psql(
+   'postgres', qq(
    ALTER PUBLICATION pub_mix_1 SET TABLE test_mix_1 (a, c);
 ));
 
-$node_subscriber->safe_psql('postgres', qq(
+$node_subscriber->safe_psql(
+   'postgres', qq(
    CREATE SUBSCRIPTION sub1 CONNECTION '$publisher_connstr' PUBLICATION pub_mix_1, pub_mix_2;
 ));
 
 $node_publisher->wait_for_catchup('sub1');
 
-$node_publisher->safe_psql('postgres', qq(
+$node_publisher->safe_psql(
+   'postgres', qq(
    ALTER PUBLICATION pub_mix_1 SET TABLE test_mix_1 (a, b);
    INSERT INTO test_mix_1 VALUES(1, 1, 1);
 ));