code: func PgTriggersByTgconstraint(db XODB, tgconstraint pgtypes.Oid) ([]*PgTrigger, error) {
  	var err error
  
  	// sql query
  	const sqlstr = `SELECT ` +
  		`tableoid, cmax, xmax, cmin, xmin, oid, ctid, tgrelid, tgname, tgfoid, tgtype, tgenabled, tgisinternal, tgconstrrelid, tgconstrindid, tgconstraint, tgdeferrable, tginitdeferred, tgnargs, tgattr, tgargs, tgqual ` +
  		`FROM pg_catalog.pg_trigger ` +
  		`WHERE tgconstraint = $1`
  
  	// run query
  	XOLog(sqlstr, tgconstraint)
  	q, err := db.Query(sqlstr, tgconstraint)
  	if err != nil {
  		return nil, err
  	}
  	defer q.Close()
  
  	// load results
  	res := []*PgTrigger{}
  	for q.Next() {
  		pt := PgTrigger{}
  
  		// scan
  		err = q.Scan(&pt.Tableoid, &pt.Cmax, &pt.Xmax, &pt.Cmin, &pt.Xmin, &pt.Oid, &pt.Ctid, &pt.Tgrelid, &pt.Tgname, &pt.Tgfoid, &pt.Tgtype, &pt.Tgenabled, &pt.Tgisinternal, &pt.Tgconstrrelid, &pt.Tgconstrindid, &pt.Tgconstraint, &pt.Tgdeferrable, &pt.Tginitdeferred, &pt.Tgnargs, &pt.Tgattr, &pt.Tgargs, &pt.Tgqual)
  		if err != nil {
  			return nil, err
  		}
  
  		res = append(res, &pt)
  	}
  
  	return res, nil
  }
docs: // PgTriggersByTgconstraint retrieves a row from 'pg_catalog.pg_trigger' as a PgTrigger.
  //
  // Generated from index 'pg_trigger_tgconstraint_index'.