Changes between Version 61 and Version 62 of InstallationGuidelines/PostgreSQL
- Timestamp:
- 06/05/12 12:19:18 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
InstallationGuidelines/PostgreSQL
v61 v62 262 262 263 263 === Install === 264 Problem: 264 265 {{{ 265 266 createdb: database creation failed: ERROR: encoding UTF8 does not match server's locale en_US … … 267 268 }}} 268 269 269 1. Ensure all locales are available: {{{apt-get install locales-all}}} 270 1. Uncomment en_US.UTF8 in {{{/etc/locale.gen}}} 271 2. Run {{{locale-gen}}} 272 3. Rebuild the PostgreSQL cluster: {{{pg_createcluster 8.4 utf8_cluster}}} 273 270 Solution: 271 {{{ 272 # Ensure all locales are available 273 apt-get install locales-all 274 sed -i 's|# en_US.UTF-8 UTF-8|en_US.UTF-8 UTF-8|' /etc/locale.gen 275 locale-gen 276 # Rebuild the PostgreSQL cluster 277 pg_createcluster 8.4 utf8_cluster 278 }}} 274 279 === Performance === 275 280 * http://wiki.postgresql.org/wiki/Performance_Optimization