Re: Need suggestion on how best to update 3 million rows
В списке pgsql-general по дате отправления:
| От | Nis Jørgensen |
|---|---|
| Тема | Re: Need suggestion on how best to update 3 million rows |
| Дата | |
| Msg-id | fboouh$t1r$2@sea.gmane.org обсуждение исходный текст |
| Ответ на | Re: Need suggestion on how best to update 3 million rows (hubert depesz lubaczewski <depesz@depesz.com>) |
| Ответы |
Re: Need suggestion on how best to update 3 million rows
|
| Список | pgsql-general |
hubert depesz lubaczewski skrev: > On Thu, Sep 06, 2007 at 11:08:02AM +0200, Alban Hertroys wrote: >> create index tmp_idx on table(number) where number != trim(number); >> analyze table; >> update table set number = trim(number) where number != trim(number); > > dont use !=. use <>. != does something different, and in fact it is > not a real operator - it's just 2 operators bundled together. Rubbish. From the documentation: "The != operator is converted to <> in the parser stage. It is not possible to implement != and <> operators that do different things." Nis
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера