Skip to content

Commit

Permalink
Fix typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
dwsteele committed Jun 9, 2023
1 parent be3ede0 commit 164d4d9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pgaudit.c
Expand Up @@ -167,7 +167,7 @@ bool auditLogStatement = true;
* Administrators can choose to have the statement run logged only once instead
* of on every line. By default, the statement is repeated on every line of
* the audit log to facilitate searching, but this can cause the log to be
* unnecessairly bloated in some environments.
* unnecessarily bloated in some environments.
*/
bool auditLogStatementOnce = false;

Expand Down Expand Up @@ -717,7 +717,7 @@ log_audit_event(AuditEventStackItem *stackItem)
append_valid_csv(&auditStr, stackItem->auditEvent.objectName);

/*
* If auditLogStatmentOnce is true, then only log the statement and
* If auditLogStatementOnce is true, then only log the statement and
* parameters if they have not already been logged for this substatement.
*/
appendStringInfoCharMacro(&auditStr, ',');
Expand Down Expand Up @@ -1053,7 +1053,7 @@ log_select_dml(Oid auditOid, List *rangeTabls)
/*
* Don't log if the session user is not a member of the current
* role. This prevents contents of security definer functions
* from being logged and supresses foreign key queries unless the
* from being logged and suppresses foreign key queries unless the
* session user is the owner of the referenced table.
*/
if (!is_member_of_role(GetSessionUserId(), GetUserId()))
Expand Down Expand Up @@ -1087,7 +1087,7 @@ log_select_dml(Oid auditOid, List *rangeTabls)
}

/*
* We don't have access to the parsetree here, so we have to generate
* We don't have access to the parse tree here, so we have to generate
* the node type, object type, and command tag by decoding
* rte->requiredPerms and rte->relkind. For updates we also check
* rellockmode so that only true UPDATE commands (not
Expand Down

0 comments on commit 164d4d9

Please sign in to comment.