code: func PgOpfamilyByOid(db XODB, oid pgtypes.Oid) (*PgOpfamily, error) {
  	var err error
  
  	// sql query
  	const sqlstr = `SELECT ` +
  		`tableoid, cmax, xmax, cmin, xmin, oid, ctid, opfmethod, opfname, opfnamespace, opfowner ` +
  		`FROM pg_catalog.pg_opfamily ` +
  		`WHERE oid = $1`
  
  	// run query
  	XOLog(sqlstr, oid)
  	po := PgOpfamily{}
  
  	err = db.QueryRow(sqlstr, oid).Scan(&po.Tableoid, &po.Cmax, &po.Xmax, &po.Cmin, &po.Xmin, &po.Oid, &po.Ctid, &po.Opfmethod, &po.Opfname, &po.Opfnamespace, &po.Opfowner)
  	if err != nil {
  		return nil, err
  	}
  
  	return &po, nil
  }
docs: // PgOpfamilyByOid retrieves a row from 'pg_catalog.pg_opfamily' as a PgOpfamily.
  //
  // Generated from index 'pg_opfamily_oid_index'.