error recording click: ERROR: relation "events__defrag3" does not exist LINE 1: INSERT INTO events__defrag3 ( ^ QUERY: INSERT INTO events__defrag3 ( id, true_event_id, event_unique_id, destination_id, next_attempt_time, server_id, event_type, event_time, email, listid, list_name, list_label, sendid, bounce_type, bounce_code, bounce_text, click_url, click_tracking_id, studio_rl_seq, studio_rl_recipid, studio_campaign_id, studio_autoresponder_id, studio_is_unique, studio_mailing_list_id, studio_subscriber_id, studio_ip, studio_rl_seq_id, studio_rl_distinct_id, engine_ip, user_agent, json_before, json_after, timestamp, channel, status, is_retry, msguid, sender, mtaid, injected_time, message, outmtaid, outmtaid_ip, outmtaid_hostname, sendsliceid, throttleid, _written_to_logfile, mx_hostname, mx_ip, synchronous, from_address, headers, is_privacy_open, message_size, smtp_timing, report_recipient, report_message_text, report_sender, bounce_code_match_text, outmtaid_name, mtaid_id, mtaid_name, source_ip, linkid ) SELECT CASE WHEN events_destinations_events_desired.destination_id=1 THEN this_true_event_id ELSE NEXTVAL('events_seq') END, this_true_event_id, this_event_unique_id, events_destinations_events_desired.destination_id, this_next_attempt_time, this_server_id, SUBSTRING(NEW.event_type FROM '^([^.]*)'), NEW.event_time, NEW.email, NEW.listid, NEW.list_name, NEW.list_label, NEW.sendid, NEW.bounce_type, NEW.bounce_code, NEW.bounce_text, NEW.click_url, NEW.click_tracking_id, NEW.studio_rl_seq, NEW.studio_rl_recipid, NEW.studio_campaign_id, NEW.studio_autoresponder_id, NEW.studio_is_unique, NEW.studio_mailing_list_id, NEW.studio_subscriber_id, NEW.studio_ip, NEW.studio_rl_seq_id, NEW.studio_rl_distinct_id, NEW.engine_ip, NEW.user_agent, NEW.json_before, NEW.json_after, NEW.timestamp, NEW.channel, NEW.status, NEW.is_retry, NEW.msguid, NEW.sender, NEW.mtaid, NEW.injected_time, NEW.message, NEW.outmtaid, NEW.outmtaid_ip, NEW.outmtaid_hostname, NEW.sendsliceid, NEW.throttleid, NEW._written_to_logfile, NEW.mx_hostname, NEW.mx_ip, NEW.synchronous, NEW.from_address, NEW.headers, NEW.is_privacy_open, NEW.message_size, NEW.smtp_timing, NEW.report_recipient, NEW.report_message_text, NEW.report_sender, NEW.bounce_code_match_text, NEW.outmtaid_name, NEW.mtaid_id, NEW.mtaid_name, NEW.source_ip, NEW.linkid FROM events_destinations_events_desired WHERE ( events_destinations_events_desired.event_type = NEW.event_type ) AND ( ( events_destinations_events_desired.mail_classes_required IS NULL ) OR ( events_destinations_events_desired.mail_classes_required @> ARRAY[this_mail_class] ) ) AND ( ( events_destinations_events_desired.mail_classes_denied IS NULL ) OR ( NOT ( events_destinations_events_desired.mail_classes_denied @> ARRAY[this_mail_class] ) ) ) AND ( ( events_destinations_events_desired.listids_required IS NULL ) OR ( events_destinations_events_desired.listids_required @> ARRAY[this_listid] ) ) AND ( ( events_destinations_events_desired.listids_denied IS NULL ) OR ( NOT ( events_destinations_events_desired.listids_denied @> ARRAY[this_listid] ) ) ) CONTEXT: PL/pgSQL function triger_events_insert_fn() line 17 at SQL statement