Fixing aggregate_column behavior doesn't work if foreign table primary key is in the foreign key used by the behavior