About the function current_user

From: Xiong He <iihero(at)qq(dot)com>
To: pgsql-bugs <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: About the function current_user
Date: 2023-03-20 07:01:28
Message-ID: tencent_AECDFA4FA154BDEBDA5541EA988C8C56BF06@qq.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Dear All,

Just confused,&nbsp; why :
postgres=# select current_user;
&nbsp;current_user
--------------
&nbsp;postgres
(1 row)

postgres=# select current_user();
2023-03-20 07:00:02.981 UTC [17281] ERROR:&nbsp; syntax error at or near "(" at character 20
2023-03-20 07:00:02.981 UTC [17281] STATEMENT:&nbsp; select current_user();
ERROR:&nbsp; syntax error at or near "("
LINE 1: select current_user();
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^

why current_user() is not recognized?&nbsp;&nbsp;
But the similar function current_database and current_database(), both can work.

Regards,
Xiong He [iihero]&nbsp;

&nbsp;

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Pavel Stehule 2023-03-20 07:05:45 Re: About the function current_user
Previous Message Alexander Lakhin 2023-03-20 07:00:00 Re: BUG #17847: Unaligned memory access in ltree_gist