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 ---------------------------(end of broadcast)--------------------------- TIP 4: Have you searched our list archives? http://archives.postgresql.org/