aboutsummaryrefslogtreecommitdiff
path: root/src/backend/replication/logical/tablesync.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2023-06-20 09:50:43 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2023-06-20 09:50:43 -0400
commitb334612b8aee9f9a34378982d8938b201dfad323 (patch)
treea47c67522e7886c2aee179cbb260e47218c16d1d /src/backend/replication/logical/tablesync.c
parent877bf52cffe587d33556e6259f610eb932699706 (diff)
downloadpostgresql-b334612b8aee9f9a34378982d8938b201dfad323.tar.gz
postgresql-b334612b8aee9f9a34378982d8938b201dfad323.zip
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/backend/replication/logical/tablesync.c')
-rw-r--r--src/backend/replication/logical/tablesync.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/replication/logical/tablesync.c b/src/backend/replication/logical/tablesync.c
index db10a446b3d..6d461654ab4 100644
--- a/src/backend/replication/logical/tablesync.c
+++ b/src/backend/replication/logical/tablesync.c
@@ -1253,7 +1253,7 @@ LogicalRepSyncTableStart(XLogRecPtr *origin_startpos)
WalRcvExecResult *res;
char originname[NAMEDATALEN];
RepOriginId originid;
- UserContext ucxt;
+ UserContext ucxt;
bool must_use_password;
bool run_as_owner;
@@ -1437,8 +1437,8 @@ LogicalRepSyncTableStart(XLogRecPtr *origin_startpos)
}
/*
- * Make sure that the copy command runs as the table owner, unless
- * the user has opted out of that behaviour.
+ * Make sure that the copy command runs as the table owner, unless the
+ * user has opted out of that behaviour.
*/
run_as_owner = MySubscription->runasowner;
if (!run_as_owner)
@@ -1482,7 +1482,7 @@ LogicalRepSyncTableStart(XLogRecPtr *origin_startpos)
res->err)));
walrcv_clear_result(res);
- if(!run_as_owner)
+ if (!run_as_owner)
RestoreUserContext(&ucxt);
table_close(rel, NoLock);