]> granicus.if.org Git - postgresql/commit
Fix ALTER SUBSCRIPTION grammar ambiguity
authorPeter Eisentraut <peter_e@gmx.net>
Tue, 6 Jun 2017 01:37:00 +0000 (21:37 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Tue, 6 Jun 2017 01:43:25 +0000 (21:43 -0400)
commit9907b55ceb17f55bb508a1f24027a57530d84442
treec15d0f470505ebd447496589fb1e354467bf7a16
parent06bfb801c73c89e66f44c1cf693386793e98b637
Fix ALTER SUBSCRIPTION grammar ambiguity

There was a grammar ambiguity between SET PUBLICATION name REFRESH and
SET PUBLICATION SKIP REFRESH, because SKIP is not a reserved word.  To
resolve that, fold the refresh choice into the WITH options.  Refreshing
is the default now.

Reported-by: tushar <tushar.ahuja@enterprisedb.com>
doc/src/sgml/catalogs.sgml
doc/src/sgml/ref/alter_subscription.sgml
src/backend/commands/subscriptioncmds.c
src/backend/parser/gram.y
src/include/nodes/parsenodes.h
src/test/regress/expected/subscription.out
src/test/regress/sql/subscription.sql
src/test/subscription/t/001_rep_changes.pl