summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Paquier2023-10-16 00:36:31 +0000
committerMichael Paquier2023-10-16 00:36:31 +0000
commite9718b4bd3e4234ffd5a4907a903367fc483c843 (patch)
tree4065f13ab92c70b28c7fd2156aafff2dbd8c2e49
parent01529c7040088db2718628d0814058598152bd39 (diff)
Fix code indentation violations in e83d1b0c40cc
koel has not reported this one yet, I have just bumped on it while looking at a different patch.
-rw-r--r--src/backend/commands/event_trigger.c29
1 files changed, 15 insertions, 14 deletions
diff --git a/src/backend/commands/event_trigger.c b/src/backend/commands/event_trigger.c
index 0b08552fd7a..bf47b0f6e26 100644
--- a/src/backend/commands/event_trigger.c
+++ b/src/backend/commands/event_trigger.c
@@ -172,9 +172,9 @@ CreateEventTrigger(CreateEventTrigStmt *stmt)
&& tags != NULL)
validate_table_rewrite_tags("tag", tags);
else if (strcmp(stmt->eventname, "login") == 0 && tags != NULL)
- ereport(ERROR,
- (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
- errmsg("Tag filtering is not supported for login event trigger")));
+ ereport(ERROR,
+ (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
+ errmsg("Tag filtering is not supported for login event trigger")));
/*
* Give user a nice error message if an event trigger of the same name
@@ -390,8 +390,8 @@ SetDatatabaseHasLoginEventTriggers(void)
* Use shared lock to prevent a conflit with EventTriggerOnLogin() trying
* to reset pg_database.dathasloginevt flag. Note, this lock doesn't
* effectively blocks database or other objection. It's just custom lock
- * tag used to prevent multiple backends changing pg_database.dathasloginevt
- * flag.
+ * tag used to prevent multiple backends changing
+ * pg_database.dathasloginevt flag.
*/
LockSharedObject(DatabaseRelationId, MyDatabaseId, 0, AccessExclusiveLock);
@@ -899,8 +899,8 @@ EventTriggerOnLogin(void)
StartTransactionCommand();
runlist = EventTriggerCommonSetup(NULL,
- EVT_Login, "login",
- &trigdata, false);
+ EVT_Login, "login",
+ &trigdata, false);
if (runlist != NIL)
{
@@ -917,12 +917,13 @@ EventTriggerOnLogin(void)
PopActiveSnapshot();
}
+
/*
- * There is no active login event trigger, but our pg_database.dathasloginevt was set.
- * Try to unset this flag. We use the lock to prevent concurrent
- * SetDatatabaseHasLoginEventTriggers(), but we don't want to hang the
- * connection waiting on the lock. Thus, we are just trying to acquire
- * the lock conditionally.
+ * There is no active login event trigger, but our
+ * pg_database.dathasloginevt was set. Try to unset this flag. We use the
+ * lock to prevent concurrent SetDatatabaseHasLoginEventTriggers(), but we
+ * don't want to hang the connection waiting on the lock. Thus, we are
+ * just trying to acquire the lock conditionally.
*/
else if (ConditionalLockSharedObject(DatabaseRelationId, MyDatabaseId,
0, AccessExclusiveLock))
@@ -930,8 +931,8 @@ EventTriggerOnLogin(void)
/*
* The lock is held. Now we need to recheck that login event triggers
* list is still empty. Once the list is empty, we know that even if
- * there is a backend, which concurrently inserts/enables login trigger,
- * it will update pg_database.dathasloginevt *afterwards*.
+ * there is a backend, which concurrently inserts/enables login
+ * trigger, it will update pg_database.dathasloginevt *afterwards*.
*/
runlist = EventTriggerCommonSetup(NULL,
EVT_Login, "login",