]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Improve errhint for ALTER SUBSCRIPTION ADD/DROP PUBLICATION
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 18 Oct 2022 09:46:58 +0000 (11:46 +0200)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 18 Oct 2022 09:46:58 +0000 (11:46 +0200)
commit25fb9579bbb97c65d6b007c3de803c81abb4b240
treee5509968151c52cd6cf323f63f65bc6648bebb32
parentf2f7e509e6a96329805ecaf30fb64ba4c7f4b0d2
Improve errhint for ALTER SUBSCRIPTION ADD/DROP PUBLICATION

The original hint says to use SET PUBLICATION when really ADD/DROP
PUBLICATION is called for, so this is arguably a bug fix.

Also, a very similar message elsewhere was using an inconsistent
SQLSTATE.

While at it, unwrap some strings.

Backpatch to 15.

Author: Hou zj <houzj.fnst@fujitsu.com>
Discussion: https://postgr.es/m/OS0PR01MB57160AD0E7386547BA978EB394299@OS0PR01MB5716.jpnprd01.prod.outlook.com
src/backend/commands/subscriptioncmds.c