Re: now() vs current_user

Поиск
Список
Период
Сортировка
От Rodrigo De León
Тема Re: now() vs current_user
Дата
Msg-id a55915760709051344h41503b98j4f5c2105e9ee765a@mail.gmail.com
обсуждение исходный текст
Ответ на now() vs current_user  ("Ottó Havasvölgyi" <havasvolgyi.otto@gmail.com>)
Список pgsql-general
On 9/5/07, Ottó Havasvölgyi <havasvolgyi.otto@gmail.com> wrote:
> What is the cause that "now()" works but "now" does not and
> "current_user" works but "current_user()" does not.

From http://www.postgresql.org/docs/8.2/static/functions-info.html :

"Note:  current_user, session_user, and user have special syntactic
status in SQL: they must be called without trailing parentheses."

See:
http://www.google.com/search?q=sql+current_user

В списке pgsql-general по дате отправления:

Предыдущее
От: Michael Glaesemann
Дата:
Сообщение: Re: now() vs current_user
Следующее
От: "Scott Marlowe"
Дата:
Сообщение: Re: psql hanging