mirror of
https://github.com/postgres/postgres.git
synced 2025-05-02 11:44:50 +03:00
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.
This commit is contained in:
parent
9f90b1d08d
commit
50518ec296
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user