Commit Graph
10 Commits
Author SHA1 Message Date
Mika Bostrom 105e868864 Catch local connection config
If database backend is Postgres and the connection is over domain
socket, the only values in <database> node are:
    * db_name
    * db_server
    * db_type

Now, for some reason the config reader unconditionally creates "tidy"
string representations for all possible keys. This means that
host, user and password are all empty strings (''), and not even
NoneType entities.

To catch the case for postgres, simply treat empty host the same as
undefined host.
2009-07-05 23:33:09 +03:00
Mika Bostrom 90e348946f First step at fixing the bulk importer with postgres 2008-12-06 21:59:58 +02:00
Mika Bostrom 415eb4a3c6 Retab/whitespace demangly fpdb_import.py 2008-12-06 21:50:40 +02:00
Mika Bostrom 19c0328955 Change syntax for CREATE INDEX... for postgresql 2008-12-06 21:14:39 +02:00
Mika Bostrom 6070066f8a obtain_global_lock() is a method, not top-level function 2008-12-06 15:16:55 +02:00
Mika Bostrom dfb8a06686 Allow to connect to local PostgreSQL via domain socket 2008-12-06 15:07:37 +02:00
Mika Bostrom 7ecfac5437 Retab/whitespace demangle fpdb_db.py 2008-12-06 14:40:04 +02:00
Mika Bostrom c9700fc1a7 Some debugs 2008-12-06 14:34:44 +02:00
Mika Bostrom 0f05d0886e Modify local HUD_config.xml, clean some places and change DB type to
postgresql
2008-12-06 14:10:50 +02:00
Mika Bostrom 3eb1a1dd0b Start to clean up psycopg2.connect() and surroundings 2008-12-06 13:41:39 +02:00