invalid number of sync standbys in synchronous_standby_names

From: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: invalid number of sync standbys in synchronous_standby_names
Date: 2016-12-16 11:37:05
Message-ID: CAHGQGwHWB3izc6cXuFLh5kOcAbFXaRhhgwd-X5PeN9TEjxqXwg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

When the number of sync standbys is set to 0 in s_s_names, the assersion
failure happens as follows. This means that current multiple syncrep code
assumes that the num of sync standbys must be greater than 0. But we forgot
to forbid users from setting that num to 0. This is an oversight in multiple
syncrep patch (so my fault...). Attached patch forbits that.

TRAP: FailedAssertion("!(((bool) 0))", File: "syncrep.c", Line: 711)

Regards,

--
Fujii Masao

Attachment Content-Type Size
bugfix-syncrep.patch text/x-patch 585 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Petr Jelinek 2016-12-16 11:41:33 Re: pg_basebackups and slots
Previous Message Stas Kelvich 2016-12-16 11:00:46 Re: Speedup twophase transactions