Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit50518ec

Browse files
committed
Revert "Use libc version as a collation version on glibc systems."
This reverts commit9f90b1d.This needs some refinements in the pg_dump and pg_upgrade tests.
1 parent9f90b1d commit50518ec

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

‎src/backend/utils/adt/pg_locale.c

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,6 @@
7070
#include<unicode/ucnv.h>
7171
#endif
7272

73-
#ifdef__GLIBC__
74-
#include<gnu/libc-version.h>
75-
#endif
76-
7773
#ifdefWIN32
7874
/*
7975
* This Windows file defines StrNCpy. We don't need it here, so we undefine
@@ -1503,7 +1499,7 @@ pg_newlocale_from_collation(Oid collid)
15031499
char*
15041500
get_collation_actual_version(charcollprovider,constchar*collcollate)
15051501
{
1506-
char*collversion=NULL;
1502+
char*collversion;
15071503

15081504
#ifdefUSE_ICU
15091505
if (collprovider==COLLPROVIDER_ICU)
@@ -1527,13 +1523,7 @@ get_collation_actual_version(char collprovider, const char *collcollate)
15271523
}
15281524
else
15291525
#endif
1530-
if (collprovider==COLLPROVIDER_LIBC)
1531-
{
1532-
#if defined(__GLIBC__)
1533-
/* Use the glibc version because we don't have anything better. */
1534-
collversion=pstrdup(gnu_get_libc_version());
1535-
#endif
1536-
}
1526+
collversion=NULL;
15371527

15381528
returncollversion;
15391529
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp