Re: Data comparison SQL in PG 8.2.9
| От | Phoenix Kiula |
|---|---|
| Тема | Re: Data comparison SQL in PG 8.2.9 |
| Дата | |
| Msg-id | e373d31e0901120040o78fac653qca7b40df5b1f9307@mail.gmail.com обсуждение исходный текст |
| Ответ на | Re: Data comparison SQL in PG 8.2.9 (Thomas Markus <t.markus@proventis.net>) |
| Ответы |
Re: Data comparison SQL in PG 8.2.9
Re: Data comparison SQL in PG 8.2.9 |
| Список | pgsql-general |
2009/1/12 Thomas Markus <t.markus@proventis.net>: > be sure to use correct data types. I suppose psql uses timestamps so > > select id from users where modify_date = '2009-01-08' limit 1; > > is converted to > > select id from users where modify_date = '2009-01-08 00:00:00'::timestamp > limit 1; > > > try > > select id from users where modify_date::date = '2009-01-08'::date limit 1; Thanks. But it used to work without this, and more importantly, this doesn't explain why the ">" queries are so exceedingly slow now! Any thoughts?
В списке pgsql-general по дате отправления: