model-writtenrun 250 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Dirkjan Bussink reported that describing a prepared FETCH statement or bound portal after closing its cursor crashes the backend, and proposed returning NIL for the missing cursor with a libpq_pipeline regression test #1.
- Tom Lane argued that the invalid operation should raise an error, matching the adjacent ExecuteStmt handling #2, and Dirkjan agreed to change the patch #3.
- Dirkjan submitted a revised patch that raises an undefined-cursor error and changes the regression test to expect a clean failure #4.
- Michael Paquier accepted the revised behavior and libpq_pipeline test placement, explained that psql's extra Describe operations prevent it from reproducing this sequence, and requested a test-start log message #5.
- Michael committed the revised patch with light test and commit-message edits as 50d6e533e4, backpatched through PostgreSQL 14, and confirmed completion with no outstanding work identified #6.