summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2017-08-02 00:15:10 +0000
committerTom Lane2017-08-02 00:15:10 +0000
commit32ca22b02da9d8088b58b3dc64ad78464c7513a3 (patch)
treea9c7fe45dbf327a8bc6903f0e44bfcf10a61b3d0
parent514f6132935d5bda84a475d4b70fe2bcfe116766 (diff)
Revert test case added by commit 1e165d05fe06a9072867607886f818bc255507db.
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
-rw-r--r--src/test/regress/expected/collate.out3
-rw-r--r--src/test/regress/sql/collate.sql1
2 files changed, 0 insertions, 4 deletions
diff --git a/src/test/regress/expected/collate.out b/src/test/regress/expected/collate.out
index 70866df000b..b0025c0a87e 100644
--- a/src/test/regress/expected/collate.out
+++ b/src/test/regress/expected/collate.out
@@ -627,9 +627,6 @@ CREATE COLLATION mycoll1 FROM "C";
CREATE COLLATION mycoll2 ( LC_COLLATE = "POSIX", LC_CTYPE = "POSIX" );
CREATE COLLATION mycoll3 FROM "default"; -- intentionally unsupported
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;
CREATE TABLE collate_test23 (f1 text collate mycoll2);
DROP COLLATION mycoll2; -- fail
diff --git a/src/test/regress/sql/collate.sql b/src/test/regress/sql/collate.sql
index f095ae08be7..698f5774906 100644
--- a/src/test/regress/sql/collate.sql
+++ b/src/test/regress/sql/collate.sql
@@ -234,7 +234,6 @@ EXPLAIN (COSTS OFF)
CREATE COLLATION mycoll1 FROM "C";
CREATE COLLATION mycoll2 ( LC_COLLATE = "POSIX", LC_CTYPE = "POSIX" );
CREATE COLLATION mycoll3 FROM "default"; -- intentionally unsupported
-CREATE COLLATION mycoll4 ( LOCALE = "no_such_locale" ); -- fail
DROP COLLATION mycoll1;
CREATE TABLE collate_test23 (f1 text collate mycoll2);