pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
[ NOVICE ] Name of database under postgresSQL
2+ messages / 2 participants
[nested] [flat]

* [ NOVICE ] Name of database under postgresSQL
@ 2002-10-01 13:39  valcauda Stéphane <valcauda.aderis@wanadoo.fr>
  0 siblings, 0 replies; 2+ messages in thread

From: valcauda Stéphane @ 2002-10-01 13:39 UTC (permalink / raw)
  To: pgsql-odbc

Hi,

I don't understand what is the name of database under postgresql.
With InitDB we put nothing else the directory.
THe first connection , I put psql -U <user> template1
which seem to create a default database template1.
Then, I create 2 database (CREATE DATABASE ) TEST and TEST2.

But with ODBC or directly in CYGWIN shell , if I try to connect to TEST or
TEST2
it says that it doesn't recognize these DB.

I don't understand.









^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: [ NOVICE ] Name of database under postgresSQL
@ 2002-10-01 14:02  Dave Page <dpage@vale-housing.co.uk>
  0 siblings, 0 replies; 2+ messages in thread

From: Dave Page @ 2002-10-01 14:02 UTC (permalink / raw)
  To: valcauda Stéphane <valcauda.aderis@wanadoo.fr>; pgsql-odbc



> -----Original Message-----
> From: valcauda Stéphane [mailto:valcauda.aderis@wanadoo.fr] 
> Sent: 01 October 2002 14:39
> To: PostgreSQL Mailing List
> Subject: [ODBC] [ NOVICE ] Name of database under postgresSQL
> 
> 
> Hi,
> 
> I don't understand what is the name of database under 
> postgresql. With InitDB we put nothing else the directory. 
> THe first connection , I put psql -U <user> template1 which 
> seem to create a default database template1. Then, I create 2 
> database (CREATE DATABASE ) TEST and TEST2.
> 
> But with ODBC or directly in CYGWIN shell , if I try to 
> connect to TEST or TEST2 it says that it doesn't recognize these DB.
> 
> I don't understand.

Upper, or mixed case names in PostgreSQL must be quoted e.g.

"TEST"

Otherwise it becomes

Test

And doesn't get found. The easy answer is to stick to lower case.

Regards, Dave.



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2002-10-01 14:02 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-10-01 13:39 [ NOVICE ] Name of database under postgresSQL valcauda Stéphane <valcauda.aderis@wanadoo.fr>
2002-10-01 14:02 Re: [ NOVICE ] Name of database under postgresSQL Dave Page <dpage@vale-housing.co.uk>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox