...I think it is correct result. This:> UPDATE c SET base_id = id / 10;would result in 9 rows (id from 1 to 9) to be updated with base_id = 0, as it should with integer division. These 9 rows will not match the condition:WHERE c.base_id = a.idas there is no row in a with a.id = 0
pgsql-bugs by date:
Соглашаюсь с условиями обработки персональных данных