Cannot connect as user

Wladek Walek <[email protected]>
Newsgroups gmane.comp.db.postgresql.dbdpg
Message-ID <[email protected]>
Hi, I've created a program in perl to retrieve data from database in 
PostgreSQL, but the output gives me: FATAL: Ident authentification 
failed for user "postgres" at line ....

The script in my program is here:

my $dbh = DBI->connect("dbi:Pg:dbname=providers;host=localhost", 
"postgres", "password", {AutoCommit=>0,RaiseError=>1});

...where providers is name of the db...

Please help me! :)
Thank you for asnwer

Wladek Walek, Czech Republic
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.