now() vs current_user

Поиск
Список
Период
Сортировка
От Ottó Havasvölgyi
Тема now() vs current_user
Дата
Msg-id 34608c0c0709051331u52f855d9p3d8ba7b78f47bef8@mail.gmail.com
обсуждение исходный текст
Ответы Re: now() vs current_user  (Michael Glaesemann <grzm@seespotcode.net>)
Re: now() vs current_user  ("Rodrigo De León" <rdeleonp@gmail.com>)
Список pgsql-general
Hi,

What is the cause that "now()" works but "now" does not and
"current_user" works but "current_user()" does not. They are both
functions, and are present in pg_proc. How can I decide if a function
needs parentheses or not if it has no parameters?

Thanks in advance,
Otto

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

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