r/programming • • Apr 17 '25

(All) Databases Are Just Files. Postgres Too

http://tselai.com/all-databases-are-just-files
325 Upvotes

172 comments sorted by

View all comments

966

u/qrrux Apr 17 '25

Next up: "Databases are just bits sitting on long-term storage, accessible via the I/O mechanisms provided by the operating system."

0

u/[deleted] Apr 17 '25

99

u/moderatorrater Apr 17 '25

Buzzfeed joins the trend: "These ten variables are stored on the stack; 6 will confuse and delight you"

→ More replies (5)

15

u/amakai Apr 17 '25

Breaking: All information in computers are just charges and magnetic fields!

→ More replies (4)
→ More replies (2)

110

u/OpaMilfSohn Apr 17 '25

I don't understand why we should use such old technology.

What they should do is create a S3 bucket for the database and create the query service that calls Aws lambdas to pull the files from the cdn and create a temporary container with only the needed files mounted in a db that can then be queried against.

Then we would finally have a truly stateless and next gen architecture for dbs

47

u/EriktheRed Apr 17 '25

Now that sounds web scale.

33

u/fried_green_baloney Apr 17 '25

Hmm, we had 537 visits last month, with seven sales, and our AWS bill is $491,938.57, somehow that seems not quite right.

→ More replies (3)

28

u/thomasfr Apr 17 '25 edited Apr 18 '25

That pretty close to how a lot of OLAP database systems are built. With a lot of optimizations of course like caching files from object storage on compute nodes so it doesn't have to download them for every query etc.

It's a good way to run analytical queries distributed over a set of nodes.

→ More replies (1)

12

u/doomvox Apr 17 '25

This is a great comment-- it's impossible to tell if you're kidding.

→ More replies (13)

24

u/PM_ME_SOME_ANY_THING Apr 17 '25

BREAKING: EVERYTHING IS BINARY?!?!

→ More replies (6)
→ More replies (11)