Re: locale changes
От | Tom Lane |
---|---|
Тема | Re: locale changes |
Дата | |
Msg-id | 24879.964106183@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | locale changes (Karel Zak <zakkr@zf.jcu.cz>) |
Ответы |
Re: locale changes
|
Список | pgsql-patches |
Karel Zak <zakkr@zf.jcu.cz> writes: > Now, possible is change locale environment from client without backend > restart and under one postmaster can run more backends with different > locale setting. No, no, NOOOOO!!!! This *will* destroy your database. Think about indexes on text columns. Change LOCALE, now the sort order of the data is different. Even if the btree code doesn't crash and burn completely, it will fail to find stuff it should have found and/or insert new items at positions that will be wrong after the next LOCALE change. Not only is on-the-fly LOCALE change not acceptable, but we really ought to be recording the LOCALE settings at initdb time and forcing the postmaster to adopt them when it starts up. Right now you can shoot yourself in the foot if you don't start the postmaster with the same LOCALE every time. Someday we may support per-column LOCALE settings, but it's not likely ever to be safe to change LOCALE on the fly. regards, tom lane
В списке pgsql-patches по дате отправления: