model-writtenrun 4794 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Justin Zhang reported that PostgreSQL 15.1 pg_dump --clean --if-exists tried to insert IF EXISTS into a comment about preserving the public schema, producing a warning despite successfully generating the dump; PostgreSQL 14 did not show the warning #1.
- Tom Lane reproduced the warning after dropping and recreating the public schema #3, then traced it to a non-default schema owner and attached a patch making RestoreArchive pass comment-only drop statements through unchanged #4.
- Tom initially proposed backpatching more broadly #4, but established that comment-only drop statements were introduced in PostgreSQL 15, limiting the required backpatch to that version #5.
- Tom committed the attached patch #4 unchanged as 74739d1d3f, eliminating the cosmetic warning without changing dump output.
- The thread ended with Noah Misch saying the committed fix looked good #6; this approval followed the commit, and no further changes were requested.