Re: Regarding Postgres access through C - Mailing list pgsql-novice

From Naz Gassiep
Subject Re: Regarding Postgres access through C
Date
Msg-id 43FD8B0F.8030703@mira.net
Whole thread Raw
In response to Regarding Postgres access through C  (Krishnaprasad <k.krishna@hcl.in>)
List 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@postgresql.org so that your
>       message can get through to the mailing list cleanly
>

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

pgsql-novice by date:

Previous
From: "A. Kretschmer"
Date:
Subject: Re: Regarding Postgres access through C
Next
From: "Kevin Crenshaw"
Date:
Subject: Re: SQL Question