quoting and recovery.conf

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: quoting and recovery.conf
Date: 2010-05-13 17:00:00
Message-ID: 201005131700.o4DH00427974@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Is there a reason we require single quotes around boolean values in
recovery.conf?

standby_mode = 'off'

This does not work:

standby_mode = off

I knew there were inconsistencies between quoting in postgresql.conf and
recovery.conf, but I didn't realize it extended to boolean quoting. I
see this at the top of recovery.conf now:

# This file consists of lines of the form:
#
# name = 'value'
#
# (The quotes around the value are NOT optional, but the "=" is.)
#

and this issue existed in 8.4 as well. Seems I just never noticed it,
and it not specifically mentioned in the TODO item we already have.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Josh Berkus 2010-05-13 17:12:27 Re: max_standby_delay considered harmful
Previous Message David Fetter 2010-05-13 16:51:30 Re: [HACKERS] Retiring from the PostgreSQL core team