model-writtenrun 5552 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane reported that psql displayed zero elapsed time after a visibly slow failing query, while PostgreSQL 14 reported the duration correctly, and suspected the changes to display all query results #1.
- Richard Guo traced the regression to missing timing updates on the error path in ExecQueryAndProcessResults() and proposed an inline fix that measured elapsed time when the last result was reached #2.
- Fabien COELHO attached a broader variant that updated elapsed time whenever a result was obtained, demonstrated timing output for a multi-statement query containing an error, and suggested adding a test #3.
- Peter Eisentraut committed Fabien's attached implementation with regression tests for timing after an error and a correction to the existing successful-query test in 9520f8d92a, then announced that it was committed with a test #4.
- Fabien COELHO acknowledged the commit with thanks, closing the thread with the fix landed and no outstanding work stated #5.