logoalt Hacker News

fpgamineryesterday at 10:20 PM9 repliesview on HN

If it's a choice between performance and being able to "safely" run sketchy extensions, I'd rather have performance.


Replies

brianakeryesterday at 11:22 PM

A mixture of threads and processes that can be used to match processors, disk I/O, and network interfaces.

A very long time ago, there was once a feature called "Data Blades" which tanked a commercial database vendor. A badly behaving blade could bring down the entire database. Most anyone who has been working on databases for a few decades remembers this and makes a point of either not introducing these sorts of features or making use of processes over threads.

I have not looked at the code referenced in the mentioned project, but thus far I haven't seen a model that could craft a complete SQL parser on its own.

There are a number of problems, and design decisions, that a developer decides on when writing a database that I don't see any current models… just because you have the ingredients does not mean that the stew is edible.

show 2 replies
rtpgtoday at 5:55 AM

While PG's behavior doesn't guarantee a lack of data corruption, "an extension crashed, all bets are off, tear everything down" is going to give you a much better fighting chance against data corruption vs the alternative.

roughlytoday at 12:49 AM

In the age of vibe-generated code, I promise you're gonna want the safety.

show 2 replies
throwitaway222today at 5:13 PM

Especially since all those sketchy extensions can be rewritten in rust over a weekend and have their bugs fixed as well.

socalgal2today at 2:57 AM

You could fix probably the sketchy extension issue with WASM.

show 1 reply
tremonyesterday at 11:42 PM

Do you mean that you don't run sketchy extensions and therefore this doesn't affect you, or that you're ok with data loss due to extension failures?

hoppptoday at 12:50 AM

What about extensions that are not sketchy? Lots of good ones out there.

show 2 replies
ori_btoday at 2:35 AM

But it isn't.

jeltzyesterday at 10:33 PM

Threads does not offer any major performance advantage, performance of processes vs threads is virtually the same. The reason the PostgreSQL project is moving towards threads is to make development easier.

show 3 replies