Re: Forbid use of LF and CR characters in database and role names - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Forbid use of LF and CR characters in database and role names
Date
Msg-id 5a62e31d-afd6-c638-be9d-24184ec0c46b@2ndquadrant.com
Whole thread Raw
In response to Forbid use of LF and CR characters in database and role names  (Michael Paquier <michael.paquier@gmail.com>)
Responses Re: Forbid use of LF and CR characters in database and role names  (Michael Paquier <michael.paquier@gmail.com>)
List 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 by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: pg_basebackup, pg_receivexlog and data durability (was: silent data loss with ext4 / all current versions)
Next
From: Tom Lane
Date:
Subject: Re: \timing interval