This works:
SELECT "date", "value"::Int, "date" + interval '1' day AS "computed"
FROM "tab1"
but what if I want to add a variable from the table to a timestamp?
SELECT "date", "value"::Int, "date" + interval "value" day AS "computed"
FROM "tab1"
This fails.
dateis adatevalue then you can simply use"date" + "value"