Mercurial > p > roundup > code
view doc/postgresql.txt @ 1885:deba54ed724f
Date arithmetic fixes.
Date +/- Interval passes all tests again, after fixing a couple of the
tests to actually reflect the calendar used on my planet rather than
where-ever Richard was when he wrote the test <wink>
The basic problem was that when going backwards, the code was adding
the days of the current month, rather than the previous month.
There's still a bug in the testDateSubtract that I'll fix next.
Bugfix candidate (probably)
| author | Anthony Baxter <anthonybaxter@users.sourceforge.net> |
|---|---|
| date | Mon, 03 Nov 2003 10:23:06 +0000 |
| parents | 3ffb7b56172a |
| children | f255363e6d97 |
line wrap: on
line source
========================== PostgreSQL/psycopg Backend ========================== This is notes about PostreSQL backend based on the psycopg adapter for roundup issue tracker. Prerequisites ============= To use PostgreSQL as backend for storing roundup data, you should additionally install: 1. PostgreSQL 7.x - http://www.postgresql.org/ 2. The psycopg python interface to PostgreSQL: http://initd.org/software/initd/psycopg Additional configuration ======================== To initialise and use PostgreSQL database roundup's configuration file (config.py in the tracker's home directory) should be appended with the following constants (substituting real values, obviously):: POSTGRESQL_DBHOST = 'localhost' POSTGRESQL_DBUSER = 'roundup' POSTGRESQL_DBPASSWORD = 'roundup' POSTGRESQL_DBNAME = 'roundup' POSTGRESQL_PORT = 5432 POSTGRESQL_DATABASE = { 'host': MYSQL_DBHOST, 'port': POSTGRESQL_PORT, 'user': MYSQL_DBUSER, 'password': MYSQL_DBPASSWORD, 'database': MYSQL_DBNAME } Also note that you can leave some values out of ``POSTGRESQL_DATABASE``: 'host' and 'port' are not necessary when connecting to a local database and 'password' is optional if postgres trusts local connections. The user specified in ``POSTGRESQL_DBUSER`` must have rights to create a new database and to connect to the "template1" database, used while initializing roundup. Have fun with psycopg, Federico Di Gregorio <fog@initd.org>
