CREATE DATABASE foo OWNER bar

From: "Larry Rosenman" <ler(at)lerctr(dot)org>
To: <pgsql-hackers(at)postgresql(dot)org>
Subject: CREATE DATABASE foo OWNER bar
Date: 2007-04-16 12:47:06
Message-ID: 002701c78025$5d6fc5e0$184f51a0$@org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Greetings,
I think I found a bug, or at least a POLA violation. At work, I created
a user that is NOT a superuser, nor can that user create databases. When I
did a create database foo owner bar, all the schemas are set to be owned by
the superuser that created the database, not the database owner.

Shouldn't everything that is in the DB be owned by the purported owner?

This is on 8.2.3, btw.

Thanks!

--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 512-248-2683 E-Mail: ler(at)lerctr(dot)org
US Mail: 430 Valona Loop, Round Rock, TX 78681-3893

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2007-04-16 13:49:10 Re: Build-Problem with pgc.c on OSX 10.4
Previous Message Ottó Havasvölgyi 2007-04-16 09:51:24 Re: Eliminating unnecessary left joins