Re: Is current_user a function ?

Поиск
Список
Период
Сортировка
От Masaru Sugawara
Тема Re: Is current_user a function ?
Дата
Msg-id 20021129175301.5664.RK73@sea.plala.or.jp
обсуждение исходный текст
Ответ на Re: Is current_user a function ?  (Rod Taylor <rbt@rbt.ca>)
Список pgsql-hackers
On 28 Nov 2002 11:34:49 -0500
Rod Taylor <rbt@rbt.ca> wrote:

> Force the system to use it as a function.
> select "current_user"();


On Thu, 28 Nov 2002 17:20:59 -0500
Tom Lane <tgl@sss.pgh.pa.us> wrote:

> > As for some current_*** functions, "select current_user;" seems to
> > work, but  "select current_user();" doesn't .
> 
> Complain to the SQL spec authors --- they mandated this peculiar keyword
> syntax for what is really a function call.


Since current_user() can be used in 7.2, I have thought it would work in 7.3 too.
I now understand it doesn't work any more -- as well, session_user(), user(),
current_date(), current_time(), current_timestamp() and etc. 


Thank you, Rod and Tom.



Regards,
Masaru Sugawara





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

Предыдущее
От: Manfred Koizar
Дата:
Сообщение: Re: nested transactions
Следующее
От: "Matthew T. O'Connor"
Дата:
Сообщение: Re: Auto Vacuum Daemon (again...)