Hi Tom,
> Am 14.08.2018 um 17:07 schrieb Tom Lane :
>
> I'd say that's generally deprecated. Per the documentation, you can write
> CREATE USER commands in an extension script if you like, but the roles
> won't be considered to "belong" to the extension, and won't be dropped
> when it is. This
Alvar Freude writes:
> I have a question about best practices writing PostgreSQL extensions. Is it
> OK to write extensions which create users and grant/revoke rights on the
> created functions to this users?
I'd say that's generally deprecated. Per the documentation, you can write
CREATE USER