model-writtenrun 1972 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Corey Huinker reported that postgres_fdw's remote-sampling tests analyzed a local table and attached a fix correcting both the ANALYZE targets and the foreign table's reference to a nonexistent table #1.
- Corey Huinker also proposed capturing the database name and port in psql variables, replacing dynamic SQL DO blocks to improve readability and individual error reporting #1.
- Michael Paquier accepted the sampling fix for backpatching but initially deferred the variable cleanup to preserve a DO-block example useful for isolation tests that cannot rely on psql #2.
- The sampling fix landed unchanged as 783cbb6d5e, and Michael Paquier confirmed that it had been applied through PostgreSQL 16 #3.
- Michael Paquier reconsidered the cleanup because the other thread and repository history preserved the DO-block example, while simpler debugging favored the change; he confirmed its application to HEAD in #4, completing both patches with 36aed19fd9, which made minor formatting changes and omitted the final variable-unset commands.