200_channel_monitor_v2_rollup_permissions.sql 468 B

123456789
  1. -- Runtime aggregator reads/writes the fixed rollup caches through the role that
  2. -- executes migrations. Use CURRENT_USER so custom DATABASE_USER values work;
  3. -- PostgreSQL permits this form in GRANT and it remains idempotent.
  4. GRANT SELECT, INSERT, UPDATE, DELETE ON TABLE
  5. channel_monitor_v2_metrics_rollup,
  6. channel_monitor_v2_user_metrics_rollup,
  7. channel_monitor_v2_error_metrics_rollup,
  8. channel_monitor_v2_latency_histograms_rollup
  9. TO CURRENT_USER;