lib/pq — pull request #258 by lann (2014-05-22 06:13:35+00:00)
Title: Improve option parsing

The existing code did not provide for escaping characters, which made
certain option values impossible to represent, for example:

password='spaces and ' a quote'

In addition, ParseUrl would not allow even a single space in any value.

Add standard backslash escaping, matching libpq's own conninfo_parse.

Apply this escaping to special characters in ParseURL.