Re: PostgreSQL and case insensitivity...

From: elein <elein(at)varlena(dot)com>
To: "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com>
Cc: Robert Bernier <robert(dot)bernier5(at)sympatico(dot)ca>, PostgreSQL advocacy <pgsql-advocacy(at)postgresql(dot)org>, Charles Phares <cphares(at)mac(dot)com>
Subject: Re: PostgreSQL and case insensitivity...
Date: 2006-01-17 01:37:38
Message-ID: 20060117013738.GP20674@varlena.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-advocacy

Just for the record, you can create a data type and implement
the sort order you want on that data type. This is done
by overriding the > < = operators and functions.
A standard example for illustra/informix is/was name fields which
sorted Mc Mac names together.

To use regex stuff you would need to override those functions.

--elein
elein(at)varlena(dot)com

On Mon, Jan 16, 2006 at 02:30:25PM -0600, Jim C. Nasby wrote:
> The problem with using colation order is that it's database-wide. If you
> then need case-sensitive ordering on some field you're outa luck. If you
> could define colation on a per-field basis it would be a bit different.
>
> I'm also not sure what this has to do with advocacy...
>
> On Sun, Jan 15, 2006 at 10:35:28AM -0500, Robert Bernier wrote:
> > Guys,
> >
> > I'm forwarding this email for your comments.
> >
> > On January 15, 2006 09:51 am, Charles Phares wrote:
> > > Hi Robert,
> > >
> > > Thanks for taking the time to respond. Yet another solution which I
> > > was unaware of. Must do a closer read of the documentation! :)
> > >
> > > The regexp functions are great for doing equality tests, but they
> > > will not help with ranged searches or inequality tests. (i.e.
> > > greater than or less than)
> > >
> > > I really require full-feature support for case insensitivity.
> > >
> > > The project page for CITEXT -- http://gborg.postgresql.org/project/
> > > citext/faq/faq.php?faq_id=105 -- claims that PostgreSQL is unable to
> > > define the collating sequence of characters. This seems to be the
> > > root of my problem. I know that other database systems -- Sybase &
> > > Microsoft SQL Server for instance -- use a user selectable server
> > > wide collation sequence to implement case insensitivity. This seems
> > > to be the best solution for portability and compatibility with other
> > > RDBMS systems.
> > >
> > > What would it take to rally the PostgreSQL community to embrace this
> > > problem?
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 6: explain analyze is your friend
> >
>
> --
> Jim C. Nasby, Sr. Engineering Consultant jnasby(at)pervasive(dot)com
> Pervasive Software http://pervasive.com work: 512-231-6117
> vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
>

In response to

Browse pgsql-advocacy by date

  From Date Subject
Next Message Robert Bernier 2006-01-17 09:02:26 Re: PostgreSQL and case insensitivity...
Previous Message Jim C. Nasby 2006-01-16 20:30:25 Re: PostgreSQL and case insensitivity...