Monday, 31 October 2022

Create/ Drop Triggers in Postgresql

SELECT 

    * 

FROM 

    information_schema.triggers

WHERE 

    trigger_schema = 'abc' 




SELECT 

    CONCAT('DROP TRIGGER IF EXISTS ',trigger_name,' ON ',trigger_schema,'.',event_object_table,';') AS sql

FROM 

    information_schema.triggers

WHERE 

    trigger_schema = 'abc' 

No comments:

Airflow - DAG Dependencies

Define the order in which tasks should run Tasks can be upstream (run before) or downstream (run after) Declared after creating the tasks Me...