From: David Wheeler <david@kineticode.com>
To: PostgreSQL Performance List <pgsql-performance@postgresql.org>
Subject: Performance of DOMAINs
Date: Wed, 21 Jun 2006 11:26:16 -0700
Message-ID: <54D833BE-A58F-47B8-B070-2AEDC0802468@kineticode.com> (raw)
Howdy,
Didn't see anything in the archives, so I thought I'd ask: has anyone
done any work to gauge the performance penalty of using DOMAINs? I'm
thinking of something like Elein's email DOMAIN:
http://www.varlena.com/GeneralBits/
I figured that most simple domains that have a constraint check are
no faster or slower than tables with constraints that validate a
particular column. Is that the case?
But I'm also interested in how Elein made the email domain case-
insensitive, since I'd like to have/create a truly case-insensitive
text type (ITEXT anyone?). The functions for the operator class there
were mainly written in SQL, and if it adds a significant overhead,
I'm not sure it'd be a good idea to use that approach for a case-
insensitive text type, since I use it quite a lot in my apps, and
often do LIKE queries against text data. Thoughts?
Many TIA,
David
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-performance@postgresql.org
Cc: david@kineticode.com
Subject: Re: Performance of DOMAINs
In-Reply-To: <54D833BE-A58F-47B8-B070-2AEDC0802468@kineticode.com>
References: <54D833BE-A58F-47B8-B070-2AEDC0802468@kineticode.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