Re: Using domains for case insensitivity

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Shachar Shemesh <psql(at)shemesh(dot)biz>, PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: Using domains for case insensitivity
Date: 2004-06-17 13:57:28
Message-ID: 200406171557.28691.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Shachar Shemesh wrote:
> According to the docs, domains are not meant for that purpose, but
> for changing constraints of a type. Is it possible to define a domain
> that will have the same defaults and constraints as the base type,
> but will have different comparison functions? Will that provide me
> with what I need?

Domains constrain the allowed values of a data type and nothing more.
If you were able to override operators, then you would create a new
data type, thus losing a fundamental property of domains. So this is
not the route you want to pursue.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Shachar Shemesh 2004-06-17 16:35:37 in out send recv functions - immutable or stable?
Previous Message Shachar Shemesh 2004-06-17 13:11:08 Using domains for case insensitivity