Commit 32ca22b0 authored by Tom Lane's avatar Tom Lane

Revert test case added by commit 1e165d05.

The buildfarm is still showing at least three distinct behaviors for
a bad locale name in CREATE COLLATION.  Although this test was helpful
for getting the error reporting code into some usable shape, it doesn't
seem worth carrying multiple expected-files in order to support the
test in perpetuity.  So pull it back out.

Discussion: https://postgr.es/m/CAKKotZS-wcDcofXDCH=sidiuajE+nqHn2CGjLLX78anyDmi3gQ@mail.gmail.com
parent 514f6132
...@@ -627,9 +627,6 @@ CREATE COLLATION mycoll1 FROM "C"; ...@@ -627,9 +627,6 @@ CREATE COLLATION mycoll1 FROM "C";
CREATE COLLATION mycoll2 ( LC_COLLATE = "POSIX", LC_CTYPE = "POSIX" ); CREATE COLLATION mycoll2 ( LC_COLLATE = "POSIX", LC_CTYPE = "POSIX" );
CREATE COLLATION mycoll3 FROM "default"; -- intentionally unsupported CREATE COLLATION mycoll3 FROM "default"; -- intentionally unsupported
ERROR: collation "default" cannot be copied ERROR: collation "default" cannot be copied
CREATE COLLATION mycoll4 ( LOCALE = "no_such_locale" ); -- fail
ERROR: could not create locale "no_such_locale": No such file or directory
DETAIL: The operating system could not find any locale data for the locale name "no_such_locale".
DROP COLLATION mycoll1; DROP COLLATION mycoll1;
CREATE TABLE collate_test23 (f1 text collate mycoll2); CREATE TABLE collate_test23 (f1 text collate mycoll2);
DROP COLLATION mycoll2; -- fail DROP COLLATION mycoll2; -- fail
......
...@@ -234,7 +234,6 @@ EXPLAIN (COSTS OFF) ...@@ -234,7 +234,6 @@ EXPLAIN (COSTS OFF)
CREATE COLLATION mycoll1 FROM "C"; CREATE COLLATION mycoll1 FROM "C";
CREATE COLLATION mycoll2 ( LC_COLLATE = "POSIX", LC_CTYPE = "POSIX" ); CREATE COLLATION mycoll2 ( LC_COLLATE = "POSIX", LC_CTYPE = "POSIX" );
CREATE COLLATION mycoll3 FROM "default"; -- intentionally unsupported CREATE COLLATION mycoll3 FROM "default"; -- intentionally unsupported
CREATE COLLATION mycoll4 ( LOCALE = "no_such_locale" ); -- fail
DROP COLLATION mycoll1; DROP COLLATION mycoll1;
CREATE TABLE collate_test23 (f1 text collate mycoll2); CREATE TABLE collate_test23 (f1 text collate mycoll2);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment