Re: Escape handling in COPY, strings, psql
От | Christopher Kings-Lynne |
---|---|
Тема | Re: Escape handling in COPY, strings, psql |
Дата | |
Msg-id | 429A9246.7030902@familyhealth.com.au обсуждение исходный текст |
Ответ на | Re: Escape handling in COPY, strings, psql (Bruce Momjian <pgman@candle.pha.pa.us>) |
Ответы |
Re: Escape handling in COPY, strings, psql
|
Список | pgsql-hackers |
> 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
В списке pgsql-hackers по дате отправления: