code: func PgAmopByOid(db XODB, oid pgtypes.Oid) (*PgAmop, error) {
  	var err error
  
  	// sql query
  	const sqlstr = `SELECT ` +
  		`tableoid, cmax, xmax, cmin, xmin, oid, ctid, amopfamily, amoplefttype, amoprighttype, amopstrategy, amoppurpose, amopopr, amopmethod, amopsortfamily ` +
  		`FROM pg_catalog.pg_amop ` +
  		`WHERE oid = $1`
  
  	// run query
  	XOLog(sqlstr, oid)
  	pa := PgAmop{}
  
  	err = db.QueryRow(sqlstr, oid).Scan(&pa.Tableoid, &pa.Cmax, &pa.Xmax, &pa.Cmin, &pa.Xmin, &pa.Oid, &pa.Ctid, &pa.Amopfamily, &pa.Amoplefttype, &pa.Amoprighttype, &pa.Amopstrategy, &pa.Amoppurpose, &pa.Amopopr, &pa.Amopmethod, &pa.Amopsortfamily)
  	if err != nil {
  		return nil, err
  	}
  
  	return &pa, nil
  }
docs: // PgAmopByOid retrieves a row from 'pg_catalog.pg_amop' as a PgAmop.
  //
  // Generated from index 'pg_amop_oid_index'.