Re: created databases as other users...

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: jvilla(at)innovativesource(dot)net
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: created databases as other users...
Date: 2004-10-11 21:01:04
Message-ID: 22464.1097528464@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jonathan Villa <jvilla(at)innovativesource(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jonathan Villa 2004-10-11 21:10:19 Re: created databases as other users...
Previous Message Jonathan Villa 2004-10-11 20:48:49 created databases as other users...