Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^4: Backslash and Underscore problem with DBI and PostgreSQL.

by Seumas (Curate)
on Jun 21, 2004 at 23:58 UTC ( #368585=note: print w/replies, xml ) Need Help??


in reply to Re^3: Backslash and Underscore problem with DBI and PostgreSQL.
in thread Backslash and Underscore problem with DBI and PostgreSQL.

I didn't expect lower() to have much of a speed impact and the query plan shows that the difference between doing a straight '=' or '~~*' and lower() is only 44msec versus 54msec.

My indexes are pretty tight and it's a well (and often) maintained database. With millions of records, it has to be. :)

The reason I didn't use LIKE is that I'm trying to allow users to create usernames that contain any characters they want without having to manually escape dozens of special characters myself.
  • Comment on Re^4: Backslash and Underscore problem with DBI and PostgreSQL.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://368585]
help
Chatterbox?
[james28909]: /msg [beech] that was it. i reset everything to default and it fixed it. now to figure out exactly what was causing it!
[james28909]: good lord :(
[Lady_Aleena]: james28909, bare name...
[james28909]: /msg username message did it
[LanX]: James not /msg [beech] but /msg beech
[james28909]: i havent used the /msg [username] message</c> format
[LanX]: you can also click on beech and message him. ..
[james28909]: jebus
[LanX]: sorry again not [msg://beech]

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2017-05-24 22:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?