[Rt-commit] rt branch, 4.2/postgres-9.6, created. rt-4.2.13-102-gf8863f8
Shawn Moore
shawn at bestpractical.com
Tue Jan 10 13:25:41 EST 2017
The branch, 4.2/postgres-9.6 has been created
at f8863f8d4b762b533875cde149cf1b41c3f45386 (commit)
- Log -----------------------------------------------------------------
commit f8863f8d4b762b533875cde149cf1b41c3f45386
Author: Shawn M Moore <shawn at bestpractical.com>
Date: Tue Jan 10 12:25:54 2017 -0500
Replace deprecated NOCREATEUSER with NOSUPERUSER
Postgres 9.6 dropped support for the long-deprecated NOCREATEUSER flag
to CREATE USER, which was documented as such:
These clauses are an obsolete, but still accepted, spelling of SUPERUSER
and NOSUPERUSER. Note that they are not equivalent to CREATEROLE as one
might naively expect!
This commit uses the suggested NOSUPERUSER in its place. Though
NOSUPERUSER is the default, it's best to be explicit.
Fixes: I#32511
diff --git a/etc/acl.Pg b/etc/acl.Pg
index a659d8e..dd1b334 100644
--- a/etc/acl.Pg
+++ b/etc/acl.Pg
@@ -66,7 +66,7 @@ sub acl {
# if there's already an rt_user, use it.
my @row = $dbh->selectrow_array( "SELECT usename FROM pg_user WHERE usename = '$db_user'" );
unless ( $row[0] ) {
- push @acls, "CREATE USER \"$db_user\" WITH PASSWORD '$db_pass' NOCREATEDB NOCREATEUSER;";
+ push @acls, "CREATE USER \"$db_user\" WITH PASSWORD '$db_pass' NOCREATEDB NOSUPERUSER;";
}
foreach my $table (@tables) {
-----------------------------------------------------------------------
More information about the rt-commit
mailing list