   else:
     json = GD['json']    
 
-  error = ''
   tis_config = plpy.execute("select cartodb.CDB_Conf_GetConf('invalidation_service');")[0]['cdb_conf_getconf']
   tis_config_dict = json.loads(tis_config) if tis_config else {}
   tis_host = tis_config_dict.get('host', '127.0.0.1')

AS $$
  BEGIN
    DROP EVENT TRIGGER IF EXISTS link_ghost_tables;
  END;
$$ LANGUAGE plpgsql VOLATILE PARALLEL UNSAFE;

  END;
$$ LANGUAGE plpgsql VOLATILE PARALLEL UNSAFE SECURITY DEFINER;

-- Event trigger to save the current transaction in cartodb.cdb_ddl_execution
CREATE OR REPLACE FUNCTION CDB_SaveDDLTransaction()
RETURNS event_trigger
