Postgres compatibility updates (NOTE: breaks without red 25d69a9 or newer due to db_getfunc())
also excluded: fortunate and random_home
Merge remote-tracking branch 'upstream/master'
postgres updates
Merge pull request #30 from habeascodice/master

postgres updates