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

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Forbid use of LF and CR characters in database and role names
Дата
Msg-id 5a62e31d-afd6-c638-be9d-24184ec0c46b@2ndquadrant.com
обсуждение исходный текст
Ответ на Forbid use of LF and CR characters in database and role names  (Michael Paquier <michael.paquier@gmail.com>)
Ответы Re: Forbid use of LF and CR characters in database and role names  (Michael Paquier <michael.paquier@gmail.com>)
Список pgsql-hackers
On 8/11/16 9:12 PM, Michael Paquier 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,

How about some documentation?  I think the CREATE ROLE and CREATE
DATABASE man pages might be suitable places.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: pg_basebackup, pg_receivexlog and data durability (was: silent data loss with ext4 / all current versions)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: \timing interval