"Grant Allen" <Grant.Allen@towersoft.com.au> writes:
> Basically, I want to turn off backslash ( \ ) as an escape character
> in string literals.
No can do without hacking backend code. But why are you more concerned
about backslash than, say, single-quote (')? I cannot envision any way
of embedding arbitrary strings into SQL commands that doesn't have some
kind of escape-character rule.
I suspect what you really need is a way to supply strings as out-of-line
parameters to SQL commands. This is available in PG as of 7.4, and I
think all the other major DBs had it long before.
regards, tom lane