FOR crtRow in EXECUTE 'select DISTINCT(account_id) from backup_table WHERE migrated = 1 AND account_id IN '|| $1
where .... and account_id in 21;
? I don't think that's what you want.
-- john r pierce, recycling bits in santa cruz
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных