1insert into items_ver(item_id, item_group, name)
2select * from items where item_id=2;
1##fetch data from other table with sub-query to insert it into another one
2
3INSERT INTO PUBLIC."MyTable"(conversion_job_id, message, last_status)
4VALUES (17, 'test', (SELECT status FROM PUBLIC."OtherTable" WHERE id=17))
5RETURNING *
1CREATE TRIGGER trig_copy
2 AFTER INSERT ON table1
3 FOR EACH ROW
4 EXECUTE PROCEDURE function_copy();