---
title: "CockroachDB for Windows users"
description: "CockroachDB now ships native Windows binaries (Windows 8+, since v1.0-rc.1), replacing a fragile Docker-based setup that silently blocked many Windows users."
url: "https://swe.quest/articles/cockroachdb-for-windows-users-d86bca77c0fcdef4"
canonical: "https://www.cockroachlabs.com/blog/windows-binary/"
source: "Cockroach Labs"
published: "2017-11-21"
difficulty: "medium"
kind: "Case study"
reading_minutes: 7
tags: ["build-systems","go","c-cpp","databases"]
---

# CockroachDB for Windows users

A post on [Cockroach Labs](https://swe.quest/sources/cockroachdb.md), published 2017-11-21, 7 min read, Case study. Original: [https://www.cockroachlabs.com/blog/windows-binary/](https://www.cockroachlabs.com/blog/windows-binary/)

## Summary

CockroachDB now ships native Windows binaries (Windows 8+, since v1.0-rc.1), replacing a fragile Docker-based setup that silently blocked many Windows users. Porting required building RocksDB under MSYS2/GCC with upstream patches, including one that had left compiler optimizations off. It also meant removing Unix assumptions from the Go code: hardcoded paths like /dev/null, symlinks, and unguarded raw syscalls. Because go build could not drive RocksDB's CMake build or pick compiler flags dynamically, the team switched to GNU Make to build the C dependencies first, giving up go get support in exchange for automated cross-platform builds. Windows binaries are intended for local development only, not production.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Build systems](https://swe.quest/tags/build-systems.md) (Engineering practices)
- [Go](https://swe.quest/tags/go.md) (Languages)
- [C & C++](https://swe.quest/tags/c-cpp.md) (Languages)
- [Databases](https://swe.quest/tags/databases.md) (Data & databases)

## Prerequisites

- Go toolchain basics ([easy posts on Go](https://swe.quest/tags/go.md?difficulty=easy))
- C/C++ build systems ([easy posts on C & C++](https://swe.quest/tags/c-cpp.md?difficulty=easy))
- cgo linking

## Keywords

CockroachDB, RocksDB, MSYS2, Windows, GNU Make, CMake, Docker, jemalloc

## Related posts

- [How to use Rust in ClickHouse: avoiding a full rewrite](https://swe.quest/articles/how-to-use-rust-in-clickhouse-avoiding-a-full-rewrite-e470754e07a213d4.md): ClickHouse · 2025-12-17 · Medium · 13 min read · Rust, C & C++, Build systems, Refactoring & migrations, Testing
  ClickHouse, a 1.5M-line C++ analytic database, is adopting Rust incrementally rather than rewriting.
- [Copy-on-Write performance and debugging](https://swe.quest/articles/copy-on-write-performance-and-debugging-d6fa950b2bebd0f3.md): Engineering@Microsoft · 2024-05-14 · Medium · 5 min read · Build systems, Storage systems, Performance engineering, .NET, Developer productivity
  Testing Dev Drive with copy-on-write (block clone) linking across large internal Microsoft repos showed build-time reductions up to 43%, with many repos gaining 10% or more.
- [CockroachDB 26.4: One major upgrade a year with skip-level upgrades, run active-active across two data centers, and encrypt for the post-quantum era](https://swe.quest/articles/cockroachdb-26-4-one-major-upgrade-a-year-with-skip-level-upgrades-run-active-32aefe70e59e049a.md): Cockroach Labs · 2026-11-03 · Medium · 7 min read · Distributed databases, Databases, Identity & auth, Cryptography, Observability
  CockroachDB 26.4 introduces skip-level upgrades so operators can move from one annual .4 release to the next without stopping at intermediate releases, and adds active-active writes across two data centers via transactional logical data replication.
- [Why we rewrote WAL-G for Postgres backups in Rust: Meet WAL-RUS](https://swe.quest/articles/why-we-rewrote-wal-g-for-postgres-backups-in-rust-meet-wal-rus-a99cc2a7ede61ae3.md): ClickHouse · 2026-06-25 · Medium · 4 min read · PostgreSQL, Rust, Memory management, Storage systems, Go
  WAL-RUS is an open-source Rust rewrite of WAL-G's Postgres backup and WAL archival tooling, built because Go's garbage-collected runtime made virtual memory hard to predict in resource-constrained managed Postgres environments where overcommit is disabled.
- [A Year of Rust in ClickHouse](https://swe.quest/articles/a-year-of-rust-in-clickhouse-fadc1c7501c80398.md): ClickHouse · 2025-04-01 · Medium · 12 min read · Rust, C & C++, Build systems, Testing, Supply chain security
  ClickHouse added Rust to its C++ codebase as an option for new components rather than a rewrite, starting with BLAKE3, then skim for clickhouse-client history, PRQL as a switchable query dialect, and Databricks' delta-kernel-rs replacing a sketchy C++ Delta Lake implementation.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
