now() vs current_user

From: Ottó Havasvölgyi <havasvolgyi(dot)otto(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: now() vs current_user
Date: 2007-09-05 20:31:11
Message-ID: 34608c0c0709051331u52f855d9p3d8ba7b78f47bef8@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Glaesemann 2007-09-05 20:43:02 Re: now() vs current_user
Previous Message Martijn van Oosterhout 2007-09-05 20:06:48 Re: psql hanging