ran into a problem on PostgreSQL 12.5
ALTER TABLE old_shcema.my_table SET new_schema
first - everything is OK, everything is transferred except triggers, but if you try back
ALTER TABLE new_schema.my_table SET old_schema
then keys, foreign keys will be lost
what is the reason? Am I doing something wrong or is this a postgres bug?