Re: Event trigger and CREATE/ALTER ROLE/USER - Mailing list pgsql-hackers

From Tatsuo Ishii
Subject Re: Event trigger and CREATE/ALTER ROLE/USER
Date
Msg-id 20160914.095012.1279510882132368415.t-ishii@sraoss.co.jp
Whole thread Raw
In response to Re: Event trigger and CREATE/ALTER ROLE/USER  (Michael Paquier <michael.paquier@gmail.com>)
List pgsql-hackers
>>>> Simple question: Is there any reason for event trigger to not support
>>>> CREATE/ALTER ROLE/USER?
>>>
>>> Because it performs a global administrative task, no?
>>
>> So is there any technical difficulty?
> 
> I don't recall the exact details but...
> 
>> Can you please elaborate?
> 
> Roles are global objects, and event triggers cannot operate on such
> ones. See for example 296f3a60 mentioning for example why REVOKE/GRANT
> can only operate on local objects.

Thanks. I will look into it.

Pgpool-II has its own password file which needs to be sync with the
md5 hashed password of PostgreSQL. So I thought it would be nice if
the event trigger could be used for the purpose.

Best regards,
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese:http://www.sraoss.co.jp



pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Event trigger and CREATE/ALTER ROLE/USER
Next
From: Haribabu Kommi
Date:
Subject: Re: gettimeofday is at the end of its usefulness?