Re: Several problems with installation on FreeBSD - how to reinstall without loosing data

From: Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "Jon Theil Nielsen *EXTERN*" <jontheil(at)gmail(dot)com>, Kevin Grittner <kgrittn(at)ymail(dot)com>
Cc: "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Several problems with installation on FreeBSD - how to reinstall without loosing data
Date: 2013-09-17 07:24:12
Message-ID: A737B7A37273E048B164557ADEF4A58B17C21304@ntex2010a.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Theil Nielsen wrote:
> First error message:
> "postgres[15928]: [29993-1] FATAL: role "root" does not exist"
>
> Created user "root" with a command like "createuser -sdrP root" (not absolutely sure).
>
> After restart, I got the error message:
> "FATAL: database "root" does not exist"
>
> Then, from the webmin interface, I created an empty database called "root" owned by user "root" using
> no template.

That looks like you are OS user "root" and type "psql" on the command line.
By default PostgreSQL will try to use the OS user name for database user and
database.

A wild guess: could it be that you mean to call "psql"
as OS user "pgsql" and not as "root"?

> After restart, I now got the error message:
> "FATAL: connection to client lost".

Ok, that seems to be a different problem.

Are there any odd things in the database log?

Yours,
Laurenz Albe

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Jon Theil Nielsen 2013-09-17 09:38:29 Re: Several problems with installation on FreeBSD - how to reinstall without loosing data
Previous Message Christofer C. Bell 2013-09-17 06:16:06 Re: Several problems with installation on FreeBSD - how to reinstall without loosing data