Re:The four horsemen behind Postgres outages
by dmitrijbelikov on Sunday July 12, 2026 @10:34PM
(#48887176)
If you understand Postgres's problems so well (though in reality, such problems can occur in many applications, and it's unclear how your rewritten version attempts to solve them), then why not address them in the main branch by becoming a contributor.
Less code and more value.
Re:The four horsemen behind Postgres outages
by studmuffin650 on Sunday July 12, 2026 @11:25PM
(#48887500)
I think the issue isn’t a lack of want for fixing these issues, but the inertia and friction of getting them fixed.
The issues around the transaction ids and process per connection are well known, but the changes to the codebase to fix them would either constitute a backwards incompatible change that would change storage needs or an incredibly large rewrite of the codebase that breaks with decades of assumptions.
The json issue is a lot less of a problem as that’s net new. But some of these changes have been debated for years with no movement (and no lack of willing developers to tackle it) and at some point a fork or rewrite like this will happen. In my mind, all LLMs have done is made this work easier to do. If you have reservations about LLM’s doing this kind of work, no one is forcing you to use it, and I think it shows the utility of LLMs in that these kinds of things now can exist.
Re:The four horsemen behind Postgres outages
by yolobolo on Monday July 13, 2026 @01:42PM
(#48896145)
Sure, why not? Never reaching 100% compatible is a problem as is never amounting to more than a bug for bug clone. If they can quantify exactly what they have changed for good reason then that's good for them.
Re:The four horsemen behind Postgres outages
by yolobolo on Monday July 13, 2026 @03:14PM
(#48897379)
Sure, I'm impressed that something like this that would have been a thought experiment or a decades long project with minimal coverage is now a prototype that seems to me like it will contribute something back even if there might not be a rush to use it directly. During the NoSQL phase one can say it was real human engineers making that stuff but often the overall quality was bellow anything that should pass a quantitative measure like a postgres test suite and people put those in production even when they were known to have deep design flaws.
Re:The four horsemen behind Postgres outages
by bananamogul on Sunday July 12, 2026 @11:26PM
(#48887512)
This article states multiple times that spinning up a process is expensive/very expensive. Is that really true? I ask out of ignorance.
“Compared to other ways of doing parallelism, processes are very expensive, both in terms of taking CPU resources but also the amount of time it takes to spin up a new process.”
“Because it’s expensive to spin up new processes, Postgres will only do this for long-running queries.”
Also:
“There’s been years of people talking about switching Postgres from a process model to a threading model, but nothing concrete has come out of that.”
I’ve read several times that on Linux, the cost between a process and a thread is relatively small.
Re:The four horsemen behind Postgres outages
by wbkang on Sunday July 12, 2026 @11:31PM
(#48887545)
It’s all relative. It’s cheap if you think about spinning up new processes to run one off commands. It gets very expensive when you have to spawn it hundreds of times per second, and it can waste cpu cycles that could be used for query processing instead.
Re:The four horsemen behind Postgres outages
by dudul on Sunday July 12, 2026 @11:29PM
(#48887532)
A process is significantly more expensive than a thread on a Linux system. The main cost is memory. Processes own their memory which forces the system to duplicate resources, as opposed to threads that are able to share resources.
Where have you red that "the cost between a process and a thread is relatively small."? I would be curious to see a link because the most cursory internet search would show you that it is not true.
Re:The four horsemen behind Postgres outages
by guenthert on Monday July 13, 2026 @05:51AM
(#48890197)
"significantly more expensive" and "relatively small"
Well, both are true of course. You will have to put numbers on those to make sensible decisions.
Historically, creating processes in Linux has been cheaper than in other Unix-like OS (you might find results of an old Byte benchmark) and much cheaper than in Windows. Creating a thread will be undoubtedly cheaper still, but whether that will change the user experience or is worth the cost depends on details (how large the memory footprint is, pagesize, how many files are open, how many threads are to be executed, their lifetime, how many execution units are available, etc.).
Re:The four horsemen behind Postgres outages
by titanomachy on Monday July 13, 2026 @01:06AM
(#48888145)
It’s also important to distinguish between an os thread and a userspace thread. The author said “thread” without qualification, so I don’t know which he meant. Userspace threads can be many times lighter than processes.
The issues around the transaction ids and process per connection are well known, but the changes to the codebase to fix them would either constitute a backwards incompatible change that would change storage needs or an incredibly large rewrite of the codebase that breaks with decades of assumptions.
The json issue is a lot less of a problem as that’s net new. But some of these changes have been debated for years with no movement (and no lack of willing developers to tackle it) and at some point a fork or rewrite like this will happen. In my mind, all LLMs have done is made this work easier to do. If you have reservations about LLM’s doing this kind of work, no one is forcing you to use it, and I think it shows the utility of LLMs in that these kinds of things now can exist.
So even if they reach 100% compatibility they never get equality.
Then Vibe into that and add changes that breaks the existing coverage...
Why not reimplement the entire thing from the ground up with the changes in mind from the start instead?
The upgrade is an afterthought to a system that is not verified to be fully working and the new features will break the existing verification too.
If I had OCD it would be triggered to the max by this. But I'm just sipping a drink from the sidelines.
Maybe you should start from bug report without LLM-slop?
“Compared to other ways of doing parallelism, processes are very expensive, both in terms of taking CPU resources but also the amount of time it takes to spin up a new process.”
“Because it’s expensive to spin up new processes, Postgres will only do this for long-running queries.”
Also:
“There’s been years of people talking about switching Postgres from a process model to a threading model, but nothing concrete has come out of that.”
I’ve read several times that on Linux, the cost between a process and a thread is relatively small.
Where have you red that "the cost between a process and a thread is relatively small."? I would be curious to see a link because the most cursory internet search would show you that it is not true.
Well, both are true of course. You will have to put numbers on those to make sensible decisions.
Historically, creating processes in Linux has been cheaper than in other Unix-like OS (you might find results of an old Byte benchmark) and much cheaper than in Windows. Creating a thread will be undoubtedly cheaper still, but whether that will change the user experience or is worth the cost depends on details (how large the memory footprint is, pagesize, how many files are open, how many threads are to be executed, their lifetime, how many execution units are available, etc.).