The following bug has been logged online: Bug reference: 3788 Logged by: Vitaly Email address: [EMAIL PROTECTED] PostgreSQL version: 8.3-beta3 Operating system: WinXP Description: POSIX regexp seems doesn't work for '(?!re) ' pattern Details:
SELECT author, type FROM books WHERE "type" ~ '(?!novel)'; This select work incorrect. It returns all types. Work around: SELECT author, type FROM books WHERE not ("type" ~ '(?=novel)'); ---------------------------(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