From: Gregory Maxwell <gmaxwell@gmail.com>
To: pgsql-admin@postgresql.org
Subject: UTF-8 vs ASCII
Date: Wed, 26 Apr 2006 16:11:47 -0400
Message-ID: <e692861c0604261311p6f6af44dv732882e61bce0ef2@mail.gmail.com> (raw)
In-Reply-To: <e692861c0604261310g4514476an7385fbae04862565@mail.gmail.com>
References: <444FD1A8.7060306@nqadmin.com>
<e692861c0604261310g4514476an7385fbae04862565@mail.gmail.com>
On 4/26/06, Prasanth <dbadmin@nqadmin.com> wrote:
> Hi,
>
> Seems like by default database is created using UTF-8 when we use
> createdb in 8.1.3.
>
> Is there any big advantage of using UTF-8 rather than ASCII? Will there
> be any performance difference when performing string operations?
>
> Does the string functions convert every thing to UTF-8 before performing
> the operations?
>
> Surely it is going to increase by database size if we switch to UTF-8.
>
> All the characters in my database should be ASCII. I use JDBC so will
> there be any performance gain as the JDBC does not have to perform the
> conversion?
Perhaps you are confusing UTF-8 and UTF-16?
UTF-8 is a strict superset of ASCII with the same physical encoding
for ASCII characters.
See:
http://en.wikipedia.org/wiki/ASCII
and
http://en.wikipedia.org/wiki/UTF-8
(and BTW, your email address bounced)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: gmaxwell@gmail.com
Subject: Re: UTF-8 vs ASCII
In-Reply-To: <e692861c0604261311p6f6af44dv732882e61bce0ef2@mail.gmail.com>
References: <444FD1A8.7060306@nqadmin.com> <e692861c0604261310g4514476an7385fbae04862565@mail.gmail.com> <e692861c0604261311p6f6af44dv732882e61bce0ef2@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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