Re: Question

Поиск
Список
Период
Сортировка
От Ross J. Reedstrom
Тема Re: Question
Дата
Msg-id 20020807031514.GA5933@rice.edu
обсуждение исходный текст
Ответ на Question  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
Список pgsql-hackers
On Thu, Aug 01, 2002 at 10:09:11AM +0800, Christopher Kings-Lynne wrote:
> How do I find the current username a query is running as from within the
> backend?  I'm thinking of improving the permission denied errors a bit...
> 
> I see GetUserId(), but how do I get a char* of the username...

Checking the code for current_user, I see GetUserName(), which takes a
UserID and returns the username, as a char *.

Ross


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

Предыдущее
От: Don Baccus
Дата:
Сообщение: Re: Why is MySQL more chosen over PostgreSQL?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Join syntax and join order