2 comments

  • bananamogul10 minutes ago
    This article states multiple times that spinning up a process is expensive&#x2F;very expensive. Is that really true? I ask out of ignorance.<p>“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.”<p>“Because it’s expensive to spin up new processes, Postgres will only do this for long-running queries.”<p>Also:<p>“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.”<p>I’ve read several times that on Linux, the cost between a process and a thread is relatively small.
    • wbkang5 minutes ago
      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.
    • dudul7 minutes ago
      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.<p>Where have you red that &quot;the cost between a process and a thread is relatively small.&quot;? I would be curious to see a link because the most cursory internet search would show you that it is not true.
  • dmitrijbelikov1 hour ago
    If you understand Postgres&#x27;s problems so well (though in reality, such problems can occur in many applications, and it&#x27;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.
    • studmuffin65011 minutes ago
      I think the issue isn’t a lack of want for fixing these issues, but the inertia and friction of getting them fixed.<p>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.<p>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.
    • zaik49 minutes ago
      It is explained in the article: Any of those changes require massive or incompatible changes.
      • hoppp47 minutes ago
        So they want 100% compatibility first and then implement features that require massive and incompatible changes?
        • dvhh34 minutes ago
          Checks out, pgrust is mainly an LLM driven rewrite with minimum supervision and guided by 100% test suite conformance.
      • dmitrijbelikov38 minutes ago
        No, this note is another declaration without exact explanation. If you have real bugs you should send a bug report, that&#x27;s all.<p>Maybe you should start from bug report without LLM-slop?