From: | "Mario Weilguni" <mario(dot)weilguni(at)icomedias(dot)com> |
---|---|
To: | <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Fixed length data types issue |
Date: | 2006-09-15 11:38:54 |
Message-ID: | FA095C015271B64E99B197937712FD020E4B0CBA@freedom.grz.icomedias.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
What about the "char" type? Isn't it designed for that? Or will this type disappear in future releases?
-----Ursprüngliche Nachricht-----
Von: pgsql-hackers-owner(at)postgresql(dot)org [mailto:pgsql-hackers-owner(at)postgresql(dot)org] Im Auftrag von Heikki Linnakangas
Gesendet: Freitag, 15. September 2006 13:35
An: Martijn van Oosterhout
Cc: stark(at)enterprisedb(dot)com; pgsql-hackers(at)postgresql(dot)org
Betreff: Re: [HACKERS] Fixed length data types issue
Martijn van Oosterhout wrote:
> I don't think making a special typlen value just for a type that can
> store a single UTF-8 character is smart. I just can't see enough use
> to make it worth it.
>
Assuming that we can set encoding per-column one day, I agree. If you have a CHAR(1) field, you're going to store codes like 'A', 'B', 'C' or '1', '2', '3' in it, and you don't need UTF-8 for that.
--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com
---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend
From | Date | Subject | |
---|---|---|---|
Next Message | Martijn van Oosterhout | 2006-09-15 11:45:18 | Re: Fixed length data types issue |
Previous Message | Heikki Linnakangas | 2006-09-15 11:34:42 | Re: Fixed length data types issue |