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

From Michael Paquier
Subject Re: Forbid use of LF and CR characters in database and role names
Date
Msg-id CAB7nPqSnWddQujUx6i5o2v6HHukMYjm=t3kOcoGOuOGT4Nit3w@mail.gmail.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>)
List 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

Attachment

pgsql-hackers by date:

Previous
From: Craig Ringer
Date:
Subject: Re: [PATCH] Transaction traceability - txid_status(bigint)
Next
From: Peter Geoghegan
Date:
Subject: Re: Forbid use of LF and CR characters in database and role names