Re: Quoting in recovery.conf
Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
From: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
To: Simon Riggs <simon@2ndQuadrant.com>
Cc: Fujii Masao <masao.fujii@gmail.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2010-04-06T16:48:11Z
Lists: pgsql-hackers
Attachments
- recoveryconf-quote-escapes-1.patch (text/x-diff) patch
Simon Riggs wrote: > On Tue, 2010-04-06 at 16:07 +0900, Fujii Masao wrote: >> On Tue, Apr 6, 2010 at 3:47 PM, Heikki Linnakangas >> <heikki.linnakangas@enterprisedb.com> wrote: >>> To follow up on the discussion here: >>> >>> http://archives.postgresql.org/pgsql-docs/2010-02/msg00039.php >>> >>> It seems like a big oversight that there's no way to insert quotes in >>> strings in recovery.conf. In the long run, the parsing should be done >>> the same way as postgresql.conf, or the two files be merged altogether, >>> but right now I think we should just add support for escaping quotes. I >>> propose two quotes '' to mean a quote mark in the string, like in >>> strings in SQL queries. >> Agreed. This would be useful for users to specify the application_name >> containing a space in the primary_conninfo, for example. > > +1 Ok, here's what I came up with. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com