Virtual generated columns
A generated column is VIRTUAL by default in 18, computed on read and not stored.
task
Add tax_cents int GENERATED ALWAYS AS (price_cents / 10) to temp table pv, then return its attgenerated.
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
A generated column is VIRTUAL by default in 18, computed on read and not stored.
Add tax_cents int GENERATED ALWAYS AS (price_cents / 10) to temp table pv, then return its attgenerated.