"B.N.V. Raman" <raman(at)myself(dot)com> writes:
> Yes, my webserver and database server are on the same machine. That is why i
> can't understand the error. Sorry, I forgot to mention that in my mail. What
> could be the problem?
Perhaps the access from the webserver is coming from a virtual IP
address that is not listed in pg_hba.conf.
regards, tom lane