"Niederland" <[EMAIL PROTECTED]> writes: > I am using postgresql 8.1.4. > Is there anyway to create an index equivalent to: > CREATE INDEX i1 ON t1 USING btree (ts::Date);
You're short some parentheses: CREATE INDEX i1 ON t1 USING btree ((ts::Date)); regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match