| 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: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
Dear All,
Just confused, why :
postgres=# select current_user;
current_user
--------------
postgres
(1 row)
postgres=# select current_user();
2023-03-20 07:00:02.981 UTC [17281] ERROR: syntax error at or near "(" at character 20
2023-03-20 07:00:02.981 UTC [17281] STATEMENT: select current_user();
ERROR: syntax error at or near "("
LINE 1: select current_user();
^
why current_user() is not recognized?
But the similar function current_database and current_database(), both can work.
Regards,
Xiong He [iihero]
| 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 |