Aim for the stars
Aim for the stars
Posted Jun 19, 2023 23:18 UTC (Mon) by michaelmior (guest, #165680)In reply to: Aim for the stars by Wol
Parent article: PostgreSQL reconsiders its process-based model
Postgres scales by coordinating among multiple processes on a single machine. The proposal is to use multiple threads instead of multiple processes.
This is similar to the CPython GIL, but the GIL doesn't enforce a single process. It prevents multiple threads from running concurrently in the same process. In CPython with the GIL, multiple processes are *necessary* to scale CPU-bound code.
