Tested with PostgreSQL.