If I run this query:
SELECT 'Via Orologio 122 A' SIMILAR TO '(Strada|Via) % [0-9]+( [AZ])?';
I expect to get TRUE. Version 9.1.8 postgreSQL returns the expected value, but in version 8.3 it returns FALSE. I think the problem is the last question mark. In fact, the request is:
SELECT 'Via Orologio 122 A' SIMILAR TO '(Strada|Via) % [0-9]+( [AZ])';
Returns TRUE in both versions.
Does anyone know what the difference is between the two versions?
Fabio source share