[postgres] Truncate long queries and values