From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | Attila Kevei <attila(dot)kevei(at)mail(dot)goodwill(dot)hu> |
Cc: | Postgres SQL list <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: select returns no line |
Date: | 2001-01-23 16:27:22 |
Message-ID: | Pine.LNX.4.30.0101231724380.788-100000@peter.localdomain |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Attila Kevei writes:
> goodwill=>select * from users where user_login='test';
> user_id|user_login|user_passwd|user_exp
> -------+----------+-----------+--------
> (0 rows)
>
> goodwill=> select * from users where user_id=4;
> user_id|user_login|user_passwd |user_exp
> -------+----------+-------------+--------
> 4|test |0PDv7a2EESjZo|
> (1 row)
You probably started the postmaster with two different LC_COLLATE (locale
sort order) settings. The setting that was active when you ran initdb
must be kept when you run the postmaster.
> goodwill=> update users set user_login=user_login where user_id=4;
> UPDATE
> 1
>
> goodwill=>select * from users where user_login='test';
> user_id|user_login|user_passwd |user_exp
> -------+----------+-------------+--------
> 4|test |0PDv7a2EESjZo|
> (1 row)
Yep, the update will fix the corrupted index (at least to the extent that
this particular case now works).
--
Peter Eisentraut peter_e(at)gmx(dot)net http://yi.org/peter-e/
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2001-01-23 16:31:05 | Re: monster query, how to make it smaller |
Previous Message | Tom Lane | 2001-01-23 16:19:04 | Re: grouping by date increments |