Re: Forbid use of LF and CR characters in database and role names

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Forbid use of LF and CR characters in database and role names
Дата
Msg-id CAB7nPqSnWddQujUx6i5o2v6HHukMYjm=t3kOcoGOuOGT4Nit3w@mail.gmail.com
обсуждение исходный текст
Ответ на Forbid use of LF and CR characters in database and role names  (Michael Paquier <michael.paquier@gmail.com>)
Список pgsql-hackers
On Fri, Aug 12, 2016 at 10:12 AM, Michael Paquier
<michael.paquier@gmail.com> wrote:
> Note that pg_dump[all] and pg_upgrade already have safeguards against
> those things per the same routines putting quotes for execution as
> commands into psql and shell. So attached is a patch to implement this
> restriction in the backend, and I am adding that to the next CF for
> 10.0. Attached is as well a script able to trigger those errors.
> Thoughts?

I am re-sending the patch. For a reason escaping me, it is showing up
as 'invalid/octet-stream'... (Thanks Bruce for noting that)
--
Michael

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: [PATCH] Transaction traceability - txid_status(bigint)
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: Forbid use of LF and CR characters in database and role names