Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hRQXA-0004CF-OF for pgsql-committers@arkaria.postgresql.org; Fri, 17 May 2019 00:15:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hRQX9-0000pR-23 for pgsql-committers@arkaria.postgresql.org; Fri, 17 May 2019 00:15:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hRQX8-0000pE-Pn for pgsql-committers@lists.postgresql.org; Fri, 17 May 2019 00:15:34 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hRQX6-0004QL-3b for pgsql-committers@lists.postgresql.org; Fri, 17 May 2019 00:15:34 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id C326D3FF; Thu, 16 May 2019 20:15:29 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 16 May 2019 20:15:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=AGMvg5dyJAfrugu2uz3eY8lTse+ nCMzAglkdq3jDt6o=; b=HgFBlsrtUOLXt1KhzyrkoGOZudvhmMQjT/QyAqI/vzj wtfFt0SL53ZLGhSvwdu5xebUfSnTbcz52kPCmGzOb1N5KDo84g6N5MtmVghSBpNV UaaiRKCZXvJdQu7u/zj4LJF1kmjTSRuE8MKtdSJ944ykTepZRc+E1MLIr6/zNyx/ xRpLjOMWjcdy2p92GTAwoqMFsKMrEKfbloOo/HLlRmDlMiiq/QIrmn+p1eurkzfp NZLjTDPLhcu/7rvvKPdU8S1MXz8oMAdXuaQ/tDJQ+uLiH6QvDyJeOEIylzExXaCA 6R8LKWITPgC9XeC0gFAd6TbOfk1Bp4TPKaXrkAWz5fA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=AGMvg5 dyJAfrugu2uz3eY8lTse+nCMzAglkdq3jDt6o=; b=7gvRdqXzp1ZbazRoR9ynrB ZdBUPl+7g8aj7wAoLupZqrEot/zHXzkil/L3yRuTT8y648przc6ZsLhvAlAmw+BW Xi35TJAYjbjBY+Nul04fCMfv3TW2ObeP9xy9XcM4myYbT4MArkgXbneYxfR/H6Ky NWHDBH29j9zBKImKVqoVl7Fstx2wnLtoX38M5CudPpX048aKrroI/vwXbNMMvAUF d91wpG2BmBSY7lAI9qiNqNYRC9fHKi2fmM/3c/33XzmSqXSeu2uJ56afU31rFSaF llAd8hFMj+4AqLwVzQtcB8/Sx2XLJiuTN39dTTPCyR2UU8vjTlbKV7fLJcopATgA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddruddtuddgfedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdlfeehmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucfkphepudduuddruddtvddrudektddrudekheenucfrrghr rghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiienucevlh hushhtvghrufhiiigvpedt X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 8A2F1103CB; Thu, 16 May 2019 20:15:27 -0400 (EDT) Date: Fri, 17 May 2019 09:15:24 +0900 From: Michael Paquier To: Tom Lane Cc: Alvaro Herrera , pgsql-committers@lists.postgresql.org Subject: Re: pgsql: More message style fixes Message-ID: <20190517001524.GE20887@paquier.xyz> References: <8332.1558048838@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="7mxbaLlpDEyR1+x6" Content-Disposition: inline In-Reply-To: <8332.1558048838@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --7mxbaLlpDEyR1+x6 Content-Type: multipart/mixed; boundary="XuV1QlJbYrcVoo+x" Content-Disposition: inline --XuV1QlJbYrcVoo+x Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 16, 2019 at 07:20:38PM -0400, Tom Lane wrote: > Alvaro Herrera writes: >> More message style fixes >=20 > The buildfarm thinks you forgot something. One contrib module is impacted, citext, because it uses regexes and it has multiple expected outputs. The attached brings back my build to green. Thoughts? I got a bit annoyed when testing this morning, so I don't mind fixing it myself. And I still have some hours left today to look at extra red animals if any. -- Michael --XuV1QlJbYrcVoo+x Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="fix-test-output.patch" Content-Transfer-Encoding: quoted-printable diff --git a/contrib/citext/expected/citext.out b/contrib/citext/expected/c= itext.out index 20890db859..94aba67cdb 100644 --- a/contrib/citext/expected/citext.out +++ b/contrib/citext/expected/citext.out @@ -1841,7 +1841,7 @@ SELECT regexp_match('foobarbequebaz'::citext, '(BAR)(= BEQUE)'::citext, 'c'::citex =20 -- g is not allowed SELECT regexp_match('foobarbequebazmorebarbequetoo'::citext, '(BAR)(BEQUE)= '::citext, 'g') AS "error"; -ERROR: regexp_match does not support the global option +ERROR: regexp_match() does not support the "global" option HINT: Use the regexp_matches function instead. CONTEXT: SQL function "regexp_match" statement 1 SELECT regexp_matches('foobarbequebaz'::citext, '(bar)(beque)') =3D ARRAY[= 'bar', 'beque' ] AS t; diff --git a/contrib/citext/expected/citext_1.out b/contrib/citext/expected= /citext_1.out index 755baad8e2..187d3b5d2c 100644 --- a/contrib/citext/expected/citext_1.out +++ b/contrib/citext/expected/citext_1.out @@ -1841,7 +1841,7 @@ SELECT regexp_match('foobarbequebaz'::citext, '(BAR)(= BEQUE)'::citext, 'c'::citex =20 -- g is not allowed SELECT regexp_match('foobarbequebazmorebarbequetoo'::citext, '(BAR)(BEQUE)= '::citext, 'g') AS "error"; -ERROR: regexp_match does not support the global option +ERROR: regexp_match() does not support the "global" option HINT: Use the regexp_matches function instead. CONTEXT: SQL function "regexp_match" statement 1 SELECT regexp_matches('foobarbequebaz'::citext, '(bar)(beque)') =3D ARRAY[= 'bar', 'beque' ] AS t; diff --git a/src/test/regress/expected/copy2.out b/src/test/regress/expecte= d/copy2.out index 75d4119eaa..c53ed3ebf5 100644 --- a/src/test/regress/expected/copy2.out +++ b/src/test/regress/expected/copy2.out @@ -360,12 +360,12 @@ SELECT * FROM vistest; COMMIT; TRUNCATE vistest; COPY vistest FROM stdin CSV FREEZE; -ERROR: cannot perform FREEZE because the table was not created or truncat= ed in the current subtransaction +ERROR: cannot perform COPY FREEZE because the table was not created or tr= uncated in the current subtransaction BEGIN; TRUNCATE vistest; SAVEPOINT s1; COPY vistest FROM stdin CSV FREEZE; -ERROR: cannot perform FREEZE because the table was not created or truncat= ed in the current subtransaction +ERROR: cannot perform COPY FREEZE because the table was not created or tr= uncated in the current subtransaction COMMIT; BEGIN; INSERT INTO vistest VALUES ('z'); @@ -373,7 +373,7 @@ SAVEPOINT s1; TRUNCATE vistest; ROLLBACK TO SAVEPOINT s1; COPY vistest FROM stdin CSV FREEZE; -ERROR: cannot perform FREEZE because the table was not created or truncat= ed in the current subtransaction +ERROR: cannot perform COPY FREEZE because the table was not created or tr= uncated in the current subtransaction COMMIT; CREATE FUNCTION truncate_in_subxact() RETURNS VOID AS $$ diff --git a/src/test/regress/expected/create_table.out b/src/test/regress/= expected/create_table.out index ad0cb32678..204441e759 100644 --- a/src/test/regress/expected/create_table.out +++ b/src/test/regress/expected/create_table.out @@ -418,7 +418,7 @@ ERROR: partition key expressions cannot contain whole-= row references CREATE TABLE partitioned ( a point ) PARTITION BY LIST (a); -ERROR: data type point has no default btree operator class +ERROR: data type point has no default operator class for access method "b= tree" HINT: You must specify a btree operator class or define a default btree o= perator class for the data type. CREATE TABLE partitioned ( a point @@ -427,7 +427,7 @@ ERROR: operator class "point_ops" does not exist for a= ccess method "btree" CREATE TABLE partitioned ( a point ) PARTITION BY RANGE (a); -ERROR: data type point has no default btree operator class +ERROR: data type point has no default operator class for access method "b= tree" HINT: You must specify a btree operator class or define a default btree o= perator class for the data type. CREATE TABLE partitioned ( a point diff --git a/src/test/regress/expected/jsonb_jsonpath.out b/src/test/regres= s/expected/jsonb_jsonpath.out index 2b63da3f24..b486fb602a 100644 --- a/src/test/regress/expected/jsonb_jsonpath.out +++ b/src/test/regress/expected/jsonb_jsonpath.out @@ -486,7 +486,7 @@ select * from jsonb_path_query('{"a": 10}', '$'); (1 row) =20 select * from jsonb_path_query('{"a": 10}', '$ ? (@.a < $value)'); -ERROR: cannot find jsonpath variable "value" +ERROR: could not find jsonpath variable "value" select * from jsonb_path_query('{"a": 10}', '$ ? (@.a < $value)', '1'); ERROR: "vars" argument is not an object DETAIL: Jsonpath parameters should be encoded as key-value pairs of "vars= " object. diff --git a/src/test/regress/expected/jsonpath.out b/src/test/regress/expe= cted/jsonpath.out index c7bd26887c..0f9cd17e2e 100644 --- a/src/test/regress/expected/jsonpath.out +++ b/src/test/regress/expected/jsonpath.out @@ -1,6 +1,6 @@ --jsonpath io select ''::jsonpath; -ERROR: invalid input syntax for jsonpath: "" +ERROR: invalid input syntax for type jsonpath: "" LINE 1: select ''::jsonpath; ^ select '$'::jsonpath; diff --git a/src/test/regress/expected/publication.out b/src/test/regress/e= xpected/publication.out index afbbdd543d..0e5e8f2b92 100644 --- a/src/test/regress/expected/publication.out +++ b/src/test/regress/expected/publication.out @@ -17,7 +17,7 @@ CREATE PUBLICATION testpib_ins_trunct WITH (publish =3D i= nsert); ALTER PUBLICATION testpub_default SET (publish =3D update); -- error cases CREATE PUBLICATION testpub_xxx WITH (foo); -ERROR: unrecognized publication parameter: foo +ERROR: unrecognized publication parameter: "foo" CREATE PUBLICATION testpub_xxx WITH (publish =3D 'cluster, vacuum'); ERROR: unrecognized "publish" value: "cluster" \dRp diff --git a/src/test/regress/expected/regex.out b/src/test/regress/expecte= d/regex.out index f372003091..0923ad9b5b 100644 --- a/src/test/regress/expected/regex.out +++ b/src/test/regress/expected/regex.out @@ -116,7 +116,7 @@ select regexp_match('abc', '(B)(c)', 'i'); (1 row) =20 select regexp_match('abc', 'Bd', 'ig'); -- error -ERROR: regexp_match does not support the global option +ERROR: regexp_match() does not support the "global" option HINT: Use the regexp_matches function instead. -- Test lookahead constraints select regexp_matches('ab', 'a(?=3Db)b*'); diff --git a/src/test/regress/expected/strings.out b/src/test/regress/expec= ted/strings.out index 24570bed16..486c00b3b3 100644 --- a/src/test/regress/expected/strings.out +++ b/src/test/regress/expected/strings.out @@ -437,7 +437,7 @@ SELECT regexp_replace('AAA aaa', 'A+', 'Z', 'gi'); =20 -- invalid regexp option SELECT regexp_replace('AAA aaa', 'A+', 'Z', 'z'); -ERROR: invalid regexp option: "z" +ERROR: invalid regular expression option: "z" -- set so we can tell NULL from empty string \pset null '\\N' -- return all matches from regexp @@ -549,7 +549,7 @@ SELECT regexp_matches(chr(10) || '1' || chr(10) || '2' = || chr(10) || '3' || chr( =20 -- give me errors SELECT regexp_matches('foobarbequebaz', $re$(bar)(beque)$re$, 'gz'); -ERROR: invalid regexp option: "z" +ERROR: invalid regular expression option: "z" SELECT regexp_matches('foobarbequebaz', $re$(barbeque$re$); ERROR: invalid regular expression: parentheses () not balanced SELECT regexp_matches('foobarbequebaz', $re$(bar)(beque){2,1}$re$); @@ -743,14 +743,14 @@ SELECT regexp_split_to_array('1',''); =20 -- errors SELECT foo, length(foo) FROM regexp_split_to_table('thE QUick bROWn FOx jU= MPs ovEr The lazy dOG', 'e', 'zippy') AS foo; -ERROR: invalid regexp option: "z" +ERROR: invalid regular expression option: "z" SELECT regexp_split_to_array('thE QUick bROWn FOx jUMPs ovEr The lazy dOG'= , 'e', 'iz'); -ERROR: invalid regexp option: "z" +ERROR: invalid regular expression option: "z" -- global option meaningless for regexp_split SELECT foo, length(foo) FROM regexp_split_to_table('thE QUick bROWn FOx jU= MPs ovEr The lazy dOG', 'e', 'g') AS foo; -ERROR: regexp_split_to_table does not support the global option +ERROR: regexp_split_to_table() does not support the "global" option SELECT regexp_split_to_array('thE QUick bROWn FOx jUMPs ovEr The lazy dOG'= , 'e', 'g'); -ERROR: regexp_split_to_array does not support the global option +ERROR: regexp_split_to_array() does not support the "global" option -- change NULL-display back \pset null '' -- E021-11 position expression diff --git a/src/test/regress/expected/subscription.out b/src/test/regress/= expected/subscription.out index 4fcbf7efe9..fae5c079c0 100644 --- a/src/test/regress/expected/subscription.out +++ b/src/test/regress/expected/subscription.out @@ -53,7 +53,7 @@ ERROR: connect =3D false and enabled =3D true are mutual= ly exclusive options CREATE SUBSCRIPTION testsub2 CONNECTION 'dbname=3Ddoesnotexist' PUBLICATIO= N testpub WITH (connect =3D false, create_slot =3D true); ERROR: connect =3D false and create_slot =3D true are mutually exclusive = options CREATE SUBSCRIPTION testsub2 CONNECTION 'dbname=3Ddoesnotexist' PUBLICATIO= N testpub WITH (slot_name =3D NONE, enabled =3D true); -ERROR: slot_name =3D NONE and enabled =3D true are mutually exclusive opt= ions +ERROR: slot_name =3D NONE and enable =3D true are mutually exclusive opti= ons CREATE SUBSCRIPTION testsub2 CONNECTION 'dbname=3Ddoesnotexist' PUBLICATIO= N testpub WITH (slot_name =3D NONE, create_slot =3D true); ERROR: slot_name =3D NONE and create_slot =3D true are mutually exclusive= options CREATE SUBSCRIPTION testsub2 CONNECTION 'dbname=3Ddoesnotexist' PUBLICATIO= N testpub WITH (slot_name =3D NONE); @@ -89,7 +89,7 @@ ALTER SUBSCRIPTION testsub SET (slot_name =3D 'newname'); ALTER SUBSCRIPTION doesnotexist CONNECTION 'dbname=3Ddoesnotexist2'; ERROR: subscription "doesnotexist" does not exist ALTER SUBSCRIPTION testsub SET (create_slot =3D false); -ERROR: unrecognized subscription parameter: create_slot +ERROR: unrecognized subscription parameter: "create_slot" \dRs+ List of subscriptions Name | Owner | Enabled | Publication | Syn= chronous commit | Conninfo =20 diff --git a/src/test/regress/output/copy.source b/src/test/regress/output/= copy.source index b16247230a..cf716aecca 100644 --- a/src/test/regress/output/copy.source +++ b/src/test/regress/output/copy.source @@ -117,7 +117,7 @@ copy parted_copytest from '@abs_builddir@/results/parte= d_copytest.csv'; begin; truncate parted_copytest; copy parted_copytest from '@abs_builddir@/results/parted_copytest.csv' (fr= eeze); -ERROR: cannot perform FREEZE on a partitioned table +ERROR: cannot perform COPY FREEZE on a partitioned table rollback; select tableoid::regclass,count(*),sum(a) from parted_copytest group by tableoid order by tableoid::regclass::name; --XuV1QlJbYrcVoo+x-- --7mxbaLlpDEyR1+x6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlzd/RwACgkQnvQgOdby QH3Mlg//SYTtVvp9dUgmWUZ8ZwC+LKQBw/DAEhiU0pZauiN95MCp9VlJd0bMiV8M PITfflHIufo/o6YeYrO79D/4XFjP2WHpvhlfMOmAMqugEqmxMYqlhs8ZpGpMNazY hahFvG0l7rCGGOVxfQJ9WjeAGTjWkXg/1eZJK44cnUgi4lgUWl/nXfAYIcEwVGiO YdWQLj05WPAsgIflOzZFFITd/bxuDW/eDIaZN47/OqZWSWVshSPKxShDLP4rjEAX EaAf6LSJsEz5jkIB2ZmAeF7v2dlQz+sSghOKQfck2LW+hMg99ahVuqZW1kHh+fb6 liacql1JljsI4HzB+OW9tYkEb4ZvgfHCOsspYdEyrlXnl6LkSgm2Wk4fwvVYKeUe 6k+WxqUU1Y+rgr6PiERXilRz4w2g1d9vp03ZqLtyxpxiICpDm4g9LPuqylJ/xOvt JvkmKQAJc7BcevefSzw4Pq5OQpe3uq8fDHUvXlmrNBtRh4zw4sl0HIeNHK93Hwbb KdV84M7bBh/7e1+oSOJegGuk9CyTU0rBP9Ol0kgyO2ZkvKCpDm1cSrlF/+8Zlr4q SH5TT1WcI9EOIhJyy3KXW91tHw8IcZH6k4zsoBGFuxPm+a1DFtDSt1L2F/+CKsyL HzYUNrMFf/TEA5bBaLD09dojC1MPamwJK8lGAfDlWDSSOFoZ3lA= =bcpw -----END PGP SIGNATURE----- --7mxbaLlpDEyR1+x6--