It is time for Postgres to care about customers
thenile.dev
thenile.dev
https://www.postgresql.org/docs/current/ddl-schemas.html
I assume the article's solution involves some different set of tradeoffs versus native schemas, but that would have been good to include in the writeup...
You are right, it is hard to cover everything in one blog...
But the gist is that schemas and all the objects in them have few significant drawbacks:
1. Catalog overhead. Each schema has all the objects. PG Catalog doesn't scale to huge numbers. If you test anything that needs to work with the entire catalog, you'll run into issues in the 4-5 digits range (depends on number of tables, indexes, etc).
2. If you need to write a query that executes on all schema and aggregates results (for a report or something), you need to build your own tools.
3. Schema migrations and DDLs are increasingly hard to coordinate (I gave a whole talk about that here: https://www.youtube.com/watch?v=Nnz4VesXyUA
We basically didn't just build the distributed query and DDL layer, we also did some smart things in Postgres itself (blog TBD) that allow us to reduce the catalog overhead significantly.
So Nile is focused solely on the AI niche now? I stopped reading pretty soon after that was mentioned, so perhaps you should retune your messaging here if that's not the case. I was actually looking at Nile awhile back as a contender for when I eventually move away from Heroku Postgres. But now... I'm confused on what Nile is.
...or maybe I was always confused?
It makes me reconsider Nile because my business has nothing to do with AI at this point. Just my $0.02.
But AI companies, that tend to scale faster, also seem to benefit the most. So we wanted to make this clear.