pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feed9.6 synchronous_standby_names: discrepancy between docs and functionality
3+ messages / 3 participants
[nested] [flat]
* 9.6 synchronous_standby_names: discrepancy between docs and functionality
@ 2016-04-14 12:51 Nicholson, Brad (Toronto, ON, CA) <bnicholson@hpe.com>
0 siblings, 1 reply; 3+ messages in thread
From: Nicholson, Brad (Toronto, ON, CA) @ 2016-04-14 12:51 UTC (permalink / raw)
To: pgsql-bugs
Hi Folks,
9.6 dev installed from RPM. The version according to yum is:
Release : git20160325_1PGDG.rhel7
The docs state the following as an example of synchronous_standby_names for multiple sync standby's
synchronous_standby_names = '2 (s1, s2, s3)'
When you try and use this example, it fails:
syncrep=# alter system set synchronous_standby_names='2 (s1, s2, s3)';
ERROR: invalid value for parameter "synchronous_standby_names": "2 (s1, s2, s3)"
DETAIL: List syntax is invalid.
If you remove the space from between the 2 & the ( it works:
syncrep=# alter system set synchronous_standby_names='2(s1, s2, s3)';
ALTER SYSTEM
Thanks,
Brad.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: 9.6 synchronous_standby_names: discrepancy between docs and functionality
@ 2016-04-14 14:22 Michael Paquier <michael.paquier@gmail.com>
parent: Nicholson, Brad (Toronto, ON, CA) <bnicholson@hpe.com>
0 siblings, 1 reply; 3+ messages in thread
From: Michael Paquier @ 2016-04-14 14:22 UTC (permalink / raw)
To: Nicholson, Brad (Toronto, ON, CA) <bnicholson@hpe.com>; +Cc: pgsql-bugs
On Thu, Apr 14, 2016 at 9:51 PM, Nicholson, Brad (Toronto, ON, CA)
<bnicholson@hpe.com> wrote:
> When you try and use this example, it fails:
>
> syncrep=# alter system set synchronous_standby_names='2 (s1, s2, s3)';
> ERROR: invalid value for parameter "synchronous_standby_names": "2 (s1, s2, s3)"
> DETAIL: List syntax is invalid.
>
> If you remove the space from between the 2 & the ( it works:
>
> syncrep=# alter system set synchronous_standby_names='2(s1, s2, s3)';
> ALTER SYSTEM
Both of them work for me (HEAD at 92a30a7):
=# alter system set synchronous_standby_names='2 (s1, s2, s3)';
ALTER SYSTEM
=# alter system set synchronous_standby_names='2(s1, s2, s3)';
ALTER SYSTEM
--
Michael
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: 9.6 synchronous_standby_names: discrepancy between docs and functionality
@ 2016-04-14 14:41 Fujii Masao <masao.fujii@gmail.com>
parent: Michael Paquier <michael.paquier@gmail.com>
0 siblings, 0 replies; 3+ messages in thread
From: Fujii Masao @ 2016-04-14 14:41 UTC (permalink / raw)
To: Michael Paquier <michael.paquier@gmail.com>; +Cc: Nicholson, Brad (Toronto, ON, CA) <bnicholson@hpe.com>; pgsql-bugs
On Thu, Apr 14, 2016 at 11:22 PM, Michael Paquier
<michael.paquier@gmail.com> wrote:
> On Thu, Apr 14, 2016 at 9:51 PM, Nicholson, Brad (Toronto, ON, CA)
> <bnicholson@hpe.com> wrote:
>> When you try and use this example, it fails:
>>
>> syncrep=# alter system set synchronous_standby_names='2 (s1, s2, s3)';
>> ERROR: invalid value for parameter "synchronous_standby_names": "2 (s1, s2, s3)"
>> DETAIL: List syntax is invalid.
Maybe 9.6dev RPM that you installed was created before multiple
sync standbys feature was committed.
>> If you remove the space from between the 2 & the ( it works:
>>
>> syncrep=# alter system set synchronous_standby_names='2(s1, s2, s3)';
>> ALTER SYSTEM
Before multiple sync standbys feature was added, only comma-separated
list was valid in synchronous_standby_names. Since probably '2(s1, s2, s3)'
was interpreted as a comma-separated list of three standby names
"2(s1", "s2" and "s3)", it worked fine.
Regards,
--
Fujii Masao
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2016-04-14 14:41 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-04-14 12:51 9.6 synchronous_standby_names: discrepancy between docs and functionality Nicholson, Brad (Toronto, ON, CA) <bnicholson@hpe.com>
2016-04-14 14:22 ` Michael Paquier <michael.paquier@gmail.com>
2016-04-14 14:41 ` Fujii Masao <masao.fujii@gmail.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox