> On Dec 30, 2020, at 11:48, Christophe Pettus <xof@xxxxxxxxxxxx> wrote: > > This might be a good use for a generated column. > > https://www.postgresql.org/docs/current/ddl-generated-columns.html I take that back; the generation formula has to be immutable as well. Perhaps a column populated by a trigger? -- -- Christophe Pettus xof@xxxxxxxxxxxx