Skip site navigation (1) Skip section navigation (2)

Performance of DOMAINs

From: David Wheeler <david(at)kineticode(dot)com>
To: PostgreSQL Performance List <pgsql-performance(at)postgresql(dot)org>
Subject: Performance of DOMAINs
Date: 2006-06-21 18:26:16
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance

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:

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,



pgsql-performance by date

Next:From: Jim C. NasbyDate: 2006-06-21 18:33:05
Subject: Re: Big array speed issues
Previous:From: Tom LaneDate: 2006-06-21 17:12:11
Subject: Re: Speeding up query, Joining 55mil and 43mil records.

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group