Skip to content

Commit d256c1c

Browse files
committed
Merge pull request 2ndQuadrant#6 from asenyshyn/patch-1
Per @asenyshyn, avoid the subquery against `pg_settings` of just using `current_setting`.
2 parents 4c5e1ba + 80b242c commit d256c1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

audit.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ BEGIN
104104
statement_timestamp(), -- action_tstamp_stm
105105
clock_timestamp(), -- action_tstamp_clk
106106
txid_current(), -- transaction ID
107-
(SELECT setting FROM pg_settings WHERE name = 'application_name'),
107+
current_setting('application_name'), -- client application
108108
inet_client_addr(), -- client_addr
109109
inet_client_port(), -- client_port
110110
current_query(), -- top-level query or queries (if multistatement) from client

0 commit comments

Comments
 (0)