insert into t (y) values (t.x * 2); I can think of various ways to do it with multiple statements, but a single statement would be preferable.
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных