frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Stop Cramming Everything into Postgres

3•saisrirampur•9mo 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•9mo ago
you do not need to use anything/everything you find in there, or anywhere for that matter.
XCSme•9mo 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)

How to Fix Circular Imports in a React/TypeScript Application

https://jsdev.space/howto/circular-imports-ts/
1•javatuts•1m ago•0 comments

Show HN: VaultAI – 42 AI models on a portable SSD, works offline ($399)

https://vaultai.us/
1•laramie_co•3m ago•1 comments

A 97M-parameter model outperforms 900M for warehouse robot coordination

https://rovnou.com/en/blog/deepfleet
1•ekusiadadus•5m ago•1 comments

Show HN: HushWork – A calm focus environment for focus in one tab

https://hushwork.app
1•pgebski•6m ago•1 comments

The path to ubiquitous AI (17k tokens/sec)

https://taalas.com/the-path-to-ubiquitous-ai/
2•sidnarsipur•11m ago•0 comments

SwiftUI Agent Skill: Build Better Views with AI

https://www.avanderlee.com/ai-development/swiftui-agent-skill-build-better-views-with-ai/
2•skreep•12m ago•0 comments

Chess engine, pt. 3: Elo, and rigorous SPRT testing

https://www.dogeystamp.com/chess3/
1•luu•14m ago•0 comments

Show HN: R2Stat – Monitor your Cloudflare R2 free Class B quota

https://r2stat.com/
1•jacoka•16m ago•1 comments

Agentic Engineering Best Practices

1•kingJulio•17m ago•0 comments

I tripled my SaaS prices after 2 weeks and signups didn't drop

https://web-production-71423.up.railway.app/
1•Shmungus•18m ago•1 comments

Show HN: One async PHP process serving web, REST API, and MCP for AI agents

https://pascualmg.dev/blog/pascual/one-async-php-process-web-server-rest-api-and-mcp-for-ai-agents
1•passh•18m ago•0 comments

Improving Interactive In-Context Learning from Natural Lang Feedback – DeepMind

https://arxiv.org/abs/2602.16066
2•zerop•22m ago•0 comments

Show HN: Behavr – Run realistic user simulations on your prototypes in minutes

1•Behavrai•27m ago•1 comments

Microsoft: Anti-phishing rules mistakenly blocked emails, Teams messages

https://www.bleepingcomputer.com/news/microsoft/microsoft-anti-phishing-rules-mistakenly-blocked-...
1•exploraz•29m ago•0 comments

Arpa.net

http://www.arpa.net/
1•TigerUniversity•31m ago•0 comments

Cloudflare uses ClickHouse to scale analytics at quadrillion-row scale

https://clickhouse.com/blog/cloudflare
2•samaysharma•31m ago•0 comments

Laurie Spiegel's pioneering '80s music software, Music Mouse, returns updated

https://djmag.com/news/laurie-spiegels-pioneering-80s-music-making-software-music-mouse-returns-m...
3•coffeeyesplease•32m ago•0 comments

A Constructive Look at TempleOS

http://www.codersnotes.com/notes/a-constructive-look-at-templeos/
2•TigerUniversity•34m ago•0 comments

Accenture combats AI refuseniks by linking promotions to log-ins

https://www.ft.com/content/ac672f97-a603-4c56-afa3-4a5273d45674
2•cianmm•41m ago•1 comments

Show HN: I Emulated My Childhood

https://sklivvz.com/posts/i-finally-emulated-my-childhood
2•sklivvz1971•45m ago•0 comments

Show HN: 17MB pronunciation scorer beats human experts at phoneme level

2•fabiosuizu•46m ago•0 comments

The Great Locomotive Chase

https://en.wikipedia.org/wiki/Great_Locomotive_Chase
3•keiferski•46m ago•0 comments

State of Generative Media

https://fal.ai/gen-media-report-volume-1
1•mdrzn•47m ago•0 comments

Brave Iranians gather in central Iran to honour those killed in uprising

https://twitter.com/IranIntl_En/status/2024767317893075330
9•ukblewis•47m ago•1 comments

Trump to order declassification of UFO/UAP related files

https://twitter.com/TrumpDailyPosts/status/2024661955479556382
1•lucasRW•48m ago•0 comments

Show HN: SaveTheTrade – a simple trade journal and performance tracker

https://survivethetrade.com/
1•daniellax•49m ago•0 comments

Wikipedia has deprecated and will blacklist archive.today

https://en.wikipedia.org/wiki/Wikipedia:Archive.today_guidance
7•gyrovague-com•52m ago•4 comments

TamboUI: A Modern Terminal UI Framework for Java (GraalVM Native)

https://github.com/tamboui/tamboui
1•mikepapadim•53m ago•0 comments

Optimism Plunges 28% as Base Drifts from OP Stack: What's Next?

https://timescrypto.com/cryptonews/altcoins/optimism-plunges-28-as-base-drifts-from-op-stack-what...
1•Alan_Writer•54m ago•0 comments

Show HN: Aismond – attack-surface monitoring for MSP client fleets

https://www.aismond.com/
1•mirceamitu•55m ago•0 comments