Re: Backup DB not getting connected - Mailing list pgsql-general

From J S B
Subject Re: Backup DB not getting connected
Date
Msg-id a47902760610161126v6afa2758vf9f01ad11fb0261a@mail.gmail.com
Whole thread Raw
In response to Re: Backup DB not getting connected  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
i changed my connection string as follows keeping newDB in double quotes

EXEC SQL CONNECT TO tcp:postgresql://192.168.1.1:5432/"newDB"

Unfortunately these doulbe quotes lead to syntax error.
Can you tell me what is the right syntax for the same.

Thanks

On 10/13/06, Tom Lane <tgl@sss.pgh.pa.us> wrote:
"J S B" <jsbali@gmail.com> writes:
> well, newDB is the name of the database and that what I'm tryin to connect.
> I'm tryin to keep it the same case in ECPG code as it is in the Database.
> Do u mean to say that combination of upper and lower case is not allowed?

No, I mean to say that names will get downcased in some situations if
not double-quoted.  I wonder whether your database is *really* named
"newDB" and not "newdb" ... if it is, you probably need double quotes in
your ECPG call, and if it isn't, you probably need to spell it as newdb
not newDB in ECPG.

                        regards, tom lane

pgsql-general by date:

Previous
From: "Brandon Metcalf"
Date:
Subject: old Pg interface
Next
From: Tom Lane
Date:
Subject: Re: RES: Dates rejected