diff options
| author | Tom Lane | 2023-06-20 13:50:43 +0000 |
|---|---|---|
| committer | Tom Lane | 2023-06-20 13:50:43 +0000 |
| commit | b334612b8aee9f9a34378982d8938b201dfad323 (patch) | |
| tree | a47c67522e7886c2aee179cbb260e47218c16d1d /src/test | |
| parent | 877bf52cffe587d33556e6259f610eb932699706 (diff) | |
Pre-beta2 mechanical code beautification.
Run pgindent and pgperltidy. It seems we're still some ways
away from all committers doing this automatically. Now that
we have a buildfarm animal that will whine about poorly-indented
code, we'll try to keep the tree more tidy.
Discussion: https://postgr.es/m/3156045.1687208823@sss.pgh.pa.us
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/subscription/t/033_run_as_table_owner.pl | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/test/subscription/t/033_run_as_table_owner.pl b/src/test/subscription/t/033_run_as_table_owner.pl index 2d0e0e78e3e..9de3c04a0c2 100644 --- a/src/test/subscription/t/033_run_as_table_owner.pl +++ b/src/test/subscription/t/033_run_as_table_owner.pl @@ -196,7 +196,7 @@ expect_replication("alice.unpartitioned", 3, 7, 13, # Remove the subscrition and truncate the table for the initial data sync # tests. $node_subscriber->safe_psql( - 'postgres', qq( + 'postgres', qq( DROP SUBSCRIPTION admin_sub; TRUNCATE alice.unpartitioned; )); @@ -204,7 +204,7 @@ TRUNCATE alice.unpartitioned; # Create a new subscription "admin_sub" owned by regress_admin2. It's # disabled so that we revoke superuser privilege after creation. $node_subscriber->safe_psql( - 'postgres', qq( + 'postgres', qq( SET SESSION AUTHORIZATION regress_admin2; CREATE SUBSCRIPTION admin_sub CONNECTION '$publisher_connstr' PUBLICATION alice WITH (run_as_owner = false, password_required = false, copy_data = true, enabled = false); @@ -214,16 +214,15 @@ WITH (run_as_owner = false, password_required = false, copy_data = true, enabled # ability to SET ROLE. Then enable the subscription "admin_sub". revoke_superuser("regress_admin2"); $node_subscriber->safe_psql( - 'postgres', qq( + 'postgres', qq( GRANT regress_alice TO regress_admin2 WITH INHERIT FALSE, SET TRUE; ALTER SUBSCRIPTION admin_sub ENABLE; )); # Because the initial data sync is working as the table owner, all # data should be copied. -$node_subscriber->wait_for_subscription_sync($node_publisher, - 'admin_sub'); +$node_subscriber->wait_for_subscription_sync($node_publisher, 'admin_sub'); expect_replication("alice.unpartitioned", 3, 7, 13, - "table owner can do the initial data copy"); + "table owner can do the initial data copy"); done_testing(); |
