> REVOKE ALL ON my_record.table FROM my_user;
I'd guess you'd need to use EXECUTE here, maybeEXECUTE ''REVOKE ALL ON '' || my_record.table || '' FROM my_user'';