You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if a table is dropped that is part of vectorize.jobs, then the vectorize.job should also be deleted.
an event trigger can solve this. some scratch code as example of the idea
CREATE OR REPLACEFUNCTIONafter_drop_trigger()
RETURNS event_trigger AS $$
BEGINDELETEFROMvectorize.jobWHERE table_name = TG_TABLE_NAME;
END;
$$ LANGUAGE plpgsql;
CREATE EVENT TRIGGER trg_after_drop
ON sql_drop
WHEN TAG IN ('DROP TABLE')
EXECUTE FUNCTION after_drop_trigger();
The text was updated successfully, but these errors were encountered:
if a table is dropped that is part of vectorize.jobs, then the vectorize.job should also be deleted.
an event trigger can solve this. some scratch code as example of the idea
The text was updated successfully, but these errors were encountered: