Aim for the stars
Aim for the stars
Posted Jun 19, 2023 22:22 UTC (Mon) by Wol (subscriber, #4433)In reply to: Aim for the stars by nevyn
Parent article: PostgreSQL reconsiders its process-based model
Linux and Python decided that removing that restriction was worthwhile. Whether PostgreSQL succeeds or not, the effort they make towards removing that restriction may well be worthwhile.
Cheers,
Wol
Posted Jun 19, 2023 23:18 UTC (Mon)
by michaelmior (guest, #165680)
[Link]
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.
Posted Jun 22, 2023 10:46 UTC (Thu)
by khim (subscriber, #9252)
[Link]
Have you actually read the article? No, it's most definitely not a single process. They are using multiple processes, shared memory and, obviously, some locks to ensure consistency. Which means they already have locks and don't need GIL or BKL.
Aim for the stars
> PostgreSQL *is* a single process?
Aim for the stars
