From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: alexandre.marquis@mamot.gouv.qc.ca
Subject: BUG #15275: Trigger don't take supperuser role into account to create role
Date: Wed, 11 Jul 2018 17:14:17 +0000
Message-ID: <153132925706.1402.11578156245015430856@wrigleys.postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 15275
Logged by: Alexandre Marquis
Email address: alexandre.marquis@mamot.gouv.qc.ca
PostgreSQL version: 10.0
Operating system: Windows
Description:
I've got a trigger whose purpose is to create a postgres user every time an
employee is added to my employee table. If I use my SUPERUSER account to add
an employee it doesn't work because I've got NOCREATEROLE instead of
CREATEROLE. But according to the CREATE ROLE docs at
https://www.postgresql.org/docs/10/static/sql-createrole.html, " You must
have CREATEROLE privilege or be a database superuser to use this command."
so as a superuser this should work.
Thx for the help!
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: noreply@postgresql.org, alexandre.marquis@mamot.gouv.qc.ca
Subject: Re: BUG #15275: Trigger don't take supperuser role into account to create role
In-Reply-To: <153132925706.1402.11578156245015430856@wrigleys.postgresql.org>
References: <153132925706.1402.11578156245015430856@wrigleys.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox