CREATE TABLE test
(
id serial,
target_id integer
);
INSERT INTO test (1, 1206);
INSERT INTO test (1, 1210);
INSERT INTO test (1, 1211);
INSERT INTO test (1, 1250);
UPDATE test SET
target_id = t.new_id
FROM (
SELECT
unnest(ARRAY[1206, 1210, 1211, 1250]) AS old_id,
unnest(ARRAY[1281, 1282, 1283, 1287]) AS new_id
) AS t
WHERE target_id = t.old_id