Re: Question about character encoding - Mailing list pgsql-cygwin

From Dave Page
Subject Re: Question about character encoding
Date
Msg-id FED2B709E3270E4B903EB0175A49BCB10475E0@dogbert.vale-housing.co.uk
Whole thread Raw
In response to Question about character encoding  ("Markus Wollny" <Markus.Wollny@computec.de>)
List pgsql-cygwin

> -----Original Message-----
> From: Markus Wollny [mailto:Markus.Wollny@computec.de]
> Sent: 21 February 2002 14:30
> To: jm.poure@freesurf.fr; pgsql-cygwin@postgresql.org
> Subject: Re: [CYGWIN] Question about character encoding
>
>
> Jean-Michel POURE [mailto:jm.poure@freesurf.fr] wrote:
>
> > SQL_ASCII encoding can handle most european languages, including
> German. So,
> > just create a database with SQL_ASCII encoding. And this will solve
> your
> > problem.
>
>
> Thanks - that did it. I just didn't think ASCII was the
> correct encoding
> as one usually relates ascii to one-byte standard characters.
>
> One more question though: It's actually possible to create databases
> with names in capital letters using PGAdmin II. As it's impossible to
> drop databases in PGAdmin, I tried to do it via pgsql. It
> seems however,
> that psql just automatically converts anything to lower case,
> therefore
> giving me "ERROR: DROP DATABASE: database "test" does not
> exist" when I
> try "drop database TEST;".
> When doing "select * from pg_database;" on template1 "TEST" is sitting
> there, glaring, without me being able to kick it. Therefore I have the
> impression that it's absolutely not advisable to create any
> object with
> capitals in it's name via PG Admin II. Is that correct? If so, why not
> automatically convert any names in the connect string to
> lower case, in
> order to prevent this from happening? Would there be still some way of
> dropping such a database even though it's not possible with neither PG
> Admin II nor psql?

Try

DROP DATABASE "TEST";

Mixed case identifiers must be quoted in PostgreSQL. In pgAdmin II, *only*
databases cannot be dropped so this isn't a major issue for most things.

Personally I keep everything lowercase, but that's just me :-)

Regards, Dave.

pgsql-cygwin by date:

Previous
From: "Markus Wollny"
Date:
Subject: Re: Question about character encoding
Next
From: "Henshall, Stuart - WCP"
Date:
Subject: Re: Poor performance