According to this documentation: http://www.postgresql.org/docs/9.1/static/release-8-1.html, section "Add E'' syntax so eventually ordinary strings can treat backslashes literally (Bruce)" this syntax was added in the 8.1 release.