Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TTPRp-0008B7-4w for pgsql-bugs@postgresql.org; Wed, 31 Oct 2012 03:58:33 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TTPRo-0006wY-6y for pgsql-bugs@postgresql.org; Wed, 31 Oct 2012 03:58:32 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id q9V3wUak028871; Tue, 30 Oct 2012 23:58:30 -0400 (EDT) From: Tom Lane To: Dae-man Yang cc: pgsql-bugs@postgresql.org Subject: Re: initdb using option "username" startup log In-reply-to: References: Comments: In-reply-to Dae-man Yang message dated "Wed, 31 Oct 2012 12:09:16 +0900" Date: Tue, 30 Oct 2012 23:58:30 -0400 Message-ID: <28870.1351655910@sss.pgh.pa.us> X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201210/248 X-Sequence-Number: 34548 Dae-man Yang 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