pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dae-man Yang <yangsclub@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: initdb using option "username" startup log
Date: Tue, 30 Oct 2012 23:58:30 -0400
Message-ID: <28870.1351655910@sss.pgh.pa.us> (raw)
In-Reply-To: <CAGd0d=uH1=WVqa1d3-ruCJ3RC-t0F9YfbdTG0KpLUnt-SJEHtA@mail.gmail.com>
References: <CAGd0d=uH1=WVqa1d3-ruCJ3RC-t0F9YfbdTG0KpLUnt-SJEHtA@mail.gmail.com>

Dae-man Yang <yangsclub@gmail.com> writes:
> I initdb like below
> "initdb --pgdata=/pg_data --encoding='utf8' --locale='C' --lc-collate='C'
> --lc-ctype='C' --username=sys --pwprompt"

OK.  The --username switch specifies the name of the initial database
superuser.  Instead of "postgres", it's going to be "sys".

> When startup database server.
> Server wirte log like this
> -----------------------------
> LOG:  database system was shut down at 2012-10-31 12:00:14 KST
> LOG:  database system is ready to accept connections
> LOG:  autovacuum launcher started
> FATAL:  role "postgres" does not exist
> -----------------------------

> *What is it ? : FATAL:  role "postgres" does not exist*

That would be the trace of something trying to connect as user
"postgres", which doesn't exist because you told initdb to create "sys"
instead.  The database is up and running, but you'll only be able to
connect to it by specifying the username "sys" (at least until you make
some more database roles).

			regards, tom lane




view thread (3+ messages)  latest in thread

Message-ID: <28870.1351655910@sss.pgh.pa.us>
Permalink:  ../28870.1351655910@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/28870.1351655910@sss.pgh.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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, yangsclub@gmail.com
  Subject: Re: initdb using option "username" startup log
  In-Reply-To: <28870.1351655910@sss.pgh.pa.us>
  References: <CAGd0d=uH1=WVqa1d3-ruCJ3RC-t0F9YfbdTG0KpLUnt-SJEHtA@mail.gmail.com> <28870.1351655910@sss.pgh.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