From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-committers@postgresql.org
Subject: pgsql: Improve CREATE SUBSCRIPTION option parsing
Date: Thu, 18 May 2017 00:50:21 +0000
Message-ID: <E1dB9e1-0001RM-Il@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Improve CREATE SUBSCRIPTION option parsing
When creating a subscription with slot_name = NONE, we failed to check
that also create_slot = false and enabled = false were set. This
created an invalid subscription and could later lead to a crash if a
NULL slot name was accessed. Add more checks around that for
robustness.
Reported-by: tushar <tushar.ahuja@enterprisedb.com>
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/62345698513cbcb3c48a6dae414abf0f24fd163a
Modified Files
--------------
src/backend/commands/subscriptioncmds.c | 14 +++++++++++++-
src/backend/replication/logical/worker.c | 9 +++++++++
src/test/regress/expected/subscription.out | 8 ++++++++
src/test/regress/sql/subscription.sql | 4 ++++
4 files changed, 34 insertions(+), 1 deletion(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: peter_e@gmx.net
Subject: Re: pgsql: Improve CREATE SUBSCRIPTION option parsing
In-Reply-To: <E1dB9e1-0001RM-Il@gemulon.postgresql.org>
References: <E1dB9e1-0001RM-Il@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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