pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Chris Cameron <chris@upnix.com>
Cc: C. Bensend <benny@bennyvision.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Multiple Servers
Date: Mon, 20 Aug 2001 23:56:56 -0400 (EDT)
Message-ID: <200108210356.f7L3uuS09849@candle.pha.pa.us> (raw)
In-Reply-To: <5.1.0.14.0.20010820210330.0358e410@mail.upnix.com>

> Alright,
> 
> Seems the general problem is that people (me and "Benny") want to do what 
> can be done with MySQL and be able to add a user, give them their own DB to 
> play with, and leave it at that. However, Postgres doesn't seem to have as 
> slick of a way to do such a thing because to let a user have control over 
> their own database, they would have had to of been able to create the DB. 
> And if they were able to create the DB, they'd be able to make others.
> 
> I managed to do this (albeit not very gracefully). I created the user 
> 'test' and game him permission to create DB's. Made a database with his 
> username, then took away his ability to create databases. This allowed him 
> to fool with his own DB (because he created it), but he could no longer 
> create new DB's.
> 
> Still, this seems like a bit of a crummy way to accomplish such a thing. I 
> haven't been around PostgreSQL long enough to know how development takes 
> place, but this is a decent feature to have in a DB I figure.

This is a valid inconvenience.  Seems we should allow a createdb option
to set the database owner.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026



view thread (16+ messages)  latest in thread

Message-ID: <200108210356.f7L3uuS09849@candle.pha.pa.us>
Permalink:  ../200108210356.f7L3uuS09849@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200108210356.f7L3uuS09849@candle.pha.pa.us

 · 

reply

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-admin@postgresql.org
  Cc: pgman@candle.pha.pa.us, chris@upnix.com, benny@bennyvision.com
  Subject: Re: Multiple Servers
  In-Reply-To: <200108210356.f7L3uuS09849@candle.pha.pa.us>
  References: <5.1.0.14.0.20010820210330.0358e410@mail.upnix.com> <200108210356.f7L3uuS09849@candle.pha.pa.us>

* 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