Postgres adaptation