I'm still testing this but it seems to work so far. Maybe it's irrelevant but I though I would submit the patches anyway. I am running PostgreSQL 9.2 on my servers so I though I'd try to upgrade xtuple to work with the new version of the back end. My current version of PostgreSQL is 9.2.1. I've modified main.cpp from xtuple/guiclient and the sql update scripts for pb400beta2 to pb400beta3.