model-writtenrun 9593 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alvaro Herrera proposed removing \cset while retaining \gset because discussion at FOSDEM indicated that \cset added too little value for its complexity and implementation problems #1.
- Fabien COELHO offered to repair \cset and explained that PostgreSQL skips empty queries within compound statements, breaking the correspondence between counted queries and returned results; he discussed changing server behavior or detecting empty queries in the lexer #2.
- Fabien COELHO subsequently supplied the requested removal patch, deleting \cset support, documentation, and tests while preserving \gset #3.
- Fabien COELHO then deepened the removal by eliminating query-counting and prefix-array machinery, detecting the last returned result directly, and adding a test showing that \gset works with empty queries in compound statements #4.
- Alvaro Herrera committed #4 as 25ee70511e with light documentation and diagnostic cleanup, partially reverting the earlier command addition; his final reply confirmed that the removal had landed #5.