Re: Problem with 7.4.5 and webmin 1.8 in grant function

From: amrit(at)health2(dot)moph(dot)go(dot)th
To: PGsql-performance <pgsql-performance(at)postgresql(dot)org>
Cc: Mark Kirkwood <markir(at)coretech(dot)co(dot)nz>
Subject: Re: Problem with 7.4.5 and webmin 1.8 in grant function
Date: 2005-02-22 15:37:19
Message-ID: 1109086639.421b51af6edd4@webmail.moph.go.th
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

> > I used you perl script and found the error =>
> > [root(at)samba tmp]# perl relacl.pl
> > DBI connect('dbname=template1;port=5432','postgres',...) failed: FATAL:
> IDENT
> > authentication failed for user "postgres" at relacl.pl line 21
> > Error in connect to DBI:Pg:dbname=template1;port=5432:
> >
> >
> Excellent - we know what is going on now!
>
>
> > And my pg_hba.conf is
> >
> > # IPv4-style local connections:
> > host all all 127.0.0.1 255.255.255.255 trust
> > host all all 192.168.0.0 255.255.0.0 trust
> >
> > trusted for every user.
>
> Ok, what I think has happened is that there is another Pg installation
> (or another initdb'ed cluster) on this machine that you are accidentally
> talking to. Try
>
> $ rpm -qa|grep -i postgres
>
> which will spot another software installation, you may just have to
> search for files called pg_hba.conf to find another initdb'ed cluster....
>
> This other installation should have a pg_hba.conf that looks something
> like :
>
> local all all ident
> host all all 127.0.0.1 255.255.255.255 ident
>
> So a bit of detective work is in order :-)
>
> Mark
After being a detector I found that
[root(at)samba ~]# rpm -qa|grep -i postgres
postgresql-7.4.5-3.1.tlc
postgresql-python-7.4.5-3.1.tlc
postgresql-jdbc-7.4.5-3.1.tlc
postgresql-tcl-7.4.5-3.1.tlc
postgresql-server-7.4.5-3.1.tlc
postgresql-libs-7.4.5-3.1.tlc
postgresql-docs-7.4.5-3.1.tlc
postgresql-odbc-7.3-8.1.tlc
postgresql-pl-7.4.5-3.1.tlc
postgresql-test-7.4.5-3.1.tlc
postgresql-contrib-7.4.5-3.1.tlc
[root(at)samba ~]#

no other pg installation except the pgsql for windows in samba folder which I
think it isn't matter ,is it?
No other pg being run.
[root(at)samba ~]# ps ax|grep postmaster
2228 ? S 0:00 /usr/bin/postmaster -p 5432 -D /var/lib/pgsql/data
3308 pts/0 S+ 0:00 grep postmaster
[root(at)samba ~]#

Is it possible that it is related to pg_ident.conf ?

Any comment please.
Amrit,Thailand

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Mitch Pirtle 2005-02-22 16:30:28 Re: PostgreSQL is extremely slow on Windows
Previous Message Vig, Sandor (G/FI-2) 2005-02-22 15:00:59 PostgreSQL is extremely slow on Windows