FAQ
I have a set of tests for one application When the test case calls
psql, the .pgpass file is used.

When the test case is run through Perl and DBI, we get:

DBI connect('dbname=[dbname]','',...) failed: fe_sendauth: no password supplied

Is this normal? I would have thought the call to libpq would have
been where the .pgpass handling would occur. Am I missing something?

Granted this is an older version of DBD::Pg (pre-2.0) but I would have
thought this was lower-level than that.

Best Wishes,
Chris Travers

Search Discussions

  • Greg Sabino Mullane at Dec 8, 2008 at 12:15 am

    I have a set of tests for one application When the test case calls
    psql, the .pgpass file is used.

    When the test case is run through Perl and DBI, we get:

    DBI connect('dbname=[dbname]','',...) failed: fe_sendauth: no password supplied
    As you say, this is handled by libpq, and should be transparent to DBD::Pg.
    Check that the same username, port, and host are being used. Showing the
    exact error message to us may help too.


    - --
    Greg Sabino Mullane greg@turnstep.com
    End Point Corporation
    PGP Key: 0x14964AC8 200812071912
    http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdbd-pg @
categoriesperl
postedDec 4, '08 at 9:32p
activeDec 8, '08 at 12:15a
posts2
users2
websiteperl.org

People

Translate

site design / logo © 2022 Grokbase