Issue with new save-as dialog for postgres

Derek Atkins warlord at MIT.EDU
Tue May 19 13:20:37 EDT 2009

Phil Longstaff <plongstaff at> writes:

>> Turns out port 0 is hard coded.
>> I changed src/backend/dbi/gnc-backend-dbi.c line 438 from this:
>> result = dbi_conn_set_option_numeric( be->conn, "port", 0 );
>> to this:
>> result = dbi_conn_set_option_numeric( be->conn, "port", 5432 );
>> and things are working now.  Perhaps if the port is going to be hard
>> coded it should at least be the default port for postgres?
> I can't remember why I hard-coded it to 0.  I should probably add another field 
> to the form so that you can specify port and set that default to 5432.

Maybe you hard-coded it because you were assuming a local database,
and '0' is okay for a unix domain socket?  (just guessing)

> Phil


       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL:    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available

More information about the gnucash-devel mailing list