Re: [HACKERS] Updated TODO item - Mailing list pgsql-patches

From Tom Lane
Subject Re: [HACKERS] Updated TODO item
Date
Msg-id 11758.1014582234@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] Updated TODO item  (Gavin Sherry <swm@linuxworld.com.au>)
Responses Re: [HACKERS] Updated TODO item  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-patches
Gavin Sherry <swm@linuxworld.com.au> writes:
> On Fri, 4 Jan 2002, Kaare Rasmussen wrote:
>> CREATE DATABASE dbname WITH OWNER = "user"

> A much better idea. There is no conflict in using OWNER here.
> Revised patch attached.

I have applied this patch, with a couple of editorial tweaks, and one
not-so-minor change: superuser privilege is required to create a
database on behalf of another user.  Seems to me that CREATEDB
privilege should not be sufficient to allow such an operation.

Still to do: teach createdb script about it, and revise pg_dumpall
to use the facility instead of assuming that database owners have
CREATEDB privilege.  Working on those now ...

            regards, tom lane

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: ECPG patches: get descriptor NULL alloc, external names
Next
From: Neil Conway
Date:
Subject: ALTER TABLE OWNER: change indexes