code: func PgEventTriggerByEvtname(db XODB, evtname pgtypes.Name) (*PgEventTrigger, error) {
  	var err error
  
  	// sql query
  	const sqlstr = `SELECT ` +
  		`tableoid, cmax, xmax, cmin, xmin, oid, ctid, evtname, evtevent, evtowner, evtfoid, evtenabled, evttags ` +
  		`FROM pg_catalog.pg_event_trigger ` +
  		`WHERE evtname = $1`
  
  	// run query
  	XOLog(sqlstr, evtname)
  	pet := PgEventTrigger{}
  
  	err = db.QueryRow(sqlstr, evtname).Scan(&pet.Tableoid, &pet.Cmax, &pet.Xmax, &pet.Cmin, &pet.Xmin, &pet.Oid, &pet.Ctid, &pet.Evtname, &pet.Evtevent, &pet.Evtowner, &pet.Evtfoid, &pet.Evtenabled, &pet.Evttags)
  	if err != nil {
  		return nil, err
  	}
  
  	return &pet, nil
  }
docs: // PgEventTriggerByEvtname retrieves a row from 'pg_catalog.pg_event_trigger' as a PgEventTrigger.
  //
  // Generated from index 'pg_event_trigger_evtname_index'.