Re: About the function current_user

From: John Naylor <john(dot)naylor(at)enterprisedb(dot)com>
To: Xiong He <iihero(at)qq(dot)com>
Cc: Daniel Gustafsson <daniel(at)yesql(dot)se>, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, pgsql-bugs <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Re: About the function current_user
Date: 2023-03-20 12:16:58
Message-ID: CAFBsxsEMr+zXvdw3ybH6duT2+3p2uVkOsmpWPTNwpB+TU0NDKw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Mon, Mar 20, 2023 at 3:57 PM Xiong He <iihero(at)qq(dot)com> wrote:
>
> Thanks a lot.
> And how to understand below result?
>
> postgres=# select current_database();
> current_database
> ------------------
> postgres
> (1 row)
>
> postgres=# select current_database;
> ERROR: column "current_database" does not exist
> LINE 1: select current_database;

"current_database" is not a keyword.

--
John Naylor
EDB: http://www.enterprisedb.com

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Peter Eisentraut 2023-03-20 13:58:38 Re: About the function current_user
Previous Message John Naylor 2023-03-20 12:13:48 Re: About the function current_user