pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mark Kirkwood <markir@coretech.co.nz>
To: amrit@health2.moph.go.th
Cc: PGsql-performance <pgsql-performance@postgresql.org>
Subject: Re: Problem with 7.4.5 and webmin 1.8 in grant function
Date: Tue, 22 Feb 2005 18:45:23 +1300
Message-ID: <421AC6F3.5010102@coretech.co.nz> (raw)
In-Reply-To: <1109048458.421abc8a280ed@webmail.moph.go.th>
References: <1108914570.4218b18a2cf0d@webmail.moph.go.th>
	<42191623.7060401@coretech.co.nz>
	<1108949685.42193ab53e07c@webmail.moph.go.th>
	<421A4F96.60803@coretech.co.nz>
	<1109048458.421abc8a280ed@webmail.moph.go.th>

amrit@health2.moph.go.th wrote:
> 
> I used you perl script and found the error =>
> [root@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




view thread (12+ messages)  latest in thread

Message-ID: <421AC6F3.5010102@coretech.co.nz>
Permalink:  ../421AC6F3.5010102@coretech.co.nz/
Also on:    postgresql.org/message-id/421AC6F3.5010102@coretech.co.nz

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: markir@coretech.co.nz, amrit@health2.moph.go.th
  Subject: Re: Problem with 7.4.5 and webmin 1.8 in grant function
  In-Reply-To: <421AC6F3.5010102@coretech.co.nz>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox