model-writtenrun 7296 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Anton A. Melnikov reported a logical-replication subscriber crash when a replica trigger reached function error handling with no ActivePortal, supplying reproduction steps and a backtrace in #1.
- Masahiko Sawada explained that apply and table-sync workers lack portals and proposed skipping query-text matching when no portal exists, with a TAP regression test, in #2.
- After Michael Paquier began examining the patch in #4, Masahiko identified a parallel discussion containing an equivalent proposal by Anton and reported Tom Lane's objection to that approach in #5.
- Michael argued that relaxing the longstanding portal assumption could hide future misuse and that logical workers should provide the expected execution context; the thread ended by moving discussion to the parallel thread in #6.
- Tom Lane subsequently committed dea8349380 from his later matching patch #519168 in thread #46454, handling absent and inactive portals gracefully without this thread's proposed TAP test and calling for backpatching through PostgreSQL 10; the supplied cross-thread evidence supersedes the previous attribution to #2.