code: def event_return(events):
      '''
      Return event to Pg server
  
      Requires that configuration be enabled via 'event_return'
      option in master config.
      '''
      with _get_serv(events, commit=True) as cur:
          for event in events:
              tag = event.get('tag', '')
              data = event.get('data', '')
              sql = '''INSERT INTO salt_events (tag, data, master_id, alter_time)
                       VALUES (%s, %s, %s, to_timestamp(%s))'''
              cur.execute(sql, (tag, psycopg2.extras.Json(data),
                                __opts__['id'], time.time())f event_return(events):
      '''
      Return event to Pg server
  
      Requires that configuration be enabled via 'event_return'
      option in master config.
      '''
      with _get_serv(events, commit=True) as cur:
          for event in events:
              tag = event.get('tag', '')
              data = event.get('data', '')
              sql = '''INSERT INTO salt_events (tag, data, master_id, alter_time)
                       VALUES (%s, %s, %s, to_timestamp(%s))'''
              cur.execute(sql, (tag, psycopg2.extras.Json(data),
                                __opts__['id'], time.time()))
docs: Return event to Pg server
  
      Requires that configuration be enabled via 'event_return'
      option in master config.