code: func PgInheritsByInhparent(db XODB, inhparent pgtypes.Oid) ([]*PgInherit, error) {
  	var err error
  
  	// sql query
  	const sqlstr = `SELECT ` +
  		`tableoid, cmax, xmax, cmin, xmin, ctid, inhrelid, inhparent, inhseqno ` +
  		`FROM pg_catalog.pg_inherits ` +
  		`WHERE inhparent = $1`
  
  	// run query
  	XOLog(sqlstr, inhparent)
  	q, err := db.Query(sqlstr, inhparent)
  	if err != nil {
  		return nil, err
  	}
  	defer q.Close()
  
  	// load results
  	res := []*PgInherit{}
  	for q.Next() {
  		pi := PgInherit{}
  
  		// scan
  		err = q.Scan(&pi.Tableoid, &pi.Cmax, &pi.Xmax, &pi.Cmin, &pi.Xmin, &pi.Ctid, &pi.Inhrelid, &pi.Inhparent, &pi.Inhseqno)
  		if err != nil {
  			return nil, err
  		}
  
  		res = append(res, &pi)
  	}
  
  	return res, nil
  }
docs: // PgInheritsByInhparent retrieves a row from 'pg_catalog.pg_inherits' as a PgInherit.
  //
  // Generated from index 'pg_inherits_parent_index'.