comparison roundup/configuration.py @ 4471:4f353d71d716

Configuration issue: On some postgresql 8.4 installations (notably on debian squeeze) the default template database used for database creation doesn't match the needed character encoding UTF8 -- a new config option 'template' in the rdbms section now allows specification of the template. You know you need this option if you get the error message: psycopg2.DataError: new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII) HINT: Use the same encoding as in the template database, or use template0 as template.
author Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
date Wed, 16 Mar 2011 11:26:50 +0000
parents f1affb6b7a08
children 9b4cf6c96ee2
comparison
equal deleted inserted replaced
4470:21a95ba01a42 4471:4f353d71d716
608 "Number of seconds to wait when the SQLite database is locked\n" 608 "Number of seconds to wait when the SQLite database is locked\n"
609 "Default: use a 30 second timeout (extraordinarily generous)\n" 609 "Default: use a 30 second timeout (extraordinarily generous)\n"
610 "Only used in SQLite connections."), 610 "Only used in SQLite connections."),
611 (IntegerNumberOption, 'cache_size', '100', 611 (IntegerNumberOption, 'cache_size', '100',
612 "Size of the node cache (in elements)"), 612 "Size of the node cache (in elements)"),
613 (NullableOption, 'template', '',
614 "Name of the PostgreSQL template for database creation.\n"
615 "For database creation the template used has to match\n"
616 "the character encoding used (UTF8), there are different\n"
617 "PostgreSQL installations using different templates with\n"
618 "different encodings. If you get an error:\n"
619 " new encoding (UTF8) is incompatible with the encoding of\n"
620 " the template database (SQL_ASCII)\n"
621 " HINT: Use the same encoding as in the template database,\n"
622 " or use template0 as template.\n"
623 "then set this option to the template name given in the\n"
624 "error message."),
613 ), "Settings in this section are used" 625 ), "Settings in this section are used"
614 " by RDBMS backends only" 626 " by RDBMS backends only"
615 ), 627 ),
616 ("logging", ( 628 ("logging", (
617 (FilePathOption, "config", "", 629 (FilePathOption, "config", "",

Roundup Issue Tracker: http://roundup-tracker.org/