terraform-provider-postgresql icon indicating copy to clipboard operation
terraform-provider-postgresql copied to clipboard

Support for ALTER ROLE xxx SET yyy = zzz;

Open BennettKnapek opened this issue 2 years ago • 4 comments

Hi there,

There is no resource that allows "ALTER ROLE SET = " for use with extensions. Specifically the extension PGAudit (https://www.pgaudit.org/).

This will allow for quicker configuration of these extensions as well as keep all the configuration of a database in one file system rather than having to run these commands after the initial 'terraform apply'.

Please let me know what you think or if this has already been implemented elsewhere.

BennettKnapek avatar May 16 '22 20:05 BennettKnapek

Hi,

In our use case, we need to enable log_statement for some users.

It will be valuable to have the possibility to set specific settings like ALTER ROLE [user] SET log_statement TO 'all'

vmercierfr avatar Jun 10 '22 15:06 vmercierfr

Hi!

We're also in need of this functionality. It would be great if you could set a default role, eg ALTER ROLE my_user SET role some_other_role

robinjhector avatar Jul 07 '22 12:07 robinjhector

hi all. @cyrilgdn you have any plans about this feature request ?

ALX-TH avatar Aug 02 '22 11:08 ALX-TH

This PR makes it easier to add new user parameters + fixes 0-value issue. Probably that will fix that issue as well.

Anton-Shutik avatar Oct 25 '23 15:10 Anton-Shutik