- Notifications
You must be signed in to change notification settings - Fork5
Commit8aa6e97
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 parent1548c78 commit8aa6e97
1 file changed
+23
-10
lines changedLines changed: 23 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1806 | 1806 |
| |
1807 | 1807 |
| |
1808 | 1808 |
| |
1809 |
| - | |
1810 |
| - | |
1811 |
| - | |
1812 |
| - | |
1813 |
| - | |
1814 |
| - | |
1815 |
| - | |
1816 |
| - | |
1817 |
| - | |
1818 |
| - | |
| 1809 | + | |
| 1810 | + | |
| 1811 | + | |
| 1812 | + | |
| 1813 | + | |
| 1814 | + | |
| 1815 | + | |
| 1816 | + | |
| 1817 | + | |
| 1818 | + | |
| 1819 | + | |
| 1820 | + | |
| 1821 | + | |
| 1822 | + | |
| 1823 | + | |
| 1824 | + | |
| 1825 | + | |
| 1826 | + | |
| 1827 | + | |
1819 | 1828 |
| |
| 1829 | + | |
| 1830 | + | |
| 1831 | + | |
| 1832 | + | |
1820 | 1833 |
| |
1821 | 1834 |
| |
1822 | 1835 |
| |
|
0 commit comments
Comments
(0)