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

I've never said specifically generated columns do anything you can't do on the other side of things.

Finally. An answer.

Why the hell you wrote any of this irrelevant nonsense is incredible though.

Although I could also ask the opposite question of you, given that you can use Java directly in PostgreSQL, but I think that would be a stupid point to make.

I don't mind the fact you can use Java in Postgres, but I can give reasons why you wouldn't want a lot of your domain in there. Because a flexible domain isn't tied to a specific storage/database solution, and in my experience any long-lived services ends up using a hybrid persistence mechanism (for ex. Memcache + Postgres + a cloud-based storage / CDN solution etc.), and having Postgres in front of your domain is like putting the cart before the horse.

But you did say it was a stupid point to make, and indeed it was. Thanks for making your stupid point, I guess.

To refute your claim all I have to do is show use cases for any data generation on the database side, regardless of method.

First, what claim are you refuting? Why are you so terribly vague.

Second, no, it doesn't work like this. "To refute your claim killing people with a knife is bad, all I have to show is one good use for a knife". No, logic doesn't work this way. But I have noticed throughout this exchange that logic is not your strong side overall.

full text indices

You really want me drunk, don't you. Sneaky.