forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitbbea364
committed
Store current LC_COLLATE and LC_CTYPE settings in pg_control during initdb;
re-adopt these settings at every postmaster or standalone-backend startup.This should fix problems with indexes becoming corrupt due to failure toprovide consistent locale environment for postmaster at all times. Also,refuse to start up a non-locale-enabled compilation in a database originallyinitdb'd with a non-C locale. Suppress LIKE index optimization if localeis not "C" or "POSIX" (are there any other locales where it's safe?).Issue NOTICE during initdb if selected locale disables LIKE optimization.1 parent0432ce9 commitbbea364
File tree
11 files changed
+341
-127
lines changed- doc/src/sgml
- src
- backend
- access/transam
- bootstrap
- optimizer/path
- postmaster
- tcop
- utils/adt
- include
- access
- catalog
- utils
11 files changed
+341
-127
lines changedLines changed: 26 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| |||
79 | 79 |
| |
80 | 80 |
| |
81 | 81 |
| |
82 |
| - | |
83 |
| - | |
84 |
| - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
85 | 85 |
| |
86 | 86 |
| |
87 | 87 |
| |
| |||
101 | 101 |
| |
102 | 102 |
| |
103 | 103 |
| |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
104 | 126 |
| |
105 | 127 |
| |
106 | 128 |
| |
|
0 commit comments
Comments
(0)