docs: def event_return(events):
      '''
      Return event to a postgres server
  
      Require that configuration be enabled via 'event_return'
      option in master config.
      '''
      conn = _get_conn()
      if conn is None:
          return None
      cur = conn.cursor()
      for event in events:
          tag = event.get('tag', '')
          data = event.get('data', '')
          sql = '''INSERT INTO salt_events
                  (tag, data, master_id)
                  VALUES (%s, %s, %s)'''
          cur.execute(sql, (tag, salt.utils.json.dumps(data), __opts__['id']))
      _close_conn(conn)