Re: Can't access Cluster

From: "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "Ralph Smith *EXTERN*" <smithrn(at)u(dot)washington(dot)edu>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: Can't access Cluster
Date: 2007-10-03 06:04:58
Message-ID: D960CB61B694CF459DCFB4B0128514C24FA283@exadv11.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ralph Smith wrote:
> I'm using 7.4 before we upgrade.
> pg_dumpall worked fine on working cluster.
> I Imported it all into a virgin install of 7.4 on a different box.
> Used pg_ctl to restart that box after the import. All went fine.
>
>
> On trying to connect as a valid user on that database I get:
> DATE TIME FATAL: IDENT authentication failed for user "username"
> psql FATAL: IDENT authentication failed for user "username"
>
>
> On that box pg_hba.conf has...
> local all all ident sameuser

See
http://www.postgresql.org/docs/current/static/auth-methods.html#AEN23442

Is your operating system one of Linux, FreeBSD, NetBSD,
OpenBSD, or BSD/OS?
Is there a database user with the same name as the
operating system user?

> None of the PG____ environment variables are set.
> I thought they would be c/o the import all.
> Where should I make them permanent?

Setting environment variables is your responsibility;
the procedure varies depending on your operating system.

On UNIX variants you usually set it in the shell profile.

Yours,
Laurenz Albe

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Stefan Schwarzer 2007-10-03 06:29:35 Re: Find min year and min value
Previous Message Albe Laurenz 2007-10-03 05:49:03 Re: Find out encoding of data