In my postgresql version 9.1 this query is working fine:
select id,name from flash_card_set where name ~* '\yACT\y'
and matching:
text ACT txt
,ACT tests
,tests ACT
But in my postgresql version 9.2 it is not matching any of them.Am I missing something!
Best Answer
I'd suspect you have
standard_conforming_strings
set to OFF on the 9.1 instance (meaning it was changed explicitly, since the default is ON since 9.1), and the opposite in 9.2.Demo:
Now with it to OFF:
You'd need also to set
escape_string_warning
to OFF to mute the warning message and get a final result that plausibly matches your question: