▲ | saltcured 3 days ago | |||||||
Aside from the SQL syntax, what is the difference between this and the longstanding virtual column feature, where you can define a function that takes the table's record type as input and return a scalar? PostgreSQL already let you use table.funcname as a virtual column, as I recall. | ||||||||
▲ | mdaniel 3 days ago | parent | next [-] | |||||||
It's possible the following argument is what you meant by "from the SQL syntax," and if so apologies for the noise At least one demonstrable difference I can see between your recollection and this feature is that the column name being part of the DDL pushes the logic down into the DDL, versus every client having to carry that magic expression around with them. I think it's likely the age-old application-logic-client-side versus stored-proc camps
as compared to <<select id, silly from my_table>> for the consumer | ||||||||
| ||||||||
▲ | sharlos201068 3 days ago | parent | prev [-] | |||||||
That's still not a column and isn't included with things like select * |