frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Replace PostgreSQL with Git for your next project

https://devcenter.upsun.com/posts/why-you-should-replace-postgresql-with-git-for-your-next-project/
28•tlar•2h ago

Comments

fibers•1h ago
What would be the downsides of running this as a self hosted instance because i would imagine github would not take kindly to this usecase?
9dev•1h ago
GitHub wouldn't care for the most part, because they have solid rate limits in place that would foil your plan to use this for a production app immediately.
datadrivenangel•1h ago
For a small project, this would be fine. Maybe a slight step up from just storing data in a single local file. For a more serious small project, SQLite is the way to go, as git's 'atomic' commits are still going to be relatively slow.

I assume you'd struggle to get a few hundred commits per second even on good hardware?

porridgeraisin•1h ago
Some 4k per second on my laptop if you use git non-porcelain commands directly.
kragen•1h ago
Possibly if this sounds interesting you should check out Dolt: https://github.com/dolthub/dolt “Git for Data! (...) a SQL database that you can fork, clone, branch, merge, push and pull just like a Git repository.”

With respect to querying Git repos, I was pleasantly surprised with how usable git cat-file --batch was as a programmatic way to walk around the Git graph in http://canonical.org/~kragen/sw/dev3/threepowcommit.py, which reads about 8000 commits per second on my laptop—not fast, but not as slow as you'd expect.

farhanhubble•1h ago
I've used Dolt briefly and loved it. I didn't need real time perf but being able to see diffs and checkout branches was phenomenal.
_alternator_•1h ago
This is a bad idea. Every use case they mention has a simpler, more performant option that’s easier to maintain. It reads like someone asked an LLM if they can use git as a database, then decided to post that to the web because being controversial gets clicks.
luhn•1h ago
That's exactly what they're doing, it's just driving engagement for their sales:

> While Git makes an interesting database alternative for specific use cases, your production applications deserve better. Upsun provides managed PostgreSQL, MySQL, and other database services

_alternator_•1h ago
This should do the opposite: I would not trust anyone who thinks that this is a solution worth considering for the use cases they identified as my database service provider.
9rx•44m ago
Why is it a bad idea? They only mention one use case, but I have been in a similar situation where git was already being used and, like them, I simply needed to connect into the same functionality with my service. Sure, I could have come up with all kinds of complex solutions to synchronize git with other databases... Or I could just use git. It works fine. Why wouldn't it? That's the type of workload git is designed for.
zimbatm•1h ago
Gerrit is doing this with NoteDB. Backups are just one git clone away.

See https://gerrit-review.googlesource.com/Documentation/note-db...

stuartjohnson12•1h ago
do not do this lol
mxuribe•1h ago
"Your Scientists Were So Preoccupied With Whether Or Not They Could, They Didn’t Stop To Think If They Should" (quote by Jeff Goldblum's character Ian Malcolm in the original Jurassic Park film). /s

More seriously, i agree that to make a use-case fit seems too much of a stretch...Yes, its cool that git can be used in this fashion, as a neat experiment! But, for even non-serious needs, not sure that i would ever do this. But, still, very clever thinking for even thinking of and doing this; kudos!

bitmasher9•1h ago
Imagine the possibilities of using GitHub actions as a way to trigger events based on new data being saved. This could be used to sync data across multiple git databases.
_alternator_•54m ago
This is built in to git as “git hooks”; GitHub not required. But don’t do it. Postgres has a system to trigger commands based on SQL patterns (eg on commit, when updating a row in this table, etc). Much more powerful and maintainable since it is designed for this.

The fact is that basically every data structure can be abused as a database (python dicts, flat files, wave in mercury traveling down a long tube). Don’t reinvent the wheel, learn to use a power tool like Postgres.

fschuett•49m ago
I did once write a system like that using libgit2 for the German Grundbuch (land registry):

https://github.com/projekt-dgb/dgb-server/blob/master/API.md...

In the current system, rights, owners and debts of any land parcel in Germany are simply recorded in PDF files, with an ID for each parcel. So, when adding a "record", the govt employees literally just open the PDF file in a PDF editor and draw lines in the PDF, then save it again. Some PDF files are simply scanned pages of typewriter text (often even pre-WW2), so the lines are just added on top. It's a state-of-the-art "digital" workflow for our wonderful, modern country.

Anyway, so I wrote an entire system to digitize it properly (using libtesseract + a custom verifying tool, one PDF file => one JSON file) and track changes to parcels using git. The system was also able to generate Änderungsmitteilungen (change notices) using "git diff" and automatically send them via E-Mail (or invoke a webhook to notify banks or other legal actors, that the parcel had changed - currently this is done using paper and letters).

It was a really cool system (desktop digitizing tool + web server for data management), but the German government didn't care, although some called it "quite impressive". So it's now just archived on GitHub. Their current problem with "digitization" was that every state uses different formats and extra fields for the and they are still (after 20+ years) debating about what the "standardized" database schema should be (I tried to solve that with an open, extensible JSON schema, but nah [insert guy flying out of window meme]). I'm a one-man show, not a multi-billion dollar company, so I didn't have the "power" to change much.

Instead, their "digital Grundbuch" (dabag) project is currently a "work in progress" for 20+ years: https://www.grundbuch.eu/nachrichten/ because 16 states cannot standardize on a unified DB scheme. So it's back to PDF files. Why change a working system, I guess. Germans, this is where your taxes are spent on - oh well, the project was still very cool.

daxfohl•41m ago
Don't do this. I did this many years ago for a small internal "parts" database for our small EE team, since we needed an audit history of changes.

It was just awkward to use. Diffs were weird and hard to wrap a UI around, search wasn't great, it was hard to make ids sequential (the EE team hated uuids), etc., and conflict resolution usually still had to be done in a code editor. Even the killer app, the audit trail, didn't work quite the way the EE team wanted. Code to work around the disparities was probably half the codebase.

I ended up migrating to a normal database after a few months and everything was a lot better.

Show HN: Postgres-Backed Durable Workflows in Go

https://github.com/dbos-inc/dbos-transact-golang
1•KraftyOne•15s ago•0 comments

My Thoughts on Euruko

https://noteflakes.com/articles/2025-09-23-euruko
1•janpio•59s ago•0 comments

Solarpunk and the Way Out

https://old.anemon.es/notes/simondon.html
2•xk3•1m ago•0 comments

Show HN: CloudQA – TruRT: Regression Testing That Doesn't Break Every Sprint

1•ArunCQA•1m ago•0 comments

Introducing PrediBench – Leaderboard of LLMs Betting on Polymarket

https://predibench.com/
1•aubanel•2m ago•0 comments

How Innovative Companies Leverage Analyst Research Firms

https://guptadeepak.com/the-complete-guide-to-analyst-research-firms-how-innovative-companies-nav...
1•guptadeepak•3m ago•0 comments

Is Gen Z Unemployable?

https://www.wsj.com/opinion/is-gen-z-unemployable-288d2ec9
1•sandwichsphinx•3m ago•0 comments

Ryanair's new check-in rules as physical boarding passes to be scrapped

https://www.msn.com/en-ie/travel/news/ryanair-s-new-check-in-rules-as-physical-boarding-passes-to...
1•bonoboTP•5m ago•0 comments

The Continuing End of OTA TV

https://doc.searls.com/2025/09/23/the-continuing-end-of-ota-tv/
1•speckx•6m ago•0 comments

From Dashboards to Standards Introducing the AI Visibility 2.0 White Paper

https://www.aivojournal.org/from-dashboards-to-standards-introducing-the-ai-visibility-2-0-white-...
1•businessmate•8m ago•1 comments

The $7T Delusion: Was Sam Altman the First Real Case of GPT Psychosis?

https://medium.com/@adan.nygaard/the-7-trillion-delusion-was-sam-altman-the-first-real-case-of-ch...
2•GorkFangirl•10m ago•1 comments

PC memory costs to climb as fabs chase filthy lucre in servers and HBM

https://www.theregister.com/2025/09/24/pc_memory_price_hike/
2•rntn•13m ago•0 comments

How to Build a Powerful Reverse Proxy Firewall for Blocking Web-Scraping

https://cheapskatesguide.org/articles/debian-netinstall-waf.html
1•speckx•13m ago•0 comments

How to track the super polluters next door

https://www.cnn.com/2025/09/24/climate/tracking-polluters-tool
1•thelastgallon•15m ago•0 comments

Don't Buy These GPU's for Local AI Inference

https://aiflux.substack.com/p/dont-buy-these-gpus-for-local-ai
1•ericdotlee•15m ago•1 comments

"Middle-out compression" of LLM context on OpenRouter

https://openrouter.ai/docs/features/message-transforms
1•pr337h4m•18m ago•0 comments

Norway's Red Party Offers a Working-Class Alternative

https://jacobin.com/2025/09/norway-red-party-working-class/
3•PaulHoule•18m ago•0 comments

Microsoft Partners with OpenAI Rival Anthropic on AI Copilot

https://www.bloomberg.com/news/articles/2025-09-24/microsoft-partners-with-openai-rival-anthropic...
1•miletus•20m ago•0 comments

Emergent raises $23M from Lightspeed to let consumers build apps

https://techcrunch.com/2025/09/24/emergent-raises-23m-from-lightspeed-to-let-consumers-build-apps/
1•koolhead17•22m ago•0 comments

Movie Studio Lionsgate Is Struggling to Make AI-Generated Films with Runway

https://petapixel.com/2025/09/23/movie-studio-lionsgate-is-struggling-to-make-ai-generated-films-...
1•speckx•22m ago•0 comments

Compiling Python to Run Anywhere

https://blog.codingconfessions.com/p/compiling-python-to-run-anywhere
2•olokobayusuf•26m ago•0 comments

Photo Palettes – Find color inspiration in the everyday

https://photopalettes.com/
1•sillysideprojs•27m ago•0 comments

Modular Raises $250M to Scale AI's Unified Compute Layer

https://www.modular.com/blog/modular-raises-250m-to-scale-ais-unified-compute-layer
3•ashvardanian•28m ago•0 comments

A simple privacy hack for moms filming room tours

https://wumask.com/
1•EtudusMax•29m ago•1 comments

Mushrooms evolved psychedelics twice, baffling scientists

https://www.sciencedaily.com/releases/2025/09/250924012226.htm
1•Brajeshwar•30m ago•0 comments

Launch HN: Flywheel (YC S25) – Waymo for Excavators

9•jashmota•32m ago•3 comments

Show HN: AI-Generated N8n Templates Gallery

https://n8ntemplates.me
1•BobJi•33m ago•0 comments

FDD Uncovers Likely Chinese Intelligence Operation That Began 3 Years Ago

https://www.fdd.org/analysis/2025/09/11/fdd-uncovers-likely-chinese-intelligence-operation-that-b...
3•arunc•34m ago•0 comments

GuitarPie: Use Fretboard of Electric Guitar for Audio-Based Pie Menu Interaction [pdf]

https://andreasfender.com/publications/PDFs/GuitarPie_authorgenerated.pdf
1•bookofjoe•34m ago•0 comments

Show HN: RegulGPT – AI-powered compliance policy generator for startups

https://regulgpt.com
1•nawoda•34m ago•1 comments