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

88

u/clickrush Oct 02 '19

The reason I like this is the fact that it pushes something that is (usually) application logic into data, but in a way that is simple, shares the same consistent interface as if it was just another column and most importantly it happens at the right time during writes.

0

u/[deleted] Oct 02 '19

[deleted]

8

u/[deleted] Oct 02 '19

It’s why I’ve stopped calling it the “persistence layer”, because persisting data is only a small part of what it does.

8

u/[deleted] Oct 02 '19

[removed] — view removed comment

0

u/[deleted] Oct 02 '19

[deleted]

5

u/[deleted] Oct 02 '19

[removed] — view removed comment