Re: BUG #14457: Using hyphens/dashes in synchronous_standby_names fails with "invalid value"

From: Andreas Ntaflos <daff(at)ptmx(dot)at>
To:
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #14457: Using hyphens/dashes in synchronous_standby_names fails with "invalid value"
Date: 2016-12-09 04:04:13
Message-ID: 70228582-2868-efac-d9da-3275d0b1574d@ptmx.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On 2016-12-09 04:18, Tom Lane wrote:
> daff(at)ptmx(dot)at writes:
>> It seems that hyphens or dashes in the value of synchronous_standby_names
>> are not accepted.
>
> You would need to use double quotes, same as the rules for a SQL
> identifier. Per the fine manual:
>
> Each standby_name should have the form of a valid SQL identifier,
> unless it is *. You can use double-quoting if necessary. But note
> that standby_names are compared to standby application names
> case-insensitively, whether double-quoted or not.

Thank you, I seem to have missed that note or was too dense to register
its relevance.

Now onto fixing the pgsql Pacemaker resource agent to properly quote
standby names when generating the values for the
synchronous_standby_names setting :)

Thanks again,

Andreas

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Kaijiang Chen 2016-12-09 04:27:02 pg_dump's results have quite different size
Previous Message Tom Lane 2016-12-09 03:18:54 Re: BUG #14457: Using hyphens/dashes in synchronous_standby_names fails with "invalid value"