Re: [GENERAL] Question about indexes and operator classes

2012-12-21 Thread Tom Lane
ERR ORR writes: > 1) What is the difference between *varchar_pattern_ops* and * > varchar_text_ops*? None whatsoever --- they're both there just so that people can write an opclass name that matches the declared type of their table column. > 2) Is there any pre-definded operator class for indexe

[GENERAL] Question about indexes and operator classes

2012-12-21 Thread ERR ORR
Hi, I actually have several questions on indexes and operator classes: 1) What is the difference between *varchar_pattern_ops* and * varchar_text_ops*? They both appear to work similarly and in both cases the operands are cast to type TEXT when I look at the explain of the query. 2) Is there any