Adaptation to PostgreSQL