forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3df9c37
committed
Disable abbreviated keys for string-sorting in non-C locales.
Unfortunately, every version of glibc thus far tested has bugs wherebystrcoll() ordering does not match strxfrm() ordering as required bythe standard. This can result in, for example, corrupted indexes.Disabling abbreviated keys in these cases slows down non-C-collationstring sorting considerably, but there seems to be no practicalalternative. Users who are confident that their libc implementationsare solid in this regard can re-enable the optimization by compilingwith TRUST_STRXFRM.Users who have built indexes using PostgreSQL 9.5 or PostgreSQL 9.5.1should REINDEX if there is a possibility that they may have beenaffected by this problem.Report by Marc-Olaf Jaschke. Investigation mostly by Tom Lane, withhelp from Peter Geoghegan, Noah Misch, Stephen Frost, and me. Patchby me, reviewed by Peter Geoghegan and Tom Lane.1 parent3151f16 commit3df9c37
1 file changed
+23
-10
lines changedLines changed: 23 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1832 | 1832 |
| |
1833 | 1833 |
| |
1834 | 1834 |
| |
1835 |
| - | |
1836 |
| - | |
1837 |
| - | |
1838 |
| - | |
1839 |
| - | |
1840 |
| - | |
1841 |
| - | |
1842 |
| - | |
1843 |
| - | |
1844 |
| - | |
| 1835 | + | |
| 1836 | + | |
| 1837 | + | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
1845 | 1854 |
| |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
1846 | 1859 |
| |
1847 | 1860 |
| |
1848 | 1861 |
| |
|
0 commit comments
Comments
(0)