Restore compatibility with postgres 8