The main difference between PostGreSQL and MS SQL Server is that MS SQL Server supports functional indexes since almost 21 years through the concept of indexed computed columns....
But in addition, SQL Server publish the value of the column in the table definition.
And now you have fours ways of creating such a fonctionnality :
- Computed columns without any storage called unpersisted computed
columns
- Computed columns with storage called persisted computed columns
- Computed columns with index storage only called indexed computed
columns
- Computed columns with value and index storage called persisted
computed columns
PostGreSQL does not have such equivalent and only give the possibility to create indexed computed columns without any way to view the value in a column...
By the way, computed columns without any storage that are called unpersisted computed columns is a functionnal equivalent to what you can do with a view.
The only difference is that you must have the computed column into the table in MS SQL Server... that PG do not have !