db: support for postgres 8.4