Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7a32ff9

Browse files
committed
Revert patch adding support for logging the current role.
This reverts commita8a8867, committedby me earlier today (2011-01-12). This isn't safe inside an abortedtransaction.Noted by Tom Lane.
1 parenta8a8867 commit7a32ff9

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-
constchar*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)

[8]ページ先頭

©2009-2025 Movatter.jp