According to Postgres docs, one can create generated stored columns like so:
CREATE TABLE people (
...,
height_cm numeric,
height_in numeric GENERATED ALWAYS AS (height_cm / 2.54) STORED
);
However, what if I want to have a column that is generated only when it is referenced and is not stored after use? Is that currently possible?