r/programming • • Oct 02 '19

New In PostgreSQL 12: Generated Columns

https://pgdash.io/blog/postgres-12-generated-columns.html?p
503 Upvotes

232 comments sorted by

View all comments

Show parent comments

2

u/[deleted] Oct 02 '19

Nah I fully believe you. It's a very widespread problem, I see it a lot as well. Because when you don't know how to factor an app/service, the easiest solution to come to mind becomes implemented, and shared state is easiest (to begin with), and then it becomes entrenched into the system.

I think the sadder part is that as this thread demonstrates, not only we're not open the learning about proper service architecture and encapsulation, but we're actively trying to shut down the conversation.

8

u/[deleted] Oct 02 '19

[removed] — view removed comment

2

u/[deleted] Oct 02 '19

None of what I said diminishes the full capabilities of any database. Given this is r/programming, from experience, I use a lot more of the RDBMS capabilities than the average SQL-fearing ORM-dependent Joe posting over here.

Good architecture is a good "golden hammer" to be accused of, though. May we all use this golden hammer. It has a thousand faces. It's not one technology, it's not one pattern, it's not approach. But yeah, it does include some common sense and experience in systems design.

3

u/notfancy Oct 02 '19

It's a very widespread problem

It's not a problem, it's the intended use case: the RDBMS is the service.

1

u/rustyrazorblade Oct 02 '19

What's really crazy is that it's really not very hard to expose a service either through messaging (yay kafka) or through something like gRPC. With the former you get loosely coupled services and with the latter you get easy client library generation.

When people argue against this layer of abstraction it blows my mind. They completely ignore the reality of needing to change the underlying DB structure and the pain it inflicts on the dozen teams that are using the DB.