[FIX #4938] Override PostgresGrammar.getDateFormat

Fix for #4938

Override getDateFormat in PostgresGrammar to include the partial seconds