SELECT v_id FROM table WHERE col = 'V') AND blah
executes without errors, ignoring the closing paren and everything thereafter. Platform: PostgreSQL 8.0.3 on Intel / Windows XP ---------------------------(end of broadcast)--------------------------- TIP 5: don't forget to increase your free space map settings