From: hubert depesz lubaczewski <depesz@depesz.pl>
To: pgsql-general@postgresql.org
Cc: PGSQL-SQL <pgsql-sql@postgresql.org>
Subject: creating tables with different character set?
Date: Thu, 22 Feb 2001 08:20:45 +0100
Message-ID: <20010222082045.B1657@depeszws.depesz.pl> (raw)
hi,
i have a problem. i'm living in poland, which has its national characters. of
course they work great under postgresql, but:
when i use non-C locale all ~ '^xxx' and like 'xxx%' searches are not using
index scan.
this is paintful.
for some of the tables i dont need all national characters. in fact i use only
a-z0-9 characters which are subset of standard C-locale character set.
so my question is. is it possible to make a table that way, that it will allow
using indexing when searching for first x characters of string.
at the moment the only solution i got is to make another database (with another
postmaster process), but this is definetly not easy way.
any other options?
depesz
--
hubert depesz lubaczewski http://www.depesz.pl/
------------------------------------------------------------------------
najwspanialszą rzeczą jaką dało nam nowoczesne społeczeństwo,
jest niesamowita wręcz łatwość unikania kontaktów z nim ...
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-sql@postgresql.org
Cc: depesz@depesz.pl, pgsql-general@postgresql.org
Subject: Re: creating tables with different character set?
In-Reply-To: <20010222082045.B1657@depeszws.depesz.pl>
References: <20010222082045.B1657@depeszws.depesz.pl>
* 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