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)
Список
Дерево обсуждения
Is current_user a function ? Masaru Sugawara <rk73@sea.plala.or.jp>
Re: Is current_user a function ? Rod Taylor <rbt@rbt.ca>
Re: Is current_user a function ? Masaru Sugawara <rk73@sea.plala.or.jp>
Re: Is current_user a function ? Tom Lane <tgl@sss.pgh.pa.us>
On 28 Nov 2002 11:34:49 -0500 Rod Taylor wrote: > Force the system to use it as a function. > select "current_user"(); On Thu, 28 Nov 2002 17:20:59 -0500 Tom Lane 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 по дате отправления