Skip to content

Commit 7a32ff9

Browse files
committed
Revert patch adding support for logging the current role.
This reverts commit a8a8867, committed by me earlier today (2011-01-12). This isn't safe inside an aborted transaction. Noted by Tom Lane.
1 parent a8a8867 commit 7a32ff9

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

doc/src/sgml/config.sgml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3504,12 +3504,7 @@ local0.* /var/log/postgresql
35043504
</row>
35053505
<row>
35063506
<entry><literal>%u</literal></entry>
3507-
<entry>Login user name</entry>
3508-
<entry>yes</entry>
3509-
</row>
3510-
<row>
3511-
<entry><literal>%U</literal></entry>
3512-
<entry>Current user name</entry>
3507+
<entry>User name</entry>
35133508
<entry>yes</entry>
35143509
</row>
35153510
<row>

src/backend/utils/error/elog.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1826,16 +1826,6 @@ log_line_prefix(StringInfo buf, ErrorData *edata)
18261826
appendStringInfoString(buf, username);
18271827
}
18281828
break;
1829-
case 'U':
1830-
if (MyProcPort)
1831-
{
1832-
const char *username = GetUserNameFromId(GetUserId());
1833-
1834-
if (username == NULL || *username == '\0')
1835-
username = _("[unknown]");
1836-
appendStringInfoString(buf, username);
1837-
}
1838-
break;
18391829
case 'd':
18401830
if (MyProcPort)
18411831
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy