perhaps posting a sample stub of code and the relevant entries in pg_hba.conf
might make it easier to understand what might be wrong?
Michael E Mercer <mmercer@lboard.com> wrote in message news:<3C960A14.B45611B@lboard.com>...
> Hello,
>
> I have a java program running as root and tries to connect to database
> as user
> 'A' with password 'A'.
>
> The pg_hba.conf is set to allow users to connect from any host with md5
> authentication.
>
> The java program uses the same method to connect to the database,
> however
> sometimes authentication
> succeeds and sometimes it fails. The user and password are hard coded,
> so there
> is no probable error there.
>
> Any ideas?
>
> Thanks
> Michael Mercer