Thread: pgsql: Fix ALTER DATABASE RENAME to allow the operation if user is a

pgsql: Fix ALTER DATABASE RENAME to allow the operation if user is a

From
tgl@svr1.postgresql.org (Tom Lane)
Date:
Log Message:
-----------
Fix ALTER DATABASE RENAME to allow the operation if user is a superuser
who for some reason isn't marked usecreatedb.  Per report from Alexander
Pravking.  Also fix sloppy coding in have_createdb_privilege().

Tags:
----
REL8_0_STABLE

Modified Files:
--------------
    pgsql/src/backend/commands:
        dbcommands.c (r1.148 -> r1.148.4.1)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/commands/dbcommands.c.diff?r1=1.148&r2=1.148.4.1)