checking in PostgreSQL DB crash code