Tested with postgresql.