aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2019-10-09 21:36:01 +0200
committerPeter Eisentraut <peter@eisentraut.org>2019-10-09 21:36:01 +0200
commit50518ec296aea3af3e00c43c2ccef74c96cb5762 (patch)
tree9b4432fd6b7a3dd6aefe101bb41995804d701bc5 /src
parent9f90b1d08d796a925808b24f77f624a0ff682c77 (diff)
downloadpostgresql-50518ec296aea3af3e00c43c2ccef74c96cb5762.tar.gz
postgresql-50518ec296aea3af3e00c43c2ccef74c96cb5762.zip
Revert "Use libc version as a collation version on glibc systems."
This reverts commit 9f90b1d08d796a925808b24f77f624a0ff682c77. This needs some refinements in the pg_dump and pg_upgrade tests.
Diffstat (limited to 'src')
-rw-r--r--src/backend/utils/adt/pg_locale.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/backend/utils/adt/pg_locale.c b/src/backend/utils/adt/pg_locale.c
index fcdbaae37b9..2a076a3dfd1 100644
--- a/src/backend/utils/adt/pg_locale.c
+++ b/src/backend/utils/adt/pg_locale.c
@@ -70,10 +70,6 @@
#include <unicode/ucnv.h>
#endif
-#ifdef __GLIBC__
-#include <gnu/libc-version.h>
-#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;
}