BUG #3788: POSIX regexp seems doesn't work for '(?!re) ' pattern

From: "Vitaly" <vitaly(dot)yakunin(at)gmail(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #3788: POSIX regexp seems doesn't work for '(?!re) ' pattern
Date: 2007-11-29 15:35:24
Message-ID: 200711291535.lATFZOC9064787@wwwmaster.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 3788
Logged by: Vitaly
Email address: vitaly(dot)yakunin(at)gmail(dot)com
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)');

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2007-11-29 16:24:12 Re: BUG #3788: POSIX regexp seems doesn't work for '(?!re) ' pattern
Previous Message Usama Dar 2007-11-29 12:10:27 Re: BUG #3787: configure: error: readline library not found