X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B08338B9E0E for ; Tue, 22 Feb 2005 05:45:32 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 19352-03 for ; Tue, 22 Feb 2005 05:45:30 +0000 (GMT) Received: from mail.coretech.co.nz (coretech.co.nz [202.36.204.41]) by svr1.postgresql.org (Postfix) with ESMTP id C1E5E8B9D23 for ; Tue, 22 Feb 2005 05:45:28 +0000 (GMT) Received: (qmail 26837 invoked from network); 22 Feb 2005 05:45:22 -0000 Received: from 218-101-14-65.paradise.net.nz (HELO ?192.168.1.11?) (218.101.14.65) by 0 with SMTP; 22 Feb 2005 05:45:22 -0000 Message-ID: <421AC6F3.5010102@coretech.co.nz> Date: Tue, 22 Feb 2005 18:45:23 +1300 From: Mark Kirkwood User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20041016 X-Accept-Language: en-us, en MIME-Version: 1.0 To: amrit@health2.moph.go.th Cc: PGsql-performance Subject: Re: Problem with 7.4.5 and webmin 1.8 in grant function 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> In-Reply-To: <1109048458.421abc8a280ed@webmail.moph.go.th> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.01 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200502/293 X-Sequence-Number: 10622 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