Re: Regarding Postgres access through C

From: Naz Gassiep <naz(at)mira(dot)net>
To: Krishnaprasad <k(dot)krishna(at)hcl(dot)in>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Regarding Postgres access through C
Date: 2006-02-23 10:14:39
Message-ID: 43FD8B0F.8030703@mira.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

you have to connect to the database using the operating system's
database user. This is usually "postgres" in most default installs. if
your program is running as root, it will need to specify the user it
wants to use when connecting to the db.

- MrNaz.

Krishnaprasad wrote:
> Dear all
>
> While trying to connect to postgressql through C program iam
> getting the following error .....
> Connection to database failed.
> FATAL: user "root" does not exist
>
> How can I connect to the database as user 'postgres' through C .
>
> Rgds
> krishna
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
>

--
--------------------------------------------------------------
MrNaz photo gallery and journal at:
www.mrnaz.com

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Sears, Jeremy 2006-02-23 15:38:27 Re: php cant see new table!!
Previous Message A. Kretschmer 2006-02-23 10:14:13 Re: Regarding Postgres access through C