gendesign/data/sql/122_grant_rosreestr_to_fdw_reader.sql
Light1YT e72cf87e35
All checks were successful
Deploy Trade-In / changes (push) Successful in 5s
Deploy / changes (push) Successful in 6s
Deploy Trade-In / build-frontend (push) Has been skipped
Deploy / build-frontend (push) Has been skipped
Deploy / build-backend (push) Successful in 29s
Deploy / build-worker (push) Successful in 30s
Deploy Trade-In / build-backend (push) Successful in 47s
Deploy Trade-In / deploy (push) Successful in 43s
Deploy / deploy (push) Successful in 58s
feat(tradein): автоматизация cian-backfill + rosreestr-import через scheduler (#560 #563) (#630)
2026-05-28 15:31:24 +00:00

7 lines
375 B
PL/PgSQL

-- 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;