Re: ident auth does not works as usual

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: pan snowave <windxp(at)live(dot)cn>
Cc: Alban Hertroys <haramrae(at)gmail(dot)com>, "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: ident auth does not works as usual
Date: 2023-08-28 14:44:09
Message-ID: CAKFQuwa4WC6LUXwRxxAkxAyqPOeLhxKBQfDkeUBxgkDZi++urw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Aug 28, 2023 at 7:34 AM pan snowave <windxp(at)live(dot)cn> wrote:

> But when i connect to psserver by using os user root
> /usr/local/pgsql/bin/psql -p5432 -d db1 -h127.0.0.1
>

If you want to login as the cce role add " -U cce " to your command line
(or one of the various other ways you can specify a db role name via the
cli or libpq)

psql -U cce -h 127.0.0.1 -d db1

Keep in mind you could very well have two lines in your pg_ident.conf file:

test root cce
test root ddf

David J.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Mike Roest 2023-08-28 18:34:43 pg_visible_in_snapshot clarification
Previous Message Joseph Kennedy 2023-08-28 14:05:39 Re: PostgreSQL 12 reindex