Re: created databases as other users... - Mailing list pgsql-general

From Tom Lane
Subject Re: created databases as other users...
Date
Msg-id 22464.1097528464@sss.pgh.pa.us
Whole thread Raw
In response to created databases as other users...  (Jonathan Villa <jvilla@innovativesource.net>)
Responses Re: created databases as other users...  (Jonathan Villa <jvilla@innovativesource.net>)
List pgsql-general
Jonathan Villa <jvilla@innovativesource.net> writes:
> $ createdb --owner=testcon testdb
> but the owner ends up being postgres

I don't think so.

$ createuser testcon
Shall the new user be allowed to create databases? (y/n) n
Shall the new user be allowed to create more new users? (y/n) n
CREATE USER
$ createdb --owner=testcon testdb
CREATE DATABASE
$ psql -l
        List of databases
    Name    |  Owner  | Encoding
------------+---------+-----------
 pltest     | tgl     | SQL_ASCII
 regression | tgl     | SQL_ASCII
 template0  | tgl     | SQL_ASCII
 template1  | tgl     | SQL_ASCII
 testdb     | testcon | SQL_ASCII
(5 rows)

$

            regards, tom lane

pgsql-general by date:

Previous
From: Jonathan Villa
Date:
Subject: created databases as other users...
Next
From: Jonathan Villa
Date:
Subject: Re: created databases as other users...