From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
---|---|
To: | Salem Berhanu <salemb4(at)hotmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: postgres & server encodings |
Date: | 2005-08-09 15:59:46 |
Message-ID: | 20050809155946.GF8244@svana.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin pgsql-general |
On Mon, Aug 08, 2005 at 04:10:50PM +0000, Salem Berhanu wrote:
> What exactly is the SQL_ASCII encoding in postgres? I have a pg
> installation with an SQL_ASCII server encoding and my database (also
> SQL_ASCII) seems to be able to handle all types of encodings? how is this
> possible? is this what the server & db encoding needs to be set to in order
> to handle various encodings?
SQL_ASCII means that the database does no locale specific or language
specific encoding ever. It won't check what you send it either. If
you're content to let clients deal with any encoding issues, this may
be what you want.
But anything to do with lower(), upper(), case-insenstive in the
database itself will be totally stupid since it's assuming ASCII.
> Also is there a way of dumping data from an SQL_ASCII db to a UNICODE db.
> Creating a dump and converting with a tool like iconv is probably not an
> option since the data in the SQL_ASCII db has unknown/inconsistant encoding.
> Please let me know as soon as possible.
This is a messy situation. Since the system can't guess your encoding
you'd have to fix it all up yourself...
Hope this helps,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2005-08-09 16:48:09 | Re: postgres & server encodings |
Previous Message | Tom Lane | 2005-08-09 15:59:27 | Re: [GENERAL] postgres & server encodings |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2005-08-09 16:03:32 | Re: index being ignored for "limit n" queries |
Previous Message | Tom Lane | 2005-08-09 15:59:27 | Re: [GENERAL] postgres & server encodings |