This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; | |
| -- Materialized view hook triggers | |
| CREATE OR REPLACE FUNCTION refresh_materialized_view() | |
| RETURNS TRIGGER | |
| LANGUAGE plpgsql | |
| AS $$ | |
| BEGIN | |
| REFRESH MATERIALIZED VIEW user_emails; | |
| RETURN null; |