code: func PgInheritByInhrelidInhseqno(db XODB, inhrelid pgtypes.Oid, inhseqno int) (*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 inhrelid = $1 AND inhseqno = $2`
  
  	// run query
  	XOLog(sqlstr, inhrelid, inhseqno)
  	pi := PgInherit{}
  
  	err = db.QueryRow(sqlstr, inhrelid, inhseqno).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
  	}
  
  	return &pi, nil
  }
docs: // PgInheritByInhrelidInhseqno retrieves a row from 'pg_catalog.pg_inherits' as a PgInherit.
  //
  // Generated from index 'pg_inherits_relid_seqno_index'.