Re: blocking the alter role command

From: Fabrízio de Royes Mello <fabriziomello(at)gmail(dot)com>
To: JotaComm <jota(dot)comm(at)gmail(dot)com>
Cc: Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: blocking the alter role command
Date: 2016-01-12 22:39:48
Message-ID: CAFcNs+oSRxN=qyjs81JPXVBCoPJmS5wVPiLjrK-uenuXTbFMMQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Jan 12, 2016 at 8:32 PM, JotaComm <jota(dot)comm(at)gmail(dot)com> wrote:
>
> Hello,
>
> I would like to know if is it possible to block the following command:
ALTER USER myuser PASSWORD;
>
> My target is allow to execute this command from a specific address.
>
> Thanks a lot.
>

You should implement an extension using ProcessUtility_hook todo that. See
an example in [1]

Regards,

[1] https://github.com/michaelpq/pg_plugins/tree/master/hook_utility

--
Fabrízio de Royes Mello
Consultoria/Coaching PostgreSQL
>> Timbira: http://www.timbira.com.br
>> Blog: http://fabriziomello.github.io
>> Linkedin: http://br.linkedin.com/in/fabriziomello
>> Twitter: http://twitter.com/fabriziomello
>> Github: http://github.com/fabriziomello

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jim Nasby 2016-01-12 22:44:18 Weird behavior during CREATE EXTENSION
Previous Message JotaComm 2016-01-12 22:32:37 blocking the alter role command