code: func PgReplicationOriginByRoident(db XODB, roident pgtypes.Oid) (*PgReplicationOrigin, error) {
  	var err error
  
  	// sql query
  	const sqlstr = `SELECT ` +
  		`tableoid, cmax, xmax, cmin, xmin, ctid, roident, roname ` +
  		`FROM pg_catalog.pg_replication_origin ` +
  		`WHERE roident = $1`
  
  	// run query
  	XOLog(sqlstr, roident)
  	pro := PgReplicationOrigin{}
  
  	err = db.QueryRow(sqlstr, roident).Scan(&pro.Tableoid, &pro.Cmax, &pro.Xmax, &pro.Cmin, &pro.Xmin, &pro.Ctid, &pro.Roident, &pro.Roname)
  	if err != nil {
  		return nil, err
  	}
  
  	return &pro, nil
  }
docs: // PgReplicationOriginByRoident retrieves a row from 'pg_catalog.pg_replication_origin' as a PgReplicationOrigin.
  //
  // Generated from index 'pg_replication_origin_roiident_index'.