model-writtenrun 4946 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane opened the thread with a committed regression-test change using a temporary table so background transactions could not prevent the expected VACUUM FREEZE effects #1.
- Andres Freund reported buildfarm failures under force_parallel_mode=regress and suggested disabling it for the test; Tom traced the failures to get_raw_page being marked parallel safe despite parallel workers being unable to access temporary tables #2 #4.
- Robert Haas suggested that the temporary-table restriction had been overlooked, and Tom chose to correct the parallel markings and inspect sibling functions for the same problem #5 #6.
- Tom posted a pageinspect 1.11 upgrade marking disk-accessing functions PARALLEL RESTRICTED, including functions that fetch TOAST data or call affected functions; he proposed applying it to development and v15 and reverting the temporary-table test change in v14 because supporting older extension versions required disproportionate upgrade-script work #7.
- Andres noted that the restriction would prevent useful parallel scans and floated argument-dependent parallel safety; Tom considered that too limited and suggested allowing workers to read their parent's temporary tables, while David G. Johnston proposed documenting the limitation instead #8 #9 #10.
- Andres and Tom explained that shared access to temporary tables would require substantial work on locking, process-local buffers, and assumptions behind temporary-table optimizations, leaving that broader redesign unresolved #11 #12.
- Tom committed the attached patch unchanged as aeaaf520f4, with a v15 backport and an explicit decision not to support this case on older branches through additional extension upgrade paths #7.
- After the commit, Greg Stark proposed separate temporary-table and persistent-table page-reading functions to preserve parallel scans for persistent tables; the thread ends with the restriction fix landed and this alternative unimplemented in the supplied record #13.