Revert "Use libc version as a collation version on glibc systems."
authorPeter Eisentraut
Wed, 9 Oct 2019 19:36:01 +0000 (21:36 +0200)
committerPeter Eisentraut
Wed, 9 Oct 2019 19:36:01 +0000 (21:36 +0200)
This reverts commit 9f90b1d08d796a925808b24f77f624a0ff682c77.

This needs some refinements in the pg_dump and pg_upgrade tests.

src/backend/utils/adt/pg_locale.c

index fcdbaae37b9db6d2090aac1196e9b6f2118f2380..2a076a3dfd19522d23c13536cd3f1990524569af 100644 (file)
 #include 
 #endif
 
-#ifdef __GLIBC__
-#include 
-#endif
-
 #ifdef WIN32
 /*
  * This Windows file defines StrNCpy. We don't need it here, so we undefine
@@ -1503,7 +1499,7 @@ pg_newlocale_from_collation(Oid collid)
 char *
 get_collation_actual_version(char collprovider, const char *collcollate)
 {
-   char       *collversion = NULL;
+   char       *collversion;
 
 #ifdef USE_ICU
    if (collprovider == COLLPROVIDER_ICU)
@@ -1527,13 +1523,7 @@ get_collation_actual_version(char collprovider, const char *collcollate)
    }
    else
 #endif
-   if (collprovider == COLLPROVIDER_LIBC)
-   {
-#if defined(__GLIBC__)
-       /* Use the glibc version because we don't have anything better. */
-       collversion = pstrdup(gnu_get_libc_version());
-#endif
-   }
+       collversion = NULL;
 
    return collversion;
 }