Re: equal and like

From: Bill Moran <wmoran(at)collaborativefusion(dot)com>
To: gabor(at)schweger(dot)hu
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: equal and like
Date: 2008-12-09 22:06:25
Message-ID: 20081209170625.99e3a968.wmoran@collaborativefusion.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

In response to "Schwéger Gábor" <gabor(at)schweger(dot)hu>:
>
> This is my first post to this list.
> Our database moved to a larger partition.
> And now I have a problem with a select query:
> db=# SELECT id, login FROM u WHERE login LIKE 'bellamarth';
> id | login
> --------+-------------
> 173002 | bellamarth
> (1 row)
>
> db=# SELECT id, login FROM u WHERE login = 'bellamarth';
> id | login
> ----+-------
> (0 rows)
>
> The type of login is text.
> What is the problem with the equal sign?
> psql server version: 8.2.11
>
> Could you help me?

Just a guess, but does the problem go away if you do
REINDEX table u;

--
Bill Moran
Collaborative Fusion Inc.
http://people.collaborativefusion.com/~wmoran/

wmoran(at)collaborativefusion(dot)com
Phone: 412-422-3463x4023

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bill Moran 2008-12-09 22:08:35 Re: q query about a bug.
Previous Message Madison Kelly 2008-12-09 21:16:22 Re: SELECT DISTINCT ... ORDER BY problem