-- 122_grant_rosreestr_to_fdw_reader.sql
-- #563: tradein scheduler reads gendesign.rosreestr_deals via FDW; tradein_fdw_reader
-- was REVOKE ALL (100_tradein_fdw_role.sql) → grant SELECT on the partitioned parent.
-- Single parent grant suffices (PG declarative partitioning checks parent ACL).
BEGIN;
GRANT SELECT ON public.rosreestr_deals TO tradein_fdw_reader;
COMMIT;
