pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mailing List <list@1006.org>
To: Eric M. Wulff <ewulff@footbag.org>
Cc: pgsql-admin@postgresql.org
Subject: Re: postgres installed via rpms -can't run postmaster or
Date: 18 Oct 2003 23:30:06 +0200
Message-ID: <1066512606.1986.27.camel@linuxbox> (raw)
In-Reply-To: <1066508130.2275.89.camel@ewulff>
References: <1066508130.2275.89.camel@ewulff>

On Sat, 2003-10-18 at 22:15, Eric M. Wulff wrote:
> This is very helpful.  My next problem is setting up a db.  createdb fails...
> 
> "psql: FATAL:  user "blah" does not exist
> createdb: database creation failed"
>  
> The user is either myself or root.  Of course, doesn't like root.   How
> do I get psql to recognize me as a user.

As root become the user postgres by giving:
  su - postgres
Now create a postgres user named after your normal OS user account (blah
I guess?):
  createuser blah
(createuser is a postgres command). If you answer yes to the question
whether the new user should be able to create DBs your done. Now as OS
user blah you can do a createdb.

Bye, Chris.





view thread (7+ messages)  latest in thread

Message-ID: <1066512606.1986.27.camel@linuxbox>
Permalink:  ../1066512606.1986.27.camel@linuxbox/
Also on:    postgresql.org/message-id/1066512606.1986.27.camel@linuxbox

 · 

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: list@1006.org, ewulff@footbag.org
  Subject: Re: postgres installed via rpms -can't run postmaster or
  In-Reply-To: <1066512606.1986.27.camel@linuxbox>
  References: <1066508130.2275.89.camel@ewulff> <1066512606.1986.27.camel@linuxbox>

* 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