From: | Dave Page <dpage(at)vale-housing(dot)co(dot)uk> |
---|---|
To: | 'Markus Wollny' <Markus(dot)Wollny(at)computec(dot)de>, jm(dot)poure(at)freesurf(dot)fr, pgsql-cygwin(at)postgresql(dot)org |
Subject: | Re: Question about character encoding |
Date: | 2002-02-21 14:43:02 |
Message-ID: | FED2B709E3270E4B903EB0175A49BCB10475E0@dogbert.vale-housing.co.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-cygwin |
> -----Original Message-----
> From: Markus Wollny [mailto:Markus(dot)Wollny(at)computec(dot)de]
> Sent: 21 February 2002 14:30
> To: jm(dot)poure(at)freesurf(dot)fr; pgsql-cygwin(at)postgresql(dot)org
> Subject: Re: [CYGWIN] Question about character encoding
>
>
> Jean-Michel POURE [mailto:jm(dot)poure(at)freesurf(dot)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.
From | Date | Subject | |
---|---|---|---|
Next Message | Henshall, Stuart - WCP | 2002-02-21 17:23:22 | Re: Poor performance |
Previous Message | Markus Wollny | 2002-02-21 14:30:21 | Re: Question about character encoding |