Thread: creating a pgconnection (or pgdatabase) object on the heap gives segmentation fault...