Re: [PERFORM] Performance of DOMAINs

2006-06-22 Thread David Wheeler
On Jun 21, 2006, at 19:24, Michael Glaesemann wrote: I haven't seen it mentioned in this thread yet, but have you looked at citext? http://gborg.postgresql.org/project/citext/projdisplay.php I don't have any experience with it, but perhaps it can do what you're looking for. Yes, I've see

Re: [PERFORM] Performance of DOMAINs

2006-06-22 Thread David Wheeler
On Jun 21, 2006, at 18:19, Josh Berkus wrote: Well, current case-insensitivity hacks definitely aren't compatible with LIKE as far as "begins with" indexes are concerned. Yes, currently I use LOWER() for my indexes and for all LIKE, =, etc. queries. This works well, but ORDER by of course

Re: [PERFORM] Performance of DOMAINs

2006-06-22 Thread David Wheeler
On Jun 21, 2006, at 13:08, Tom Lane wrote: There are some reports in the archives of particular usage patterns where they pretty much suck, because GetDomainConstraints() searches pg_constraint every time it's called. We do what we can to avoid calling that multiple times per query, but for som

Re: [PERFORM] Performance of DOMAINs

2006-06-21 Thread Michael Glaesemann
since I'd like to have/create a truly case-insensitive text type (ITEXT anyone?). I haven't seen it mentioned in this thread yet, but have you looked at citext? http://gborg.postgresql.org/project/citext/projdisplay.php I don't have any experience with it, but perhaps it can do what you

Re: [PERFORM] Performance of DOMAINs

2006-06-21 Thread Josh Berkus
David, > 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 sur

Re: [PERFORM] Performance of DOMAINs

2006-06-21 Thread Tom Lane
David Wheeler <[EMAIL PROTECTED]> writes: > 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? There are some reports in the archives of particular usage patterns where they pretty much suck, because GetDomainC

Re: [PERFORM] Performance of DOMAINs

2006-06-21 Thread Jim C. Nasby
On Wed, Jun 21, 2006 at 11:26:16AM -0700, David Wheeler wrote: > 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.

[PERFORM] Performance of DOMAINs

2006-06-21 Thread David Wheeler
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