I think we can tell people in 8.1 that they should modify their applications to only use '', and that \' might be a security problem in the future. If we get to that then using ESC or not only affects input of values and literal backslashes being entered, and my guess is that 90% of the backslash entries that want escaping are literal in the application and not supplied by program variables. In fact, if we disable backslash by default then strings coming in only have to deal with single quotes (like other databases) and the system is more secure because there is no special backslash handling by default.
I can tell you right now this will be a problem :) There are loads of PHP ppl who use addslashes() instead of pg_escape_string() to escape data.
Chris ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://archives.postgresql.org