On Wed, 2004-07-28 at 14:08, Geoff Caplan wrote:
> Jay,
>
> J> hi people,
> J> i have been trying to connect to the database using php. but i am not
> J> able to do so .i am getting the following errors
>
> You won't get in as user "Jay" on the default access settings. Unless
> you change the settings, Postgres expects to the system user to have
> the same username as the Postgres user. So the path of least
> resistance is to set up a Postgres user with the same name as Apache
> has on your system, and use that as the username in pg_connect().
Actually, with ident turned on, you shouldn't need to have a user listed
in pg_connect, or a password.