frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Stop Cramming Everything into Postgres

3•saisrirampur•7mo ago
Loved the discussion on this hn post few months ago on Postgres for everything. https://news.ycombinator.com/item?id=42347606 I thought I'd share my thoughts over a separate post. I see a bunch of comments: just don’t do it! I’m glad this is becoming mainstream, and people are realizing that Postgres for everything doesn’t work. Don’t get me wrong—I’m a huge Postgres proponent and have spent 10 years helping customers implement it. However, I’m a strong believer in using Postgres for what it’s designed for in first-place. Postgres was designed as a row-based OLTP database, with over 30 years of effort dedicated to making it robust for that use case.

I know there are many extensions attempting to make Postgres support other use cases, such as analytics, queues, and more. Keep in mind that these extensions are relatively recent and aim to retrofit new capabilities onto a database primarily designed for transactional workloads. It’s like adding an F1 car engine to a Toyota Camry — will that work?

Extensions also have many issues—they are not fully Postgres-compatible. In Citus, for example, we added support for the COPY command 4 years into the company, and chasing SQL coverage was a daily challenge for 10 years. Unable to use the full capabilities of Postgres and having to work around numerous unsupported features defeats the purpose of being a Postgres extension. This was a common feedback across Citus customers - when you say Postgres extension, customers are looking for something that supports all Postgres features! Side note for the Postgres extension companies: Chasing Postgres compatibility and world class performance are ginormous problems and are hard to achieve without laser focus on each of them.

On the other hand, you have purpose-built alternatives like ClickHouse, Snowflake for analytics, Redis for caching, and Kafka for queues. These technologies have benefited from decades of development, laser-focused on supporting specific use cases. As a result, they are highly efficient for their intended purposes.

I often hear that these Postgres extensions are expanding the boundaries of what Postgres can do. While I partly agree, I question the extent to which these boundaries are truly being expanded. In this era of AI, where data is growing exponentially, handling scale is critical for any technology. These boundaries will likely be broken very quickly - A data point here is that in my day-to-day now, I'm seeing AI companies use purpose-built technologies like ClickHouse way sooner. A few years ago, it was a Series A or Series B company that would consider a purpose-built database, now it is Seed stage companies. This is because the amount of data / users to be handled has grown tremendously from the get go and companies are preferring solutions that scale with their workload.

Also I keep hearing these Postgres extension companies say Zero ETL in their positioning, which I don't agree. Let’s take a search or an analytics extension where you want to run analytics on your transactional data. You either need to manage a cron to continuously offload the transactional data to the storage format of the extension or if the extension supports logical replication (not all do), you need to have logical replication setup. And logical replication is ETL! It is painful to manage logical replication - fun fact, at PeerDB, Postgres was the second largest target connector as logical replication was painful to manage, at scale. And yes, you could have capabilities which does the conversion in the background, but that is again a ginormous problem, I think only a few fully fledged databases like Vertica have this feature.

TL;DR: Please think carefully before choosing the right technology as you scale. Cramming everything into Postgres might not be the best approach for scaling your business.

Comments

gjvc•7mo ago
you do not need to use anything/everything you find in there, or anywhere for that matter.
XCSme•7mo ago
Most use-cases and people/companies don't have the traffic amount where scaling matters that much, so performance gains will be negligible (or even worse) when using a more complex "specialized" stack.

Yes, if you have a large team, building for scale in a VC-funded company, go for dedicated stacks, but if you are just building a start-up where moving fast is important and architecture quickly changes, any DB will do and will not be the bottleneck.

I use Postgres to cache some responses from APIs (max 100 different documents per month) where latency doesn't matter, so using Redis instead would provide no benefit (will actually make it worse, due to its "worse" persistency and third-party integrations capabilities)

Ask HN: How do you go from an idea to designing a prototype for back ends?

1•lalithaar•45s ago•0 comments

Regular expressions that cross lines

https://www.johndcook.com/blog/2025/12/19/regular-expressions-that-cross-lines/
1•ibobev•1m ago•0 comments

Show HN: Hat v0.2.0 – An Automatic Image Compressor (support for more formats)

https://github.com/bittere/hat/releases/tag/v0.2.0
1•_bittere•2m ago•0 comments

Kazuo Ishiguro – Nobel Prize Lecture

https://www.nobelprize.org/prizes/literature/2017/ishiguro/lecture/
1•pseudolus•2m ago•0 comments

The power to profit without producing

https://www.somo.nl/the-power-to-profit-without-producing/
1•robtherobber•2m ago•0 comments

For the Holidays: Epic Interactive Fiction of the Millennial Period

https://www.filfre.net/2025/12/huge-for-the-holidays-epic-interactive-fiction-of-the-millennial-p...
1•ibobev•4m ago•0 comments

Looking for technical co-founder for real estate marketplace in North Africa

1•mbkaj•7m ago•0 comments

An HTTP surface for Claude Code CLI

https://github.com/pattern-zones-co/koine
1•mathewpetty•9m ago•0 comments

A Supposedly Fun Thing I'll Never Do Again [pdf]

https://harpers.org/wp-content/uploads/2008/09/HarpersMagazine-1996-01-0007859.pdf
1•mosiuerbarso•10m ago•0 comments

TS Zip

https://www.bellard.org/ts_zip/
2•cyanf•11m ago•0 comments

How are coding assistants evaluated? SWE-Bench Pro Explorer

https://marginlab.ai/explorers/swe-bench-pro/
2•qwesr123•11m ago•0 comments

Show HN: Aligning AI with Entropy Instead of 'Human Values' ( Paper)

1•NyX_AI_ZERO_DAY•12m ago•1 comments

Olaf: Bringing an Animated Character to Life in the Physical World [video]

https://www.youtube.com/watch?v=-L8OFMTteOo
1•janpot•20m ago•0 comments

"Awesome Production Machine Learning" Github List

https://github.com/EthicalML/awesome-production-machine-learning
2•axsaucedo•21m ago•0 comments

International maps of cities coloured by street/road/ave/etc.

https://erdavis.com/2019/09/20/the-beautiful-hidden-logic-of-cities-worldwide/
2•fanf2•22m ago•1 comments

WANem – The Wide Area Network emulator (2014)

https://wanem.sourceforge.net/
1•basemi•25m ago•0 comments

Sewage can be used to heat and cool buildings

https://apnews.com/article/climate-wastewater-sewage-heating-sustainable-energy-2cbeb696ddff16d9a...
1•montroser•25m ago•0 comments

Tech Talk: Improving Window Resize Behavior

https://www.electronjs.org/blog/tech-talk-window-resize-behavior
2•nikwen•32m ago•0 comments

Agentic browsers: a note for my friends

https://www.dvsj.in/on-agentic-browsers
2•ctxc•32m ago•0 comments

I tricked GPT-4 into suggesting 112 non-existent packages

https://github.com/dariomonopoli-dev/codegate-cli/issues/1
1•mondra•35m ago•0 comments

Russias Next Space Station

https://arstechnica.com/space/2025/12/russia-is-about-to-do-the-most-russia-thing-ever-with-its-n...
1•Anon84•37m ago•0 comments

Help my website is too small

https://lukeplant.me.uk/blog/posts/help-my-website-is-too-small/
1•wofo•37m ago•1 comments

Transient hepatic reconstitution of trophic factors enhances aged immunity

https://www.nature.com/articles/s41586-025-09873-4
1•bookofjoe•43m ago•0 comments

Kong's AI Gateway Benchmark Against Portkey and LiteLLM

https://konghq.com/blog/engineering/ai-gateway-benchmark-kong-ai-gateway-portkey-litellm
1•nkko•45m ago•0 comments

Ask HN: Is anyone interested in a local-only app that analyzes caddy log files?

1•BrunoBernardino•47m ago•0 comments

"Special Forms in Lisp" by Kent Pitman (1980)

https://nhplace.com/kent/Papers/Special-Forms.html
1•networked•51m ago•0 comments

Built a memory-efficient Python library for large-scale TF-IDF

https://github.com/purijs/fasttfidf
1•jspuri•54m ago•1 comments

UnifyBio: Power Tools for Translational Data Science – Benjamin Kamphaus [video]

https://www.youtube.com/watch?v=HU-uwSUZETw
2•todsacerdoti•55m ago•2 comments

Show HN: Dbzero – Code as if you have infinite RAM (Python persistence engine)

https://github.com/dbzero-software/dbzero
4•dbzero•57m ago•1 comments

What's new in Swift: December 2025 Edition

https://www.swift.org/blog/whats-new-in-swift-december-2025/
2•g0ld3nrati0•59m ago•0 comments