Multithreaded server
Moving the server from processes to threads and its groundwork: removing thread-unsafe globals and libc calls, a portable thread API (pg_threads.h), thread-safe GUCs.
Versions
- PostgreSQL 18 · worked-on · new · moderate
- PostgreSQL 17 · worked-on · new · major
Threads
- Re: pg_threads.h take II
- pg_threads.h take II
- Thread-safe stringToNode() / pg_strtok()
- BUG #19612: SEGV in ParseConfigFp() in guc-file.l
- pg_dump: use threads for parallel workers on all platforms
- Can we get rid of TerminateThread() in pg_dump?
- Split fd.c into multiple source files
- report on not thread-safe functions
- On non-Windows, hard depend on uselocale(3)
- PL/Python initialization cleanup
- GUC thread-safety approaches
- libpq OpenSSL and multithreading
- Generate GUC tables from .dat file
- Replace remaining getpwuid() calls with getpwuid_r()?
- Thread-safe nl_langinfo() and localeconv()
- pure parsers and reentrant scanners
- replace strtok()
- thread-safety: strerror_r()
- thread-safety: getpwuid_r()
- Cleaning up threading code
- thread-safety: gmtime_r(), localtime_r()
- Thread-unsafe MD5 on big-endian systems with no OpenSSL
- Minor refactorings to eliminate some static buffers
- Refactoring backend fork+exec code
- [multithreading] extension compatibility
- Remove Start* macros from postmaster.c to ease understanding of code
- Use thread-safe locale APIs
- Checks in RegisterBackgroundWorker.()
- Let's make PostgreSQL multi-threaded
- Experimenting with Postmaster variable scope
- Thread-unsafe coding in ecpg
- Postgres with pthread
- Huge backend memory footprint