now() vs current_user - Mailing list pgsql-general

From Ottó Havasvölgyi
Subject now() vs current_user
Date
Msg-id 34608c0c0709051331u52f855d9p3d8ba7b78f47bef8@mail.gmail.com
Whole thread Raw
Responses Re: now() vs current_user
Re: now() vs current_user
List 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 by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: psql hanging
Next
From: Michael Glaesemann
Date:
Subject: Re: now() vs current_user