CockroachDB v25.1 is an Innovation Release, which is optional for CockroachDB Advanced, CockroachDB Standard, and CockroachDB self-hosted clusters but is required for CockroachDB Basic.
Refer to Major release types before installing or upgrading for release timing and support details. To learn what's new in this release, refer to its Feature Highlights.
On this page, you can read about changes and find downloads for all production and testing releases of CockroachDB v25.1
For key feature enhancements in v25.1 and other upgrade considerations, refer to the notes for v25.1.0.
For details about release types, naming, and licensing, refer to the Releases page.
Be sure to also review the Release Support Policy.
After downloading a supported CockroachDB binary, learn how to install CockroachDB or upgrade your cluster.
Get future release notes emailed to you:
v25.1.10
Release Date: August 1, 2025
Downloads
Experimental downloads are not qualified for production use and not eligible for support or uptime SLA commitments, whether they are for testing releases or production releases.
| Operating System | Architecture | Full executable | SQL-only executable |
|---|---|---|---|
| Linux | Intel | cockroach-v25.1.10.linux-amd64.tgz (SHA256) |
cockroach-sql-v25.1.10.linux-amd64.tgz (SHA256) |
| ARM | cockroach-v25.1.10.linux-arm64.tgz (SHA256) |
cockroach-sql-v25.1.10.linux-arm64.tgz (SHA256) |
|
| Mac (Experimental) |
Intel | cockroach-v25.1.10.darwin-10.9-amd64.tgz (SHA256) |
cockroach-sql-v25.1.10.darwin-10.9-amd64.tgz (SHA256) |
| ARM | cockroach-v25.1.10.darwin-11.0-arm64.tgz (SHA256) |
cockroach-sql-v25.1.10.darwin-11.0-arm64.tgz (SHA256) |
|
| Windows (Experimental) |
Intel | cockroach-v25.1.10.windows-6.2-amd64.zip (SHA256) |
cockroach-sql-v25.1.10.windows-6.2-amd64.zip (SHA256) |
Docker image
Multi-platform images include support for both Intel and ARM. Multi-platform images do not take up additional space on your Docker host.
Within the multi-platform image, both Intel and ARM images are generally available for production use.
To download the Docker image:
docker pull cockroachdb/cockroach:v25.1.10
Source tag
To view or download the source code for CockroachDB v25.1.10 on Github, visit v25.1.10 source tag.
Changelog
View a detailed changelog on GitHub: v25.1.9...v25.1.10
Bug fixes
- Fixed a bug that could cause some errors returned by attempts to upload backup data to external storage providers to be undetected, potentially causing incomplete backups. #151097
v25.1.9
Release Date: July 28, 2025
Downloads
Experimental downloads are not qualified for production use and not eligible for support or uptime SLA commitments, whether they are for testing releases or production releases.
| Operating System | Architecture | Full executable | SQL-only executable |
|---|---|---|---|
| Linux | Intel | cockroach-v25.1.9.linux-amd64.tgz (SHA256) |
cockroach-sql-v25.1.9.linux-amd64.tgz (SHA256) |
| ARM | cockroach-v25.1.9.linux-arm64.tgz (SHA256) |
cockroach-sql-v25.1.9.linux-arm64.tgz (SHA256) |
|
| Mac (Experimental) |
Intel | cockroach-v25.1.9.darwin-10.9-amd64.tgz (SHA256) |
cockroach-sql-v25.1.9.darwin-10.9-amd64.tgz (SHA256) |
| ARM | cockroach-v25.1.9.darwin-11.0-arm64.tgz (SHA256) |
cockroach-sql-v25.1.9.darwin-11.0-arm64.tgz (SHA256) |
|
| Windows (Experimental) |
Intel | cockroach-v25.1.9.windows-6.2-amd64.zip (SHA256) |
cockroach-sql-v25.1.9.windows-6.2-amd64.zip (SHA256) |
Docker image
Multi-platform images include support for both Intel and ARM. Multi-platform images do not take up additional space on your Docker host.
Within the multi-platform image, both Intel and ARM images are generally available for production use.
To download the Docker image:
docker pull cockroachdb/cockroach:v25.1.9
Source tag
To view or download the source code for CockroachDB v25.1.9 on Github, visit v25.1.9 source tag.
Changelog
View a detailed changelog on GitHub: v25.1.8...v25.1.9
SQL language changes
- Added a session variable
initial_retry_backoff_for_read_committedthat controls the initial backoff duration when retrying an individual statement in an explicitREAD COMMITTEDtransaction. A duration of0disables exponential backoff. If a statement in an explicitREAD COMMITTEDtransaction is failing with the40001errorERROR: restart transaction: read committed retry limit exceeded; set by max_retries_for_read_committed=..., then you should setinitial_retry_backoff_for_read_committedto a duration proportional to the typical execution time of the statement (in addition to also increasingmax_retries_for_read_committed). #148223 - Added the metrics
sql.txn.auto_retry.countandsql.statements.auto_retry.count, which count the number of automatic retries of SQL transactions and statements, respectively, within the database. These metrics differ from the relatedtxn.restarts.*metrics, which count retryable errors emitted by the KV layer that must be retried. The newsql.txn.auto_retry.countandsql.statements.auto_retry.countmetrics count auto-retry actions taken by the SQL layer in response to some of those retryable errors. #148223
DB Console changes
- Updated the "Learn more" link on the Hot Ranges page to direct users to a newer, more comprehensive reference guide about hotspots. #148521
Bug fixes
- Fixed a data race in the
cloudstoragesink. #147162 - Fixed an error in
crdb_internal.table_spansthat could occur when a table's schema had been dropped. #147976 - Fixed a bug where
libpqclients using the async API could hang with large result sets (Python: psycopg; Ruby: ActiveRecord, ruby-pg). #148469 The
RESET ALLstatement no longer affects the following session variables:is_superuserrolesession_authorizationtransaction_isolationtransaction_prioritytransaction_statustransaction_read_only
This better matches PostgreSQL behavior for
RESET ALL. In addition, theDISCARD ALLstatement no longer errors whendefault_transaction_use_follower_readsis enabled. #149429In v25.1, automatic partial statistics collection was enabled by default (by setting the
sql.stats.automatic_partial_collection.enabledcluster setting totrue). Partial statistics collection may encounter certain expected scenarios that were previously reported as failed stats jobs with PostgreSQL error code55000. These errors are benign and are no longer reported. Instead, the stats job will be marked as "succeeded," though no new statistics will be created. #149624Fixed a slow memory leak that was introduced in v25.1.8, v25.2.1, v25.2.2, and v25.3 betas. The leak would accumulate whenever a node executed a part of the distributed plan (the gateway node of the plan was not affected), and could only be mitigated by restarting the node. #149925
Fixed a bug that would allow a race condition in foreign key cascades under
READ COMMITTEDandREPEATABLE READisolation levels. #150339
v25.1.8
Release Date: June 25, 2025
Downloads
Experimental downloads are not qualified for production use and not eligible for support or uptime SLA commitments, whether they are for testing releases or production releases.
| Operating System | Architecture | Full executable | SQL-only executable |
|---|---|---|---|
| Linux | Intel | cockroach-v25.1.8.linux-amd64.tgz (SHA256) |
cockroach-sql-v25.1.8.linux-amd64.tgz (SHA256) |
| ARM | cockroach-v25.1.8.linux-arm64.tgz (SHA256) |
cockroach-sql-v25.1.8.linux-arm64.tgz (SHA256) |
|
| Mac (Experimental) |
Intel | cockroach-v25.1.8.darwin-10.9-amd64.tgz (SHA256) |
cockroach-sql-v25.1.8.darwin-10.9-amd64.tgz (SHA256) |
| ARM | cockroach-v25.1.8.darwin-11.0-arm64.tgz (SHA256) |
cockroach-sql-v25.1.8.darwin-11.0-arm64.tgz (SHA256) |
|
| Windows (Experimental) |
Intel | cockroach-v25.1.8.windows-6.2-amd64.zip (SHA256) |
cockroach-sql-v25.1.8.windows-6.2-amd64.zip (SHA256) |
Docker image
Multi-platform images include support for both Intel and ARM. Multi-platform images do not take up additional space on your Docker host.
Within the multi-platform image, both Intel and ARM images are generally available for production use.
To download the Docker image:
docker pull cockroachdb/cockroach:v25.1.8
Source tag
To view or download the source code for CockroachDB v25.1.8 on Github, visit v25.1.8 source tag.
Changelog
View a detailed changelog on GitHub: v25.1.7...v25.1.8
Bug fixes
- Fixed a bug where a CockroachDB node could crash when executing
DOstatements that contain currently unsupported DDL statements likeCREATE TYPEin a non-default configuration (additional logging needed to be enabled, e.g., via thesql.log.all_statements.enabledcluster setting). This bug was introduced in v25.1. #146509 - Fixed a bug where the
kv.rangefeed.closed_timestamp.slow_rangeswould not be incremented when a rangefeed closed timestamp was slower than the target threshold. #146973 - Fixed a bug that caused the SQL Activity > Statement Fingerprint page to fail to load details for statements run with application names containing a
#character. #147222 - Fixed a bug that could cause an
AFTERtrigger to fail withclient already committed or rolled back the transactionif the query also contained foreign-key cascades. The bug had existed sinceAFTERtriggers were introduced in v24.3. #147310 - Fixed a bug that could cause the
cockroachprocess tosegfaultwhen collecting runtime execution traces (typically collected via the Advanced Debug page in the Console). #147332 - Previously, CockroachDB could incorrectly evaluate the
to_regclass,to_regnamespace,to_regproc,to_regprocedure,to_regrole, andto_regtypebuilt-in functions when the query using them was evaluated in a distributed fashion. The bug was introduced with these built-in functions in v23.1 and is now fixed. #147375 - Fixed a bug that caused the optimizer to ignore index hints when optimizing some forms of prepared statements. This could result in one of two unexpected behaviors: a query errors with the message
index cannot be used for this querywhen the index can actually be used; or a query uses an index that does not adhere to the hint. The hints relevant to this bug are regular index hints, e.g.,SELECT * FROM tab@index,FORCE_INVERTED_INDEX, andFORCE_ZIGZAG. #147416 - Fixed a bug that could cause stable expressions to be folded in cached query plans. The bug could cause stable expressions like
current_settingto return the wrong result if used in a prepared statement. The bug was introduced in v23.2.22, v24.1.14, v24.3.9, v25.1.2, and the v25.2 alpha. #147459 - Fixed a bug where prepared statements on schema changes could fail with runtime errors. #147670
- Fixed a bug where
ALTER TABLEwas modifying identity attributes on columns not backed by a sequence. #147710 - Fixed an issue with logical data replication where the presence of a unique index may cause spurious dead-letter queue (DLQ) entries if the unique index has a smaller index ID than the primary key index. #147353
Performance improvements
- TTL jobs now respond to cluster topology changes by restarting and rebalancing across available nodes. #147208
v25.1.7
Release Date: May 28, 2025
Downloads
Experimental downloads are not qualified for production use and not eligible for support or uptime SLA commitments, whether they are for testing releases or production releases.
| Operating System | Architecture | Full executable | SQL-only executable |
|---|---|---|---|
| Linux | Intel | cockroach-v25.1.7.linux-amd64.tgz (SHA256) |
cockroach-sql-v25.1.7.linux-amd64.tgz (SHA256) |
| ARM | cockroach-v25.1.7.linux-arm64.tgz (SHA256) |
cockroach-sql-v25.1.7.linux-arm64.tgz (SHA256) |
|
| Mac (Experimental) |
Intel | cockroach-v25.1.7.darwin-10.9-amd64.tgz (SHA256) |
cockroach-sql-v25.1.7.darwin-10.9-amd64.tgz (SHA256) |
| ARM | cockroach-v25.1.7.darwin-11.0-arm64.tgz (SHA256) |
cockroach-sql-v25.1.7.darwin-11.0-arm64.tgz (SHA256) |
|
| Windows (Experimental) |
Intel | cockroach-v25.1.7.windows-6.2-amd64.zip (SHA256) |
cockroach-sql-v25.1.7.windows-6.2-amd64.zip (SHA256) |
Docker image
Multi-platform images include support for both Intel and ARM. Multi-platform images do not take up additional space on your Docker host.
Within the multi-platform image, both Intel and ARM images are generally available for production use.
To download the Docker image:
docker pull cockroachdb/cockroach:v25.1.7
Source tag
To view or download the source code for CockroachDB v25.1.7 on Github, visit v25.1.7 source tag.
Changelog
View a detailed changelog on GitHub: v25.1.6...v25.1.7
DB Console changes
- Schema insights that recommend replacing an index were previously a two-statement command consisting of a
CREATE INDEXand aDROP INDEXstatement. When these two DDL statements were run as a single batched command, it was possible for one statement to succeed and one to fail. This is because DDL statements do not have the same atomicity guarantees as other SQL statements in CockroachDB. Index-replacement insights are now a singleCREATE INDEXstatement followed by a comment with additional DDL statements to be run manually: anALTER INDEX ... NOT VISIBLEstatement, which makes the old index invisible to the optimizer, followed by aDROP INDEXstatement that should only be run after making the old index invisible and verifying that workload performance is satisfactory. #145989
Operational changes
- SQL queries run on the source cluster by logical data replication (LDR) and physical cluster replication (PCR) will now account to internal metrics like
sql.statements.active.internalinstead of metrics likesql.statements.activethat are used to monitor application workload. #145110
Bug fixes
- Fixed a bug where using values
changefeed.aggregator.flush_jitterandmin_checkpoint_frequencysuch thatchangefeed.aggregator.flush_jitter * min_checkpoint_frequency < 1would cause a panic. Jitter will now be disabled in this case. #144426 - Fixed a bug in the DB Console where the Drop unused index tag appeared multiple times for an index on the Indexes tab of the table details page. #144655
- Fixed a bug in the DB Console where tables with page size dropdowns failed to update when a new page size option was selected. Tables now update correctly. #144766
- Fixed a bug that could potentially cause a changefeed to erroneously complete when one of its watched tables encounters a schema change. #144779
- Fixed a bug where the Schedules page displayed only a subset of a cluster's schedules. The Schedules page now correctly displays all schedules. #144806
- Fixed a bug where manually updating the
showorstatusparameters in the URL (e.g.,http://127.0.0.1:8080/#/schedules?status=ACTIVE&show=50) caused the Schedules page to fail to load. #144806 - Fixed a bug in the SQL Activity Statements page where filtering by Statement Type returned no results. The filter now works as expected. #144852
- Improve the performance of
SHOW CREATE TABLEon multi-region databases with large numbers of objects. #145070 - Fixed a bug that could cause queries that perform work in parallel to ignore the requested quality-of-service level. Affected operations include lookup joins, DistSQL execution, and foreign-key checks. #145371
- Fixed a bug where running
DROP INDEXon a hash-sharded index did not properly detect dependencies from functions and procedures on the shard column. This caused theDROP INDEXstatement to fail with an internal validation error. Now the statement returns a correct error message, and usingDROP INDEX ... CASCADEworks as expected by dropping the dependent functions and procedures. #145384 - Fixed a bug that could lead to schema changes hanging after a cluster recovered from availability issues. #145544
- Previously, on a table with multiple column families, CockroachDB could encounter a
Non-nullable column "‹×›:‹×›" with no valueerror in rare cases during table statistics collection. The bug was present since v19.2 and is now fixed. #145575 - Fixed a bug that could cause a row-level TTL job to fail with the error "comparison of two different versions of enum" if an
ENUMtype referenced by the table experienced a schema change. #145916 - Fixed a bug where the physical cluster replication (PCR) reader catalog job could hit validation errors when schema objects had dependencies between them (for example, when a sequence's default expression was being removed). #145998
- Fixed a bug where orphaned leases were not properly cleaned up. #146088
- Fixed an internal assertion failure that could occur during operations like
ALTER TYPEorALTER DATABASE ... ADD REGIONwhen temporary tables were present. #146197 - Fixed a bug that prevented
TRUNCATEfrom succeeding if any indexes on the table had back-reference dependencies, such as from a view or function referencing the index. #146325 - Fixed a bug that could lead to a node stall. #146408
- Fixed a bug where an invalid comment in the
system.commenttable for a schema object could make it inacessible. #146417 - Fixed a rare corruption bug that impacts import and materialized views. #144662
v25.1.6
Release Date: April 30th, 2025
Downloads
Experimental downloads are not qualified for production use and not eligible for support or uptime SLA commitments, whether they are for testing releases or production releases.
| Operating System | Architecture | Full executable | SQL-only executable |
|---|---|---|---|
| Linux | Intel | cockroach-v25.1.6.linux-amd64.tgz (SHA256) |
cockroach-sql-v25.1.6.linux-amd64.tgz (SHA256) |
| ARM | cockroach-v25.1.6.linux-arm64.tgz (SHA256) |
cockroach-sql-v25.1.6.linux-arm64.tgz (SHA256) |
|
| Mac (Experimental) |
Intel | cockroach-v25.1.6.darwin-10.9-amd64.tgz (SHA256) |
cockroach-sql-v25.1.6.darwin-10.9-amd64.tgz (SHA256) |
| ARM | cockroach-v25.1.6.darwin-11.0-arm64.tgz (SHA256) |
cockroach-sql-v25.1.6.darwin-11.0-arm64.tgz (SHA256) |
|
| Windows (Experimental) |
Intel | cockroach-v25.1.6.windows-6.2-amd64.zip (SHA256) |
cockroach-sql-v25.1.6.windows-6.2-amd64.zip (SHA256) |
Docker image
Multi-platform images include support for both Intel and ARM. Multi-platform images do not take up additional space on your Docker host.
Within the multi-platform image, both Intel and ARM images are generally available for production use.
To download the Docker image:
docker pull cockroachdb/cockroach:v25.1.6
Source tag
To view or download the source code for CockroachDB v25.1.6 on Github, visit v25.1.6 source tag.
Changelog
View a detailed changelog on GitHub: v25.1.5...v25.1.6
SQL language changes
- Added the
WITH IGNORE_FOREIGN_KEYSoption toSHOW CREATE TABLEwhich omits foreign key constraints from the output schema. This option is also allowed inSHOW CREATE VIEW, but has no effect. It cannot be combined with theWITH REDACToption. #142161 EXPLAIN ANALYZEstatements now display the number of transaction retries and time spent retrying, if non-zero, in the plan output. #142928- A new
execution timestatistic is now reported onEXPLAIN ANALYZEoutput for most operators. Previously, this statistic was only available on the DistSQL diagrams inEXPLAIN ANALYZE (DISTSQL)output. #143895
Operational changes
- The
sys.cpu.host.combined.percent-normalizedmetric has been updated to include additional counters for more accurate host CPU measurement and to reduce underreporting. It now accounts for time spent processing hardware (irq) and software (softirq) interrupts, as well asnicetime, which represents low-priority user-mode activity. #142906 - The
server.client_cert_expiration_cache.capacitycluster setting has been removed. Thesecurity.certificate.expiration.clientandsecurity.certificate.ttl.clientmetrics now report the lowest value observed for a user in the last 24 hours. #143729
Bug fixes
- Previously, fast failback for physical cluster replication (PCR) could succeed even if the destination cluster protected timestamp had been removed, causing the reverse stream to enter a crashing loop. This fix ensures the failback command fast fails. #142922
- The reader virtual cluster now starts if the user begins a physical cluster replication (PCR) stream from a cursor via
ALTER VIRTUAL CLUSTER virtual_cluster START REPLICATION OF virtual_cluster ON physical_cluster WITH READ VIRTUAL CLUSTER. #143141 - Fixed a bug that caused changefeeds to fail on startup when scanning a single key. #143150
- MVCC garbage collection is now fully subject to IO admission control. Previously, it was possible for MVCC GC to cause store overload (such as LSM inversion) when a large amount of data would become eligible for garbage collection. Should any issues arise from subjecting MVCC GC to admission control, the
kv.mvcc_gc.queue_kv_admission_control.enabledcluster setting can be set tofalseto restore the previous behavior. #143277 - Fixed a bug where calling a stored procedure could drop the procedure if it had
OUTparameters that were not used by the calling routine. This bug had existed since PL/pgSQLCALLstatements were introduced in v24.1. #143290 - Fixed a bug where CockroachDB would encounter an internal error when decoding the gists of plans with
CALLstatements. The bug had been present since v23.2. #143315 - Fixed a crash due to
use of enum metadata before hydrationwhen using logical data replication (LDR) with user-defined types. #143373 - Fixed a bug where a GC threshold error (which appears as "batch timestamp must be after replica GC threshold ...") could cause a schema change that backfills data to fail. Now, the error will cause the backfill to be retried at a higher timestamp to avoid the error. #143520
- Fixed a bug in
v24.1.14,v24.3.7,v24.3.8, andv25.1that could cause a nil-pointer error when a column's default expression contained a volatile expression (likenextval) as a UDF argument. #143634 - Fixed a potential deadlock that could occur during client certificate updates while metrics were being collected. This issue affected the reliability of certificate expiration reporting. #143729
- Previously, the fields
maximum memory usageandmax sql temp disk usagein theEXPLAIN ANALYZEoutput could be under-reported for distributed plans when memory-intensive operations were fully performed on the remote nodes. This is now fixed. The bug existed in v22.1 and later. #143794 - The
ALTER VIRTUAL CLUSTER SET REPLICATION READ VIRTUAL CLUSTERsyntax is now supported for adding a reader virtual cluster for an existing Physical Cluster Replication (PCR) standby. #143853 - Fixed a bug where CockroachDB could encounter a
cannot specify timestamp older than ...error during table statistics collection in some cases (e.g., when the cluster is overloaded). The bug was present since v19.1. #144018 - Fixed a bug that could cause a stack overflow during execution of a prepared statement that invoked a PL/pgSQL routine with a loop. The bug existed in versions v23.2.22, v24.1.15, v24.3.9, v25.1.2, v25.1.3, and pre-release versions of v25.2 prior to v25.2.0-alpha.3. #144031
- Fixed a bug that could lead to a node stall. #146410
Performance improvements
- Schema changes that require data to be backfilled no longer hold a protected timestamp for the entire duration of the backfill; this means there is less overhead caused by MVCC garbage collection after the backfill completes. #143520
v25.1.5
Release Date: April 28, 2025
Downloads
Experimental downloads are not qualified for production use and not eligible for support or uptime SLA commitments, whether they are for testing releases or production releases.
| Operating System | Architecture | Full executable | SQL-only executable |
|---|---|---|---|
| Linux | Intel | cockroach-v25.1.5.linux-amd64.tgz (SHA256) |
cockroach-sql-v25.1.5.linux-amd64.tgz (SHA256) |
| ARM | cockroach-v25.1.5.linux-arm64.tgz (SHA256) |
cockroach-sql-v25.1.5.linux-arm64.tgz (SHA256) |
|
| Mac (Experimental) |
Intel | cockroach-v25.1.5.darwin-10.9-amd64.tgz (SHA256) |
cockroach-sql-v25.1.5.darwin-10.9-amd64.tgz (SHA256) |
| ARM | cockroach-v25.1.5.darwin-11.0-arm64.tgz (SHA256) |
cockroach-sql-v25.1.5.darwin-11.0-arm64.tgz (SHA256) |
|
| Windows (Experimental) |
Intel | cockroach-v25.1.5.windows-6.2-amd64.zip (SHA256) |
cockroach-sql-v25.1.5.windows-6.2-amd64.zip (SHA256) |
Docker image
Multi-platform images include support for both Intel and ARM. Multi-platform images do not take up additional space on your Docker host.
Within the multi-platform image, both Intel and ARM images are generally available for production use.
To download the Docker image:
docker pull cockroachdb/cockroach:v25.1.5
Source tag
To view or download the source code for CockroachDB v25.1.5 on Github, visit v25.1.5 source tag.
Changelog
View a detailed changelog on GitHub: v25.1.4...v25.1.5
Bug fixes
- Fixed a rare corruption bug that impacts import and materialized views. #144662
v25.1.4
Release Date: April 9, 2025
Downloads
Experimental downloads are not qualified for production use and not eligible for support or uptime SLA commitments, whether they are for testing releases or production releases.
| Operating System | Architecture | Full executable | SQL-only executable |
|---|---|---|---|
| Linux | Intel | cockroach-v25.1.4.linux-amd64.tgz (SHA256) |
cockroach-sql-v25.1.4.linux-amd64.tgz (SHA256) |
| ARM | cockroach-v25.1.4.linux-arm64.tgz (SHA256) |
cockroach-sql-v25.1.4.linux-arm64.tgz (SHA256) |
|
| Mac (Experimental) |
Intel | cockroach-v25.1.4.darwin-10.9-amd64.tgz (SHA256) |
cockroach-sql-v25.1.4.darwin-10.9-amd64.tgz (SHA256) |
| ARM | cockroach-v25.1.4.darwin-11.0-arm64.tgz (SHA256) |
cockroach-sql-v25.1.4.darwin-11.0-arm64.tgz (SHA256) |
|
| Windows (Experimental) |
Intel | cockroach-v25.1.4.windows-6.2-amd64.zip (SHA256) |
cockroach-sql-v25.1.4.windows-6.2-amd64.zip (SHA256) |
Docker image
Multi-platform images include support for both Intel and ARM. Multi-platform images do not take up additional space on your Docker host.
Within the multi-platform image, both Intel and ARM images are generally available for production use.
To download the Docker image:
docker pull cockroachdb/cockroach:v25.1.4
Source tag
To view or download the source code for CockroachDB v25.1.4 on Github, visit v25.1.4 source tag.
Changelog
View a detailed changelog on GitHub: v25.1.3...v25.1.4
Bug fixes
- Fixed a bug that could cause a stack overflow during execution of a prepared statement that invoked a PL/pgSQL routine with a loop. The bug existed in versions v23.2.22, v24.1.15, v24.3.9, v25.1.2, v25.1.3, and pre-release versions of v25.2 prior to v25.2.0-alpha.3. #144059
v25.1.3
Release Date: April 2, 2025
Downloads
Experimental downloads are not qualified for production use and not eligible for support or uptime SLA commitments, whether they are for testing releases or production releases.
| Operating System | Architecture | Full executable | SQL-only executable |
|---|---|---|---|
| Linux | Intel | cockroach-v25.1.3.linux-amd64.tgz (SHA256) |
cockroach-sql-v25.1.3.linux-amd64.tgz (SHA256) |
| ARM | cockroach-v25.1.3.linux-arm64.tgz (SHA256) |
cockroach-sql-v25.1.3.linux-arm64.tgz (SHA256) |
|
| Mac (Experimental) |
Intel | cockroach-v25.1.3.darwin-10.9-amd64.tgz (SHA256) |
cockroach-sql-v25.1.3.darwin-10.9-amd64.tgz (SHA256) |
| ARM | cockroach-v25.1.3.darwin-11.0-arm64.tgz (SHA256) |
cockroach-sql-v25.1.3.darwin-11.0-arm64.tgz (SHA256) |
|
| Windows (Experimental) |
Intel | cockroach-v25.1.3.windows-6.2-amd64.zip (SHA256) |
cockroach-sql-v25.1.3.windows-6.2-amd64.zip (SHA256) |
Docker image
Multi-platform images include support for both Intel and ARM. Multi-platform images do not take up additional space on your Docker host.
Within the multi-platform image, both Intel and ARM images are generally available for production use.
To download the Docker image:
docker pull cockroachdb/cockroach:v25.1.3
Source tag
To view or download the source code for CockroachDB v25.1.3 on Github, visit v25.1.3 source tag.
Changelog
View a detailed changelog on GitHub: v25.1.2...v25.1.3
General changes
- When changefeeds are created with a
resolvedoption lower than themin_checkpoint_frequencyoption, a message was printed to inform the user. This message is now a notice, and includes extra information if either option was a default. #142154
Operational changes
- Added the cluster setting
server.child_metrics.include_aggregate.enabled(default:true) that controls the behavior of Prometheus child metrics reporting (/_status/vars). When set totrue, child metrics include an aggregate time series, maintaining the existing behavior. When set tofalse, it stops reporting the aggregate time series, preventing double counting when querying metrics. #142746 - Added the
sql.statement_timeout.countmetric to track the number of SQL statements that fail due to exceeding the statement timeout. #142155 - Added the
sql.transaction_timeout.countmetric to track the number of SQL statements that fail due to exceeding the transaction timeout. #142155
Bug fixes
- Fixed a crash due to
use of enum metadata before hydrationwhen using logical data replication (LDR) with user-defined types. #143388 - Fixed an issue where dropping a database with triggers could fail due to an undropped backreference to a trigger function. #142727
- Fixed a bug in
v24.1.14,v24.3.7,v24.3.8, andv25.1that could cause a nil-pointer error when a column's default expression contained a volatile expression (likenextval) as a UDF argument. #143632 - A step in the 25.1 upgrade finalization process that required backfilling jobs now uses locks to ensure it makes progress even when there is contention on the jobs table to prevent the possibility of becoming stuck under heavy load. #142223
- Fixed a bug where the declarative schema changer allowed
CREATE SEQUENCEoperations to proceed even while aDROP SCHEMAorDROP DATABASEwas in progress. Such operations now retry if the parent object has a schema change in progress, preventing new child objects from being created under deleted parent objects. #142764 - Fixed a bug when running with the
autocommit_before_ddlsession variable that could cause a runtime error when binding a previously prepared DDL statement. #141851 - Fixed a bug that would prevent
CREATE TRIGGERandDROP TRIGGERstatements from working if theautocommit_before_ddlsetting was enabled, and if the statement was either sent as a prepared statement or as part of a batch of multiple statements. #142302 - Fixed a bug where CockroachDB could incorrectly evaluate casts to some OID types (like
REGCLASS) in some cases. The bug had been present since at least v22.1. #141956 - Fixed a bug where replication controls on indexes and partitions would not get properly updated with their new IDs during index backfills, effectively discarding the replication controls set on them before the backfill. #142844
- Fixed a bug where
EXPLAIN ANALYZEoutput could incorrectly showdistribution: fulland notdistribution: localin some cases when the physical plan was only running on the gateway node. The bug had been present since before v23.1, and did not apply toEXPLAINstatements. #142938 - The TTL deletion job now includes a retry mechanism that progressively reduces the batch size when encountering contention. This improves the chances of successful deletion without requiring manual adjustments to TTL knobs. Also added the
jobs.row_level_ttl.num_delete_batch_retriesmetric to track the number of times the TTL job had to reduce the batch size and try again. #142324 - Fixed a bug where the fraction completed and internal checkpoints during an index backfill operation would stop getting written if any of the periodic fraction/checkpoint write operations failed. Additional logging was added so that progress is logged in addition to being written to the job record. This bug affected schema change operations such as creating an index or adding a non-nullable column to a table. #141788
- Fixed a bug which would send a replica outside of a tenant's known region when
SURVIVE REGION FAILUREwas set and exactly 3 regions were configured. #142980 - Fixed a bug that could cause the upgrade to v25.1 to crash if a job was missing from the virtual table. For example, if a malformed job had no payload information. #142311
- Fixed a bug where during validation of a table-level zone config, inherited values were incorrectly populated from the default range instead of from the parent database. #142865
- Fixed a bug in client certificate expiration metrics,
security.certificate.expiration.clientandsecurity.certificate.ttl.client. #142916 - Fixed a bug where a node that was drained as part of decommissioning may have interrupted SQL connections that were still active during drain (and for which drain would have been expected to wait). #141769
- Physical Cluster Replication (PCR) reader catalogs could have orphaned rows in
system.namespaceafter an object is renamed. #142872
Miscellaneous
- Updated the
CREATE TRIGGERonly implemented in the declarative schema changererror message to include a helpful suggestion and link to relevant docs. #141872 - When configuring the
sql.ttl.default_delete_rate_limitcluster setting, a notice is displayed informing the user that the TTL rate limit is per leaseholder per table with a link to the docs. #142834 - When configuring the
sql.ttl.default_delete_rate_limitcluster setting, a notice is displayed informing the user that the TTL rate limit is per leaseholder per table with a link to the docs. #142834 - Improved S3 credential caching for STS credentials to avoid exceeding the Amazon metadata service rate limit and encountering errors related to AssumeRole API calls when accessing large numbers of files in larger clusters. #142438
v25.1.2
Release Date: March 12, 2025
Downloads
Experimental downloads are not qualified for production use and not eligible for support or uptime SLA commitments, whether they are for testing releases or production releases.
| Operating System | Architecture | Full executable | SQL-only executable |
|---|---|---|---|
| Linux | Intel | cockroach-v25.1.2.linux-amd64.tgz (SHA256) |
cockroach-sql-v25.1.2.linux-amd64.tgz (SHA256) |
| ARM | cockroach-v25.1.2.linux-arm64.tgz (SHA256) |
cockroach-sql-v25.1.2.linux-arm64.tgz (SHA256) |
|
| Mac (Experimental) |
Intel | cockroach-v25.1.2.darwin-10.9-amd64.tgz (SHA256) |
cockroach-sql-v25.1.2.darwin-10.9-amd64.tgz (SHA256) |
| ARM | cockroach-v25.1.2.darwin-11.0-arm64.tgz (SHA256) |
cockroach-sql-v25.1.2.darwin-11.0-arm64.tgz (SHA256) |
|
| Windows (Experimental) |
Intel | cockroach-v25.1.2.windows-6.2-amd64.zip (SHA256) |
cockroach-sql-v25.1.2.windows-6.2-amd64.zip (SHA256) |
Docker image
Multi-platform images include support for both Intel and ARM. Multi-platform images do not take up additional space on your Docker host.
Within the multi-platform image, both Intel and ARM images are generally available for production use.
To download the Docker image:
docker pull cockroachdb/cockroach:v25.1.2
Source tag
To view or download the source code for CockroachDB v25.1.2 on Github, visit v25.1.2 source tag.
Changelog
View a detailed changelog on GitHub: v25.1.1...v25.1.2
SQL language changes
- Added the
optimizer_check_input_min_row_countsession setting to control the minimum row count estimate for buffer scans of foreign key and uniqueness checks. It defaults to0. #141374
DB Console changes
- The Paused Follower graph has been removed from the Replication Dashboard in DB Console because followers are no longer paused by default in CockroachDB v25.1 and later. #141502
Bug fixes
- Fixed a bug that prevented starting multi-table logical data replication (LDR) streams on tables that contained user-defined types. #141643
- Fixed a bug where dropping a table with a trigger using the legacy schema changer could leave an orphaned reference in the descriptor. This issue occurred when two tables depended on each other via a trigger, and the table containing the trigger was dropped. #141181
- Fixed a bug that could cause the upgrade to v25.1 to crash if a job was missing from the virtual table, such as when a malformed job had no payload information. #142312
- A step in the v25.1 upgrade finalization process that required backfilling jobs now uses locks to ensure it makes progress even when there is contention on the jobs table, which prevents the possibility of becoming stuck under heavy load. #141460
- Fixed a bug that could cause concurrent DML statements to prevent primary key changes from succeeding. #141383
- Fixed a bug that could cause gateway nodes to panic when performing an
UPSERTon a table with aBOOLprimary key column and a partial index where the primary key column is used as the predicate expression. #141822 - Fixed a bug that could cause
SHOW CREATE TABLEto fail if a database was offline (e.g., due to aRESTOREon that database). #141505 - Fixed a bug that prevented transaction retry errors encountered during implicit transactions from being automatically retried internally if the
autocommit_before_ddlsession variable was enabled and the statement was a schema change. #141393 - Fixed a bug that could cause
nil pointer dereferenceerrors when executing statements with user-defined functions (UDFs) or certain built-in functions, such asobj_description. #141653 - Improved S3 credential caching for STS credentials to avoid exceeding the Amazon metadata service rate limit and encountering errors related to AssumeRole API calls when accessing large numbers of files in larger clusters. #142690
v25.1.1
Release Date: March 12, 2025
Downloads
Experimental downloads are not qualified for production use and not eligible for support or uptime SLA commitments, whether they are for testing releases or production releases.
| Operating System | Architecture | Full executable | SQL-only executable |
|---|---|---|---|
| Linux | Intel | cockroach-v25.1.1.linux-amd64.tgz (SHA256) |
cockroach-sql-v25.1.1.linux-amd64.tgz (SHA256) |
| ARM | cockroach-v25.1.1.linux-arm64.tgz (SHA256) |
cockroach-sql-v25.1.1.linux-arm64.tgz (SHA256) |
|
| Mac (Experimental) |
Intel | cockroach-v25.1.1.darwin-10.9-amd64.tgz (SHA256) |
cockroach-sql-v25.1.1.darwin-10.9-amd64.tgz (SHA256) |
| ARM | cockroach-v25.1.1.darwin-11.0-arm64.tgz (SHA256) |
cockroach-sql-v25.1.1.darwin-11.0-arm64.tgz (SHA256) |
|
| Windows (Experimental) |
Intel | cockroach-v25.1.1.windows-6.2-amd64.zip (SHA256) |
cockroach-sql-v25.1.1.windows-6.2-amd64.zip (SHA256) |
Docker image
Multi-platform images include support for both Intel and ARM. Multi-platform images do not take up additional space on your Docker host.
Within the multi-platform image, both Intel and ARM images are generally available for production use.
To download the Docker image:
docker pull cockroachdb/cockroach:v25.1.1
Source tag
To view or download the source code for CockroachDB v25.1.1 on Github, visit v25.1.1 source tag.
Changelog
View a detailed changelog on GitHub: v25.1.0...v25.1.1
Bug fixes
- Improved S3 credential caching for STS credentials to avoid exceeding the Amazon metadata service rate limit and encountering errors related to AssumeRole API calls when accessing large numbers of files in larger clusters. #142677
v25.1.0
Release Date: February 18, 2025
With the release of CockroachDB v25.1, we've added new capabilities to help you migrate, build, and operate more efficiently. Refer to our summary of the most significant user-facing changes under Feature Highlights.
Downloads
Experimental downloads are not qualified for production use and not eligible for support or uptime SLA commitments, whether they are for testing releases or production releases.
| Operating System | Architecture | Full executable | SQL-only executable |
|---|---|---|---|
| Linux | Intel | cockroach-v25.1.0.linux-amd64.tgz (SHA256) |
cockroach-sql-v25.1.0.linux-amd64.tgz (SHA256) |
| ARM | cockroach-v25.1.0.linux-arm64.tgz (SHA256) |
cockroach-sql-v25.1.0.linux-arm64.tgz (SHA256) |
|
| Mac (Experimental) |
Intel | cockroach-v25.1.0.darwin-10.9-amd64.tgz (SHA256) |
cockroach-sql-v25.1.0.darwin-10.9-amd64.tgz (SHA256) |
| ARM | cockroach-v25.1.0.darwin-11.0-arm64.tgz (SHA256) |
cockroach-sql-v25.1.0.darwin-11.0-arm64.tgz (SHA256) |
|
| Windows (Experimental) |
Intel | cockroach-v25.1.0.windows-6.2-amd64.zip (SHA256) |
cockroach-sql-v25.1.0.windows-6.2-amd64.zip (SHA256) |
Docker image
Multi-platform images include support for both Intel and ARM. Multi-platform images do not take up additional space on your Docker host.
Within the multi-platform image, both Intel and ARM images are generally available for production use.
To download the Docker image:
docker pull cockroachdb/cockroach:v25.1.0
Source tag
To view or download the source code for CockroachDB v25.1.0 on Github, visit v25.1.0 source tag.
Changelog
View a detailed changelog on GitHub: v25.1.0-rc.1...v25.1.0
Feature highlights
This section summarizes the most significant user-facing changes in v25.1.0 and other features recently made available to CockroachDB users across versions. For a complete list of features and changes in v25.1, including bug fixes and performance improvements, refer to the release notes for previous v25.1 testing releases. You can also search the docs for sections labeled New in v25.1.
Feature categories
Additional information
CockroachDB Cloud
| Feature | Availability | ||||
|---|---|---|---|---|---|
| Ver. | Self-hosted | Advanced | Standard | Basic | |
|
Export Monthly CockroachDB Cloud Invoices as CSV CockroachDB Cloud now enables you to export your CockroachDB Cloud monthly invoice as a CSV file to share with your team or analyze billing data. |
All ★ | ||||
Change Data Capture
| Feature | Availability | ||||
|---|---|---|---|---|---|
| Ver. | Self-hosted | Advanced | Standard | Basic | |
|
Added a Human-Readable Format for Timestamps
|
25.1 | ||||
Cloud File Storage
| Feature | Availability | ||||
|---|---|---|---|---|---|
| Ver. | Self-hosted | Advanced | Standard | Basic | |
|
Now Supporting Workload Identity for Azure Blob Storage CockroachDB now supports Workload Identity for implicit authentication with Azure Blob Storage. |
25.1 | ||||
SQL
| Feature | Availability | ||||
|---|---|---|---|---|---|
| Ver. | Self-hosted | Advanced | Standard | Basic | |
|
|
25.1 | ||||
|
Transactions Automatically Commit Before DDL Statements
CockroachDB now automatically commits the current transaction before executing DDL statements. With this change, data definition language (DDL) statements now trigger an automatic commit of any preceding data manipulation language (DML) statements. This change eliminates common errors from mixing DDL and DML. The cluster setting |
25.1 | ||||
|
Improvements to Stored Procedures and User Defined Functions (UDFs) Expanded support for stored procedures, user-defined functions, and PL/pgSQL blocks. This release introduces several features that enhance your ability to write complex database logic. The changes include:
|
25.1 | ||||
KV
| Feature | Availability | ||||
|---|---|---|---|---|---|
| Ver. | Self-hosted | Advanced | Standard | Basic | |
|
Admission Control Available on SQL Writes Added support for replication admission control on SQL writes, allowing writes and background cluster operations to be paced to prevent overloading the cluster during node restarts or joins. |
25.1 | ||||
|
Improved Leaseholder Management (Preview) This release introduces Leader Leases (now in preview) which are a new lease type designed to removes the dependency on node liveness in favor of a distrbuted store liveness fabric, making all nodes and ranges more resilient to node failures and partitions. |
25.1 | ||||
| Feature detail key | |
|---|---|
| ★ | Features marked "All*" were recently made available in the CockroachDB Cloud platform. They are available for all supported versions of CockroachDB, under the deployment methods specified in their row under Availability. |
| ★★ | Features marked "All**" were recently made available via tools maintained outside of the CockroachDB binary. They are available to use with all supported versions of CockroachDB, under the deployment methods specified in their row under Availability. |
| Feature is available for this deployment method of CockroachDB as specified in the icon’s column: CockroachDB Self-hosted, CockroachDB Advanced, CockroachDB Standard, or CockroachDB Basic. | |
| Feature is not available for this deployment method of CockroachDB as specified in the icon’s column: CockroachDB Self-hosted, CockroachDB Advanced, CockroachDB Standard, or CockroachDB Basic. | |
Backward-incompatible changes
Before upgrading to CockroachDB v25.1, be sure to review the following backward-incompatible changes, as well as key cluster setting changes, and adjust your deployment as necessary.
The old
BACKUP TO,RESTORE FROM <collectionURI>, andSHOW BACKUP IN <collectionURI>syntaxes are now fully deprecated and no longer usable. #133610Altering a paused backup schedule's recurrence or location no longer resumes the schedule. #134829
BACKUP/RESTOREstatements no longer return index entries and bytes backed up/restored. #134516Introduced the
legacy_varchar_typingsession setting. Ifon, type checking and overload resolution for VARCHAR types ignore overloads that cause errors, allowing comparisons between VARCHAR and non-STRING-like placeholder values to execute successfully. Ifoff, type checking of these comparisons is more strict and must be handled with explicit type casts. As of v25.1.0 this setting defaults tooff. #137844Several metrics are redundant and have been removed. The following list maps each removed metric to an existing, identical metric. #138786
- Removed
sql.schema_changer.running, which is redundant withjobs.schema_change.currently_running. - Removed
sql.schema_changer.successes, which is redundant withjobs.schema_change.resume_completed. - Removed
sql.schema_changer.retry_errors, which is redundant withjobs.schema_change.resume_retry_error. - Removed
sql.schema_changer.permanent_errors, which is redundant withjobs.schema_change.resume_failed.
- Removed
The default value of the
autocommit_before_ddlsession variable is nowtrue. This will cause any schema change statement that is sent during a transaction to make the current transaction commit before executing the schema change in a separate transaction.This change is being made because CockroachDB does not have full support for multiple schema changes in a transaction, as described here.
Users who do not desire the autocommit behavior can preserve the old behavior by changing the default value of
autocommit_before_ddlwith a command such as:ALTER ROLE ALL SET autocommit_before_ddl = false;
Features that Require Upgrade Finalization
During a major-version upgrade, certain features and performance improvements may not be available until the upgrade is finalized. In v25.1, these are:
- A cluster must have an Enterprise license or a trial license set before an upgrade to v25.1 can be finalized.
- Support for XA transactions, which allow CockroachDB to participate in distributed transactions with other resources (e.g. databases or message queues) using a two-phase commit protocol. #129448
ALTER TABLE ... ALTER COLUMN TYPEis in General Availability (GA).- Jobs system changes:
SHOW JOBSis now based on a new mechanism for storing information about the progress and status of running jobs. #139230ALTER JOB ... OWNER TOcan now be used to transfer ownership of a job between users/roles. #138139- Users can now always see and control (pause/resume/cancel) jobs that they own. #138178
Key Cluster Setting Changes
Changes to cluster settings should be reviewed prior to upgrading. New default cluster setting values will be used unless you have manually set a value for a setting. This can be confirmed by running the SQL statement SELECT * FROM system.settings to view the non-default settings.
- Settings added
- Settings with changed defaults
- Settings with changed visibility
- Renamed settings
- Additional setting changes
Settings added
kv.transaction.max_intents_and_locks: accepts an integer value for the maximum number of inserts or durable locks allowed for a single transactions. When set to the default of0, this limiting is disabled. #135945Schema object identifiers (e.g. database names, schema names, table names, and function names) are no longer redacted when logging statements in the
EXECorSQL_SCHEMAchannels. If redaction of these names is required, then the new cluster settingsql.log.redact_names.enabledcan be set totrue. The default value of the setting isfalse. #136897Since v23.2, table statistics histograms have been collected for non-indexed JSON columns. Histograms are no longer collected for these columns. This reduces memory usage during table statistics collection, for both automatic and manual collection via
ANALYZEandCREATE STATISTICS. The previous behavior can be re-enabled by setting the cluster settingsql.stats.non_indexed_json_histograms.enabledtotrue. #139898ui.database_locality_metadata.enabledallows operators to disable the loading of extended region information in the DB Console Database and Table pages. In versions prior to v24.3, this information can cause significant CPU load on large clusters with many ranges. When disabled, if customers require this data, they can use the querySHOW RANGES FROM {DATABASE| TABLE}to compute it on demand. #133075
Settings with changed defaults
The
kvadmission.flow_control.modedefault value has been changed fromapply_to_elastictoapply_to_all. Regular writes are now subject to admission control by default, meaning that non-quorum required replicas may not be informed of new writes from the leader if they are unable to keep up. This brings a large performance improvement in scenarios with a large backlog of replication work toward one or more nodes, such as node restarts. The behavior can be reverted to the v24.3 and earlier default by changing the setting value toapply_to_elastic. #133860kvadmission.store.snapshot_ingest_bandwidth_control.enabledis nowtrueby default. This will enable disk-bandwidth-based admission control for range snapshot ingests. It requires the provisioned bandwidth to be set usingkvadmission.store.provisioned_bandwidth. #137618sql.stats.automatic_partial_collection.enabledis nowtrueby default. This enables automatic collection of partial table stats. Partial table stats (i.e. those created withCREATE STATISTICS ... USING EXTREMES) scan the lower and upper ends of indexes to collect statistics outside the range covered by the previous full statistics collection. #133988The default value for
trace.span_registry.enabledhas been changed fromtruetofalse. #135682
Settings with changed visibility
The following settings are now marked public after previously being reserved. Reserved settings are not documented and their tuning by customers is not supported.
kv.bulk_io_write.min_capacity_remaining_fractionis now public. It specifies the remaining store capacity fraction below which bulk ingestion requests are rejected. It defaults to0.05, and can be set between0.04and0.3. #135779
Renamed settings
Renamed
changefeed.min_highwater_advancetochangefeed.resolved_timestamp.min_update_intervalto more accurately reflect its function. The previous name remains usable for backward compatibility. Its value is the minimum amount of time that must have elapsed since the last update of a changefeed's resolved timestamp before it is eligible to be updated again. With the default of0s, no minimum interval is enforced, though updates are still limited by the average time needed to checkpoint progress. #138673Renamed
changefeed.frontier_highwater_lag_checkpoint_thresholdtochangefeed.span_checkpoint.lag_threshold. The previous name is still available for backward compatibility. #139064
Additional setting changes
Internal scans are now exempt from the
sql.defaults.disallow_full_table_scans.enabledcluster setting. This allows index creation even when the setting is enabled. #137681When
server.redact_sensitive_settings.enabledistrue, the same redaction logic for Sensitive cluster settings that is used forSHOW CLUSTER SETTINGSnow applies to the DB Console Cluster Settings page. #139277Removed cluster setting
kv.rangefeed.scheduler.enabled. The rangefeed scheduler is now unconditionally enabled. #132825Removed cluster setting
sql.auth.resolve_membership_single_scan.enabled. This was added in case it was necessary to revert back to the previous behavior for looking up role memberships, but this cluster setting has not been needed in practice since this was added in v23.1. #135852
Deprecations
The following deprecations are announced in v25.1.
- The old
BACKUP TO,RESTORE FROM <collectionURI>, andSHOW BACKUP IN <collectionURI>syntaxes are now fully deprecated and no longer usable. #133610
Known limitations
For information about new and unresolved limitations in CockroachDB v25.1, with suggested workarounds where applicable, refer to Known Limitations.
Additional resources
| Resource | Topic | Description |
|---|---|---|
| Cockroach University | Introduction to Distributed SQL and CockroachDB | This course introduces the core concepts behind distributed SQL databases and describes how CockroachDB fits into this landscape. You will learn what differentiates CockroachDB from both legacy SQL and NoSQL databases and how CockroachDB ensures consistent transactions without sacrificing scale and resiliency. You'll learn about CockroachDB's seamless horizontal scalability, distributed transactions with strict ACID guarantees, and high availability and resilience. |
| Cockroach University | Practical First Steps with CockroachDB | This course will give you the tools you need to get started with CockroachDB. During the course, you will learn how to spin up a cluster, use the Admin UI to monitor cluster activity, and use SQL shell to solve a set of hands-on exercises. |
| Cockroach University | Enterprise Application Development with CockroachDB | This course is the first in a series designed to equip you with best practices for mastering application-level (client-side) transaction management in CockroachDB. We'll dive deep on common differences between CockroachDB and legacy SQL databases and help you sidestep challenges you might encounter when migrating to CockroachDB from Oracle, PostgreSQL, and MySQL. |
| Cockroach University | Building a Highly Resilient Multi-region Database using CockroachDB | This course is part of a series introducing solutions to running low-latency, highly resilient applications for data-intensive workloads on CockroachDB. In this course we focus on surviving large-scale infrastructure failures like losing an entire cloud region without losing data during recovery. We'll show you how to use CockroachDB survival goals in a multi-region cluster to implement a highly resilient database that survives node or network failures across multiple regions with zero data loss. |
| Docs | Migration Overview | This page summarizes the steps of migrating a database to CockroachDB, which include testing and updating your schema to work with CockroachDB, moving your data into CockroachDB, and testing and updating your application. |
| Docs | Architecture Overview | This page provides a starting point for understanding the architecture and design choices that enable CockroachDB's scalability and consistency capabilities. |
| Docs | SQL Feature Support | The page summarizes the standard SQL features CockroachDB supports as well as common extensions to the standard. |
| Docs | Change Data Capture Overview | This page summarizes CockroachDB's data streaming capabilities. Change data capture (CDC) provides efficient, distributed, row-level changefeeds into a configurable sink for downstream processing such as reporting, caching, or full-text indexing. |
| Docs | Backup Architecture | This page describes the backup job workflow with a high-level overview, diagrams, and more details on each phase of the job. |
v25.1.0-rc.1
Release Date: February 10, 2025
Downloads
CockroachDB v25.1.0-rc.1 is a testing release. Testing releases are intended for testing and experimentation only, and are not qualified for production environments and not eligible for support or uptime SLA commitments.
Experimental downloads are not qualified for production use and not eligible for support or uptime SLA commitments, whether they are for testing releases or production releases.
| Operating System | Architecture | Full executable | SQL-only executable |
|---|---|---|---|
| Linux | Intel | cockroach-v25.1.0-rc.1.linux-amd64.tgz (SHA256) |
cockroach-sql-v25.1.0-rc.1.linux-amd64.tgz (SHA256) |
| ARM | cockroach-v25.1.0-rc.1.linux-arm64.tgz (SHA256) |
cockroach-sql-v25.1.0-rc.1.linux-arm64.tgz (SHA256) |
|
| Mac (Experimental) |
Intel | cockroach-v25.1.0-rc.1.darwin-10.9-amd64.tgz (SHA256) |
cockroach-sql-v25.1.0-rc.1.darwin-10.9-amd64.tgz (SHA256) |
| ARM | cockroach-v25.1.0-rc.1.darwin-11.0-arm64.tgz (SHA256) |
cockroach-sql-v25.1.0-rc.1.darwin-11.0-arm64.tgz (SHA256) |
|
| Windows (Experimental) |
Intel | cockroach-v25.1.0-rc.1.windows-6.2-amd64.zip (SHA256) |
cockroach-sql-v25.1.0-rc.1.windows-6.2-amd64.zip (SHA256) |
Docker image
Multi-platform images include support for both Intel and ARM. Multi-platform images do not take up additional space on your Docker host.
Within the multi-platform image, both Intel and ARM images are generally available for production use.
To download the Docker image:
docker pull cockroachdb/cockroach-unstable:v25.1.0-rc.1
Source tag
To view or download the source code for CockroachDB v25.1.0-rc.1 on Github, visit v25.1.0-rc.1 source tag.
Changelog
View a detailed changelog on GitHub: v25.1.0-beta.3...v25.1.0-rc.1
Backward-incompatible changes
The default value of the
autocommit_before_ddlsession variable is nowtrue. This will cause any schema change statement that is sent during a transaction to make the current transaction commit before executing the schema change in a separate transaction.This change is being made because CockroachDB does not have full support for multiple schema changes in a transaction, as described here.
Users who do not desire the autocommit behavior can preserve the old behavior by changing the default value of
autocommit_before_ddlwith a command such as:ALTER ROLE ALL SET autocommit_before_ddl = false;
SQL language changes
- Since v23.2, table statistics histograms have been collected for non-indexed JSON columns. Histograms are no longer collected for these columns. This reduces memory usage during table statistics collection, for both automatic and manual collection via
ANALYZEandCREATE STATISTICS. The previous behavior can be re-enabled by setting the cluster settingsql.stats.non_indexed_json_histograms.enabledtotrue. #139898 - Added the session setting
optimizer_prefer_bounded_cardinalitywhich instructs the optimizer to prefer query plans where every expression has a guaranteed upper-bound on the number of rows it will process. This may help the optimizer produce better query plans in some cases. This setting is disabled by default. #140245 - Added the session setting
optimizer_min_row_countwhich sets a lower bound on row-count estimates for relational expressions during query planning. A value of zero, which is the default, indicates no lower bound. Note that if this is set to a value greater than zero, a row count of zero can still be estimated for expressions with a cardinality of zero, e.g., for a contradictory filter. Setting this to a value higher than 0, such as 1, may yield better query plans in some cases, such as when statistics are frequently stale and inaccurate. #140245 - Fixed a bug existing only in testing releases of v25.1 that could cause unexpected errors during planning for
VALUESexpressions containing function calls with multiple overloads. #140306 - The default setting for
plan_cache_modehas been reverted toforce_custom_plan, after being changed toautoin a prior testing release. You can disregard the previous release note. #140405
Bug fixes
- Fixed a bug that could cause
SHOW TABLESand other introspection operations to encounter abatch timestamp ... must be after replica GC thresholderror. #140078 - Fixed a bug existing only in testing releases of v25.1 that could cause the creation of a PL/pgSQL routine with a CTE to fail with an error similar to:
unexpected root expression: with. #140145 - Fixed a rare bug in which a query might fail with error
could not find computed column expression for column ... in tablewhile dropping a virtual computed column from the table. This bug was introduced in v23.2.4. #139834 - Configuring replication controls on a partition name of an index that is not unique across all indexes will now correctly impact only that partition. #140293
- The Data Distribution page in Advanced Debug will no longer crash if there are
NULLvalues forraw_sql_configincrdb_internal.zones. #140609
v25.1.0-beta.3
Release Date: February 3, 2025
Downloads
CockroachDB v25.1.0-beta.3 is a testing release. Testing releases are intended for testing and experimentation only, and are not qualified for production environments and not eligible for support or uptime SLA commitments.
Experimental downloads are not qualified for production use and not eligible for support or uptime SLA commitments, whether they are for testing releases or production releases.
| Operating System | Architecture | Full executable | SQL-only executable |
|---|---|---|---|
| Linux | Intel | cockroach-v25.1.0-beta.3.linux-amd64.tgz (SHA256) |
cockroach-sql-v25.1.0-beta.3.linux-amd64.tgz (SHA256) |
| ARM | cockroach-v25.1.0-beta.3.linux-arm64.tgz (SHA256) |
cockroach-sql-v25.1.0-beta.3.linux-arm64.tgz (SHA256) |
|
| Mac (Experimental) |
Intel | cockroach-v25.1.0-beta.3.darwin-10.9-amd64.tgz (SHA256) |
cockroach-sql-v25.1.0-beta.3.darwin-10.9-amd64.tgz (SHA256) |
| ARM | cockroach-v25.1.0-beta.3.darwin-11.0-arm64.tgz (SHA256) |
cockroach-sql-v25.1.0-beta.3.darwin-11.0-arm64.tgz (SHA256) |
|
| Windows (Experimental) |
Intel | cockroach-v25.1.0-beta.3.windows-6.2-amd64.zip (SHA256) |
cockroach-sql-v25.1.0-beta.3.windows-6.2-amd64.zip (SHA256) |
Docker image
Multi-platform images include support for both Intel and ARM. Multi-platform images do not take up additional space on your Docker host.
Within the multi-platform image, both Intel and ARM images are generally available for production use.
To download the Docker image:
docker pull cockroachdb/cockroach-unstable:v25.1.0-beta.3
Source tag
To view or download the source code for CockroachDB v25.1.0-beta.3 on Github, visit v25.1.0-beta.3 source tag.
Changelog
View a detailed changelog on GitHub: v25.1.0-beta.2...v25.1.0-beta.3
Operational changes
- Reduced noise when using dynamically provisioned logging sinks. #139644
- Added new metrics for monitoring changefeed span-level checkpoint creation:
changefeed.checkpoint.create_nanos, which measures the time it takes to create a changefeed checkpoint.changefeed.checkpoint.total_bytes, which measures the total size of a changefeed checkpoint in bytes.changefeed.checkpoint.span_count, which measures the number of spans in a changefeed checkpoint. #139707
Command-line changes
- Improved the performance of the debug zip query that collects
transaction_contention_eventsdata, which reduces the chance of"memory budget exceeded"or"query execution canceled due to statement timeout"errors. #139755
Bug fixes
- Fixed a bug where sometimes activating diagnostics for SQL activity appears unresponsive, with no state or status update upon activating. Now, the status should always reflect that diagnostics are active, or that a statement bundle is downloadable. #139587
- Fixed a bug where the
plan.txtfile would be incomplete whenever CockroachDB collected a statement bundle with plan-gist-based matching. The bug had been present since the introduction of plan-gist-based matching feature in v23.1, but was partially addressed in v24.2. #139268
v25.1.0-beta.2
Release Date: January 27, 2025
Downloads
CockroachDB v25.1.0-beta.2 is a testing release. Testing releases are intended for testing and experimentation only, and are not qualified for production environments and not eligible for support or uptime SLA commitments.
Experimental downloads are not qualified for production use and not eligible for support or uptime SLA commitments, whether they are for testing releases or production releases.
| Operating System | Architecture | Full executable | SQL-only executable |
|---|---|---|---|
| Linux | Intel | cockroach-v25.1.0-beta.2.linux-amd64.tgz (SHA256) |
cockroach-sql-v25.1.0-beta.2.linux-amd64.tgz (SHA256) |
| ARM | cockroach-v25.1.0-beta.2.linux-arm64.tgz (SHA256) |
cockroach-sql-v25.1.0-beta.2.linux-arm64.tgz (SHA256) |
|
| Mac (Experimental) |
Intel | cockroach-v25.1.0-beta.2.darwin-10.9-amd64.tgz (SHA256) |
cockroach-sql-v25.1.0-beta.2.darwin-10.9-amd64.tgz (SHA256) |
| ARM | cockroach-v25.1.0-beta.2.darwin-11.0-arm64.tgz (SHA256) |
cockroach-sql-v25.1.0-beta.2.darwin-11.0-arm64.tgz (SHA256) |
|
| Windows (Experimental) |
Intel | cockroach-v25.1.0-beta.2.windows-6.2-amd64.zip (SHA256) |
cockroach-sql-v25.1.0-beta.2.windows-6.2-amd64.zip (SHA256) |
Docker image
Multi-platform images include support for both Intel and ARM. Multi-platform images do not take up additional space on your Docker host.
Within the multi-platform image, both Intel and ARM images are generally available for production use.
To download the Docker image:
docker pull cockroachdb/cockroach-unstable:v25.1.0-beta.2
Source tag
To view or download the source code for CockroachDB v25.1.0-beta.2 on Github, visit v25.1.0-beta.2 source tag.
Changelog
View a detailed changelog on GitHub: v25.1.0-beta.1...v25.1.0-beta.2
SQL language changes
DROP INDEXis now labeled a potentially unsafe SQL statement, so it can only be run when thesql_safe_updatessession variable or--safe_updatesflag is set tofalse. #139505SHOW JOBSis now based on a new mechanism for storing information about the progress and status of running jobs. #139230SHOW TENANT WITH REPLICATION STATUSnow includes aningestion_job_idcolumn that displays the ID of the Physical Cluster Replication (PCR) ingestion job. #139275
Operational changes
- Customers must pass URIs as external connections when setting up Logical Data Replication (LDR). #139506
DB Console changes
- The DB Console Cluster Settings page now uses the same redaction logic as
SHOW CLUSTER SETTINGSwhen the settingserver.redact_sensitive_settings.enabledis set totrue. #139277 - The Overload dashboard in DB Console now displays only V2 Replication Admission Control metrics and omits their previous V2 prefix. Previously, both V1 and V2 metrics were displayed. Additionally, the aggregate size of queued replication entries is now displayed. #139566
Bug fixes
- Fixed a bug where the error "batch timestamp T must be after replica GC threshold" could occur during a schema change backfill operation, and cause the schema change job to retry infinitely. Now this error is treated as permanent, and will cause the job to enter the failed state. #139251
Performance improvements
- The cluster setting
rpc.batch_stream_pool.enablednow defaults tofalse. This supersedes an earlier release note. This cluster setting is experimental and is not listed aspublic. #139481
v25.1.0-beta.1
Release Date: January 20, 2025
Downloads
CockroachDB v25.1.0-beta.1 is a testing release. Testing releases are intended for testing and experimentation only, and are not qualified for production environments and not eligible for support or uptime SLA commitments.
Experimental downloads are not qualified for production use and not eligible for support or uptime SLA commitments, whether they are for testing releases or production releases.
| Operating System | Architecture | Full executable | SQL-only executable |
|---|---|---|---|
| Linux | Intel | cockroach-v25.1.0-beta.1.linux-amd64.tgz (SHA256) |
cockroach-sql-v25.1.0-beta.1.linux-amd64.tgz (SHA256) |
| ARM | cockroach-v25.1.0-beta.1.linux-arm64.tgz (SHA256) |
cockroach-sql-v25.1.0-beta.1.linux-arm64.tgz (SHA256) |
|
| Mac (Experimental) |
Intel | cockroach-v25.1.0-beta.1.darwin-10.9-amd64.tgz (SHA256) |
cockroach-sql-v25.1.0-beta.1.darwin-10.9-amd64.tgz (SHA256) |
| ARM | cockroach-v25.1.0-beta.1.darwin-11.0-arm64.tgz (SHA256) |
cockroach-sql-v25.1.0-beta.1.darwin-11.0-arm64.tgz (SHA256) |
|
| Windows (Experimental) |
Intel | cockroach-v25.1.0-beta.1.windows-6.2-amd64.zip (SHA256) |
cockroach-sql-v25.1.0-beta.1.windows-6.2-amd64.zip (SHA256) |
Docker image
Multi-platform images include support for both Intel and ARM. Multi-platform images do not take up additional space on your Docker host.
Within the multi-platform image, both Intel and ARM images are generally available for production use.
To download the Docker image:
docker pull cockroachdb/cockroach-unstable:v25.1.0-beta.1
Source tag
To view or download the source code for CockroachDB v25.1.0-beta.1 on Github, visit v25.1.0-beta.1 source tag.
Changelog
View a detailed changelog on GitHub: v25.1.0-alpha.3...v25.1.0-beta.1
General changes
- CockroachDB binaries are no longer built with profile-guided optimization (PGO) enabled. #139092
SQL language changes
- When you run
CREATE LOGICALLY REPLICATED TABLE, you must specify one of the following options:UNIDIRECTIONAL: Sets up a unidirectional stream with fast initial scan.BIDIRECTIONAL ON {destination uri}: Sets up a bidirectional stream from the original destination to the original source. #138297
- Logical data replication (LDR) and physical cluster replication (PCR) may now use the
crdb_route=gatewayquery option to route the replication streams over a load balancer. #138697 - Updated the column name
descriptiontocommandin theSHOW LOGICAL REPLICATION JOBSresponses. #139030
Operational changes
- The
node decommissionCLI command now waits until the target node is fully drained before marking it as decommissioned. Previously, the command would initiate the drain process but not wait for its completion, leaving the target node in a state where it could not communicate with the cluster but would still accept client requests, causing them to hang or encounter unexpected errors. #138732 - The cluster setting
changefeed.frontier_highwater_lag_checkpoint_thresholdhas been renamed tochangefeed.span_checkpoint.lag_threshold. The previous name is still available for backward compatibility. #139064
Bug fixes
- Fixed a bounded memory leak that could occur when evaluating some memory-intensive queries using the vectorized engine. This leak had been present since v20.2. #138804
- Fixed a bug where columns created with
GENERATED ... BY IDENTITYwith theSERIALtype could incorrectly fail internal validations. #139084
v25.1.0-alpha.3
Release Date: January 15, 2025
Downloads
CockroachDB v25.1.0-alpha.3 is a testing release. Testing releases are intended for testing and experimentation only, and are not qualified for production environments and not eligible for support or uptime SLA commitments.
Experimental downloads are not qualified for production use and not eligible for support or uptime SLA commitments, whether they are for testing releases or production releases.
| Operating System | Architecture | Full executable | SQL-only executable |
|---|---|---|---|
| Linux | Intel | cockroach-v25.1.0-alpha.3.linux-amd64.tgz (SHA256) |
cockroach-sql-v25.1.0-alpha.3.linux-amd64.tgz (SHA256) |
| ARM | cockroach-v25.1.0-alpha.3.linux-arm64.tgz (SHA256) |
cockroach-sql-v25.1.0-alpha.3.linux-arm64.tgz (SHA256) |
|
| Mac (Experimental) |
Intel | cockroach-v25.1.0-alpha.3.darwin-10.9-amd64.tgz (SHA256) |
cockroach-sql-v25.1.0-alpha.3.darwin-10.9-amd64.tgz (SHA256) |
| ARM | cockroach-v25.1.0-alpha.3.darwin-11.0-arm64.tgz (SHA256) |
cockroach-sql-v25.1.0-alpha.3.darwin-11.0-arm64.tgz (SHA256) |
|
| Windows (Experimental) |
Intel | cockroach-v25.1.0-alpha.3.windows-6.2-amd64.zip (SHA256) |
cockroach-sql-v25.1.0-alpha.3.windows-6.2-amd64.zip (SHA256) |
Docker image
Multi-platform images include support for both Intel and ARM. Multi-platform images do not take up additional space on your Docker host.
Within the multi-platform image, both Intel and ARM images are generally available for production use.
To download the Docker image:
docker pull cockroachdb/cockroach-unstable:v25.1.0-alpha.3
Source tag
To view or download the source code for CockroachDB v25.1.0-alpha.3 on Github, visit v25.1.0-alpha.3 source tag.
Changelog
View a detailed changelog on GitHub: v25.1.0-alpha.2...v25.1.0-alpha.3
Backward-incompatible changes
- Several metrics are redundant and have been removed. The following list maps each removed metric to an existing, identical metric. #138786
- Removed
sql.schema_changer.running, which is redundant withjobs.schema_change.currently_running. - Removed
sql.schema_changer.successes, which is redundant withjobs.schema_change.resume_completed. - Removed
sql.schema_changer.retry_errors, which is redundant withjobs.schema_change.resume_retry_error. - Removed
sql.schema_changer.permanent_errors, which is redundant withjobs.schema_change.resume_failed.
- Removed
General changes
- When changefeeds are created with a resolved option lower than the
min_checkpoint_frequencyoption, a notice is now printed, since this may lead to unexpected behavior. #138181 - CockroachDB binaries are now built with profile-guided optimization (PGO) enabled. #138700
SQL language changes
- Users can now always see and control (pause/resume/cancel) jobs that they own. #138178
- CockroachDB now provides different options for
CREATE LOGICALLY REPLICATED TABLE:UNIDIRECTIONALandBIDIRECTIONAL ON. These options are used forCREATE LOGICALLY REPLICATED TABLE, but notCREATE LOGICAL REPLICATION STREAM. #138244 CHANGEFEEDs using named external connections now automatically update their configuration when the connection configuration changes. #138237- Added support for
DOstatements embedded within PL/pgSQL routines and otherDOstatements.DOstatements execute a block of code inline as an anonymous function. Currently, only a PL/pgSQL body is allowed. #138709 - Added support for
DOstatements in SQL, which allow a PL/pgSQL code block to be executed inline. #138709
Operational changes
- If a row-level TTL job is scheduled to run and the previous scheduled job for that table is still running, the scheduled run will now be skipped rather than waiting for the previous job to complete. #138336
- Schema object identifiers (e.g., database names, schema names, table names, and function names) are no longer redacted when logging statements in the
EXECorSQL_SCHEMAchannels. If redaction of these names is required, then the new cluster settingsql.log.redact_names.enabledcan be set totrue. The default value of the setting isfalse. #136897 - Object identifiers such as table names, schema names, function names, and type names are no longer redacted in the
SQL_SCHEMAlog channel. #136897 - Changed the default value of the cluster setting
admission.l0_file_count_overload_thresholdto4000. #138699 - Introduced a metric,
sql.schema_changer.object_count, that counts the number of schema objects in the cluster. #138786 - Renamed the
changefeed.min_highwater_advancecluster setting tochangefeed.resolved_timestamp.min_update_intervalto more accurately reflect its function. Its description in the automatically generated documentation has also been updated. The previous name remains usable for backward compatibility. #138673
DB Console changes
- Added a
/debug/pprof/fgprofendpoint to capture off-CPU stack traces. Use of this endpoint will have a noticeable impact on performance while the endpoint is being triggered. #138779
Bug fixes
- In the v2 Databases > Table page, the
CREATEstatement will now show up as expected for tables with custom schema names. #138294 - Fixed issues with the virtual index scan on
crdb_internal.create_type_statements, ensuring consistent results when querying user-defined types (UDTs) across databases. #138295 - Queries that perform a cast from the string representation of an array containing geometry or geography types to a SQL array type will now succeed. #138557
Fixed a bug that disregarded tuple labels in some cases. This could cause unexpected behavior, such as when converting a tuple to JSON with
to_jsonb. See #136167 for more details. This incorrect removal of tuple labels bug was introduced in v22.1.0, and changes in v24.3.0 made unexpected behavior due to the bug more likely. #138791Fixed a bug where locks were taken on the system tables
system.usersandsystem.role_optionseven whenallow_role_memberships_to_change_during_transactionwas set. Now, users are able to create and drop users quickly whenallow_role_memberships_to_change_during_transactionis set, even if there are contending transactions onsystem.usersandsystem.role_options. #137940
v25.1.0-alpha.2
Release Date: January 9, 2025
Downloads
CockroachDB v25.1.0-alpha.2 is a testing release. Testing releases are intended for testing and experimentation only, and are not qualified for production environments and not eligible for support or uptime SLA commitments.
Experimental downloads are not qualified for production use and not eligible for support or uptime SLA commitments, whether they are for testing releases or production releases.
| Operating System | Architecture | Full executable | SQL-only executable |
|---|---|---|---|
| Linux | Intel | cockroach-v25.1.0-alpha.2.linux-amd64.tgz (SHA256) |
cockroach-sql-v25.1.0-alpha.2.linux-amd64.tgz (SHA256) |
| ARM | cockroach-v25.1.0-alpha.2.linux-arm64.tgz (SHA256) |
cockroach-sql-v25.1.0-alpha.2.linux-arm64.tgz (SHA256) |
|
| Mac (Experimental) |
Intel | cockroach-v25.1.0-alpha.2.darwin-10.9-amd64.tgz (SHA256) |
cockroach-sql-v25.1.0-alpha.2.darwin-10.9-amd64.tgz (SHA256) |
| ARM | cockroach-v25.1.0-alpha.2.darwin-11.0-arm64.tgz (SHA256) |
cockroach-sql-v25.1.0-alpha.2.darwin-11.0-arm64.tgz (SHA256) |
|
| Windows (Experimental) |
Intel | cockroach-v25.1.0-alpha.2.windows-6.2-amd64.zip (SHA256) |
cockroach-sql-v25.1.0-alpha.2.windows-6.2-amd64.zip (SHA256) |
Docker image
Multi-platform images include support for both Intel and ARM. Multi-platform images do not take up additional space on your Docker host.
Within the multi-platform image, both Intel and ARM images are generally available for production use.
To download the Docker image:
docker pull cockroachdb/cockroach-unstable:v25.1.0-alpha.2
Source tag
To view or download the source code for CockroachDB v25.1.0-alpha.2 on Github, visit v25.1.0-alpha.2 source tag.
Changelog
View a detailed changelog on GitHub: v25.1.0-alpha.1...v25.1.0-alpha.2
Backward-incompatible changes
- Altering a paused backup schedule's recurrence or location no longer resumes the schedule. #134829
BACKUP/RESTOREstatements no longer return index entries and bytes backed up/restored. #134516
General changes
- The PTS (protected timestamp) records of running changefeeds are now updated when the set of targets changes, such as when system tables are added to the protected tables list. #137548
SQL language changes
- DistSQL physical planning decisions under
distsql=automode have been adjusted as follows:- Aggregation and general sort operations that process a small number of rows (fewer than
1000by default, configurable via thedistribute_group_by_row_count_thresholdanddistribute_sort_row_count_thresholdsession variables for aggregations and sorts, respectively) no longer force the plan distribution. - The top K sort over a large set of rows (
1000by default, controlled via thedistribute_sort_row_count_thresholdsession variable) will now force the plan distribution. - Full table scans estimated to read a certain number of rows (fewer than
10000by default, controlled via the newdistribute_scan_row_count_thresholdsession variable) no longer force the plan distribution. - The new
always_distribute_full_scanssession variable now defaults totrueto match the previous behavior of always distributing full scans. - Large constrained table scans estimated to read a certain number of rows (at least
10000by default, controlled via thedistribute_scan_row_count_thresholdsession variable) will now force the plan distribution. #137072 - Hash and merge joins for which both inputs produce a small number of rows (less than
1000combined by default, configurable via thedistribute_join_row_count_thresholdsession variable) no longer force the plan distribution. #137562
- Aggregation and general sort operations that process a small number of rows (fewer than
DELETEstatements now acquire locks using theFOR UPDATElocking mode during their initial row scan in some cases, which improves performance for contended workloads. This behavior is configurable using theenable_implicit_select_for_updatesession variable. #137069- Added support for
RETURNS TABLEsyntax when creating a user-defined function (UDF). #137251 - Added support for XA transactions, which allow CockroachDB to participate in distributed transactions with other resources (e.g., databases, message queues, etc.) using a two-phase commit protocol. #129448
- Added the
legacy_varchar_typingsession setting, which reverts the changes of #133037 that causes the change in typing behavior described in #137837. Specifically, it makes type-checking and overload resolution ignore the newly added "unpreferred" overloads. This setting defaults tooff. #137844 - Added support for a new index hint,
AVOID_FULL_SCAN, which will prevent the optimizer from planning a full scan for the specified table if any other plan is possible. The hint can be used in the same way as other existing index hints. For example,SELECT * FROM table_name@{AVOID_FULL_SCAN};. This hint is similar toNO_FULL_SCAN, but will not error if a full scan cannot be avoided. Note that a full scan of a partial index would not normally be considered a "full scan" for the purposes of theAVOID_FULL_SCANandNO_FULL_SCANhints, but if the user has explicitly forced the partial index viaFORCE_INDEX=index_name, it is considered a full scan. #137984 - Added a new session setting
avoid_full_table_scans_in_mutations, which when set totrue(default), causes the optimizer to avoid planning full table scans for mutation queries if any other plan is possible. #137984 ALTER JOB ... OWNER TOcan now be used to transfer ownership of a job between users/roles. #138139
Operational changes
- Added a new
sql.exec.latency.detailhistogram metric. This metric is labeled with its statement fingerprint. Enable this feature using thesql.stats.detailed_latency_metrics.enabledapplication setting. For workloads with over a couple thousand fingerprints, we advise caution in enablingsql.stats.detailed_latency_metrics.enabled. For most workloads, this ranges from dozens to hundreds. Use the newsql.query.unique.countcount metric to estimate the cardinality of the set of all statement fingerprints. #135924 - Added a new configurable cluster setting
kv.transaction.max_intents_and_locksthat prevents transactions from creating too many intents. #135945 - Added the metric
txn.count_limit_rejected, which tracks the KV transactions that have been aborted because they exceeded the max number of writes and locking reads allowed. #135945 - Added the metric
txn.count_limit_on_response, which tracks the number of KV transactions that have exceeded the count limit on a response. #135945 - Cluster setting
kvadmission.store.snapshot_ingest_bandwidth_control.enabledis nowtrueby default. This will enable disk-bandwidth-based admission control for range snapshot ingests. It requires the provisioned bandwidth to be set usingkvadmission.store.provisioned_bandwidth. #137618 - The
changefeed.max_behind_nanosmetric now supports scoping with metric labels. #137534
Command-line changes
- Previously, the
--include-filesand--exclude-filesfile filters incockroach debug ziponly applied to heap profiles, CPU profiles, goroutines, and logs. The filters now apply to most of the cluster-wide and per-node data captured in the debug zip. This improvesdebug zipperformance. Example command:cockroach debug zip debug.zip --redact --insecure --include-files="*" --exclude-files="*.log". #136098
DB Console changes
- Copy-pasting links to preset timescale views on the DB Console Metrics page now reflects those presets accurately (e.g., a URL looking at "last 6 hours" will always show the last 6 hours and update automatically). Clicking the Now button on the Metrics page will automatically select the live updating preset most closely matching the current inverval. If you are viewing an arbitrary 4-hour interval, the "last 6 hours" preset will be selected. #136170
Bug fixes
- Fixed a bug that caused queries against tables with user-defined types to sometimes fail with errors after restoring those tables. #137242
REGIONAL BY ROWtables with uniqueness constraints where the region is not part of those uniqueness constraints, and which also contain non-unique indexes, will now have that uniqueness properly enforced when modified underREAD COMMITTEDisolation. This bug was introduced in v24.3.0. #137361- Fixed a bug existing since v24.1 that would cause a set-returning UDF with
OUTparameters to return a single row. #137251 - Previously, if a
STOREDcomputed column was added and it was a fixed-size type such asVARCHAR(2), the computed values would not be checked to make sure they were not too large for the type. Now this validation is performed, which prevents an invalid computed column definition from being added to a table. #137299 - Previously, if a
VIRTUALcomputed column was added and it was a fixed-size type such asVARCHAR(2), the computed values would not be checked to make sure they were not too large for the type. Now this validation is performed, which prevents an invalid computed column definition from being added to a table. #137299 - Removed duplicate columns in the Parquet output from changefeeds using CDC queries. #136718
- Addressed a potential memory leak when parsing client session parameters for new connections. #137627
- Fixed an issue where adding an existing column with the
IF NOT EXISTSoption could exit too early, skipping necessary handling of the abstract syntax tree (AST). This could cause theALTER TABLE ... ADD COLUMNstatement to fail. #137633 - Fixed an issue where a schema change could incorrectly cause a changefeed to fail with an assertion error like
received boundary timestamp ... of type ... before reaching existing boundary of type .... #137567 - Internal scans are now exempt from the
sql.defaults.disallow_full_table_scans.enabledcluster setting. This allows index creation even when the setting is enabled. #137681 - Fixed a bug that would cause an internal error when the result of a
RECORD-returningUDFwas wrapped by another expression (such asCOALESCE) within aVALUESclause. #129706 CLOSE CURSORstatements are now allowed in read-only transactions, similar to PostgreSQL. The bug has been present since at least v23.1. #137744- Fixed a bug where querying the
pg_catalog.pg_constrainttable while the schema changer was dropping a constraint could result in a query error. #137860 - Fixed a timing issue between
ALTER VIEW ... RENAMEandDROP VIEWthat caused repeated failures in theDROP VIEWjob. #137868 - The
pg_catalog.pg_typetable no longer containsNULLvalues for the columnstypinput,typoutput,typreceive, andtypsend.NULLvalues were erroneously added for these columns for thetriggertype in v24.3.0. This could cause unexpected errors with some client libraries. #137928 ALTER BACKUP SCHEDULEno longer fails on schedules whose collection URI contains a space. #137948- Previously in some cases, CockroachDB could encounter an internal error
comparison of two different versions of enumwhen a user-defined type was modified within a transaction and the following statements read the column of that user-defined type. The bug was introduced in v24.2 and is now fixed. #137960 - Previously
SHOW CREATE TABLEwas showing incorrect data with regard to inverted indexes. It now shows the correct data that can be repeatedly entered back into CockroachDB to recreate the same table. #138043 - Resolved an issue in the Kafka sink configuration within CockroachDB, where users were previously unable to set negative GZIP compression levels. Now, users can configure the
CompressionLevelfor the Kafka sink in the range of[-2, 9]. #137646 - Users should no longer see console errors when visiting the Databases page directly after node/SQL pod startup. #137993
Performance improvements
- The default value of cluster setting
kvadmission.flow_control.modehas been changed fromapply_to_elastictoapply_to_all. Regular writes are now subject to admission control by default, meaning that non-quorum required replicas may not be told about new writes from the leader if they are unable to keep up. This brings a large performance improvement during instances where there is a large backlog of replication work towards a subset of node(s), such as node restarts. The setting can be reverted to the v24.3 and earlier default by settingkvadmission.flow_control.modetoapply_to_elastic. #133860
v25.1.0-alpha.1
Release Date: December 19, 2024
Downloads
CockroachDB v25.1.0-alpha.1 is a testing release. Testing releases are intended for testing and experimentation only, and are not qualified for production environments and not eligible for support or uptime SLA commitments.
Experimental downloads are not qualified for production use and not eligible for support or uptime SLA commitments, whether they are for testing releases or production releases.
| Operating System | Architecture | Full executable | SQL-only executable |
|---|---|---|---|
| Linux | Intel | cockroach-v25.1.0-alpha.1.linux-amd64.tgz (SHA256) |
cockroach-sql-v25.1.0-alpha.1.linux-amd64.tgz (SHA256) |
| ARM | cockroach-v25.1.0-alpha.1.linux-arm64.tgz (SHA256) |
cockroach-sql-v25.1.0-alpha.1.linux-arm64.tgz (SHA256) |
|
| Mac (Experimental) |
Intel | cockroach-v25.1.0-alpha.1.darwin-10.9-amd64.tgz (SHA256) |
cockroach-sql-v25.1.0-alpha.1.darwin-10.9-amd64.tgz (SHA256) |
| ARM | cockroach-v25.1.0-alpha.1.darwin-11.0-arm64.tgz (SHA256) |
cockroach-sql-v25.1.0-alpha.1.darwin-11.0-arm64.tgz (SHA256) |
|
| Windows (Experimental) |
Intel | cockroach-v25.1.0-alpha.1.windows-6.2-amd64.zip (SHA256) |
cockroach-sql-v25.1.0-alpha.1.windows-6.2-amd64.zip (SHA256) |
Docker image
Multi-platform images include support for both Intel and ARM. Multi-platform images do not take up additional space on your Docker host.
Within the multi-platform image, both Intel and ARM images are generally available for production use.
To download the Docker image:
docker pull cockroachdb/cockroach-unstable:v25.1.0-alpha.1
Source tag
To view or download the source code for CockroachDB v25.1.0-alpha.1 on Github, visit v25.1.0-alpha.1 source tag.
Backward-incompatible changes
- The old
BACKUP TO,RESTORE FROM <collectionURI>, andSHOW BACKUP IN <collectionURI>syntaxes are now fully deprecated and no longer usable. #133610
Security updates
- Added support for partial roles from LDAP synced group to be mapped to CockroachDB roles and ensure appropriate erroring for undesired behavior. #135552
General changes
- To improve the granularity of changefeed pipeline metrics, the changefeed metrics
changefeed.admit_latencyandchangefeed.commit_latencynow have histogram buckets from5msto60m(previously500msto5m). The following changefeed metrics now have histogram buckets from5msto10m(previously500msto5m):changefeed.parallel_io_queue_nanoschangefeed.parallel_io_result_queue_nanoschangefeed.sink_batch_hist_nanoschangefeed.flush_hist_nanoschangefeed.kafka_throttling_hist_nanos#136265
- Added support for multiple seed brokers in the new Kafka sink. #136632
- Added the new metric
distsender.rangefeed.catchup_ranges_waiting_client_sidethat counts how many rangefeeds are waiting on the client-side limiter to start performing catchup scans. #136741 - Added
system.usersto the list of system tables that changefeeds protect with protected timestamps. This table is required for change data capture queries. #133568 - Added the
AWS_USE_PATH_STYLEparameter to S3 URI parsing. #136715
SQL language changes
- Two new builtin functions,
crdb_internal.{lease_holder, range_stats}_with_errors, include errors encountered while fetching leaseholder and range stats. These new builtins are used by thecrdb_internal.rangestable, which includes a new column,errors, that combines the errors from the builtins. #131232 - The cluster setting
sql.stats.automatic_partial_collection.enabledis now enabled by default, which enables automatic collection of partial table stats. Partial table stats (i.e., those created withCREATE STATISTICS ... USING EXTREMES) scan the lower and upper ends of indexes to collect statistics outside the range covered by the previous full statistics collection. #133988 - When triggers fire one another cyclically, the new
recursion_depth_limitsession variable now limits the depth of the recursion. By default, the limit is1000nested trigger executions. #134498 - The names of
BEFOREtriggers fired by a mutation now show up in theEXPLAINoutput. The trigger-function invocations are visible in the output of verboseEXPLAIN. #135556 AFTERtriggers will now show up in the output ofEXPLAIN, as well asEXPLAIN ANALYZE. #135556- Added support for
SHOW TRIGGERS, which displays the names of all triggers on a table, as well as whether each trigger is enabled. The user must have any privilege on the table, or be its owner. #135778 - Added support for
SHOW CREATE TRIGGER, which displays theCREATEstatement for a trigger. The user must have any privilege on the table, or be its owner. #135778 - Added an informational notice to the result of
CREATE TABLE ... ASstatements that describes that indexes and constraints are not copied to the new table. #135845 - Altering a column’s type no longer requires enabling the
enable_experimental_alter_column_type_generalsession variable. This change makes the feature generally available. #135936 - Added support for
COLLATEexpressions on arrays of strings to match PostgreSQL more closely. #133751 - Added the column
readable_high_water_timestampto the output ofSHOW CHANGEFEED JOBS. This human-readable form will be easier to consume.high_water_timestampstill exists and is in epoch nanoseconds. #135623 - The
sql_safe_updatessession variable must be disabled to performALTER COLUMN TYPEoperations that require a column rewrite. #136110 - Added the
CREATE LOGICALLY REPLICATEDsyntax that will direct logical data replication jobs to create the destination table(s) using a copy of the source table(s). #136841 - It is now possible to execute queries with correlated joins with sub-queries or common table expressions in both the
INNERandOUTERcontext. Errors with the following message:unimplemented: apply joins with subqueries in the "inner" and "outer" contexts are not supportedwill no longer occur. #136506 - It is now possible to include a common table expression within the body of a user-defined function or stored procedure. #136506
- Updated the column name
targetstotablesin theSHOW LOGICAL REPLICATION JOBSresponses. #134339
Operational changes
- Retired the cluster setting
kv.rangefeed.scheduler.enabled. The rangefeed scheduler is now unconditionally enabled. #132825 - Added the cluster setting
ui.database_locality_metadata.enabledthat allows operators to disable loading extended database and table region information in the DB Console Database and Table pages. This information can cause significant CPU load on large clusters with many ranges. Versions of this page from v24.3 and later do not have this problem. If customers require this data, they can use theSHOW RANGES FROM {DATABASE| TABLE}query via SQL to compute on-demand. #133075 - The metrics scrape HTTP endpoint at
/ _status/varswill now truncateHELPtext at the first sentence, reducing the metadata for metrics with large descriptions. Descriptions are still accessible in the documentation. #134724 - The row-level TTL job will now periodically update the progress meter in the jobs introspection interfaces, including
SHOW JOBSand the Jobs page in the DB console. #135142 - The
kv.bulk_io_write.min_capacity_remaining_fractioncluster setting can be be set between0.04and0.3. #135779 - Added two new metrics,
sql.distsql.select.distributed_exec.countandsql.distsql.select.distributed_exec.count.internal. These metrics count the number ofSELECTstatements that actually execute with full or partial distribution. These metrics differ fromsql.distsql.select.countandsql.distsql.select.count.internalin that the latter count the number ofSELECTstatements that are planned with full or partial distribution, but might not necessarily execute with full or partial distribution, depending on the location of data. #135236 - Added the new metric
sql.distsql.distributed_exec.countthat counts the number of invocations of the execution engine with full or partial distribution. (This is in contrast tosql.distsql.queries.total, which counts the total number of invocations of the execution engine.) #135236 - Added some clarification that the following metrics count invocations of the execution engine and not SQL queries (which could each result in multiple invocations of the execution engine):
sql.distsql.queries.activesql.distsql.queries.totalsql.distsql.distributed_exec.count#135236
- The default value for the cluster setting
trace.span_registry.enabledhas been changed fromtruetofalse. #135682 - Removed the
sql.auth.resolve_membership_single_scan.enabledcluster setting. This was added in case it was necessary to revert back to the previous behavior for looking up role memberships, but this cluster setting has not been needed in practice since this was added in v23.1. #135852 - Telemetry delivery is now considered successful even in cases where CockroachDB experiences a network timeout. This will prevent throttling in cases outside an operator's control. #136219
- When a schema change job is completed, rolls back, or encounters a failure, the time taken since the job began is now logged in a structured log in the
SQL_SCHEMAlog channel. #136899
DB Console changes
- As of v25.1 the legacy Database page, which was previously available through the Advanced Debug page, is no longer available. #134005
- When activating statement diagnostics in the DB Console, users now have the option to produce a redacted bundle as output. This bundle will omit sensitive data. #134723
- Fixed a list of UI bugs on the DB Console Overview and Node Overview pages. #135293
- Removed the link for the legacy table page on the Plan Details page. #136311
- Changed the table and index contents of the Hot Ranges page in DB console. #134106
Bug fixes
- Fixed a bug that prevented the
CREATEstatement for a routine from being shown in a statement bundle. This happened when the routine was created on a schema other thanpublic. The bug has existed since v23.1. #132147 - Reduced the duration of partitions in the gossip network when a node crashes in order to eliminate false positives in the
ranges.unavailablemetric. #133300 - Fixed a bug that caused incorrect evaluation of some binary expressions involving
CHAR(N)values and untyped string literals with trailing whitespace characters. For example, the expression'f'::CHAR = 'f 'now correctly evaluates totrue. #133037 - Fixed a race condition in Sarama when Kafka throttling is enabled. #133563
- Fixed a metrics bug in rangefeed restarts introduced in v23.2. #133947
- Fixed a bug that could result in incorrect metrics related to retryable rangefeed errors. #133991
- Fixed a bug that could cause
DELETEtriggers not to fire on cascadingDELETE, and which could causeINSERTtriggers to match incorrectly in the same scenario. #134759 - Non-
adminusers that runDROP ROLE IF EXISTSon a user that does not exist will no longer receive an error message. #134850 - Fixed a bug where CockroachDB would encounter an internal error when evaluating
FETCH ABSOLUTE 0statements. The bug had been present since v22.1. #134919 - Fixed a bug that could cause incorrect query results when the optimizer planned a lookup join on an index containing a column of type
CHAR(N),VARCHAR(N),BIT(N),VARBIT(N), orDECIMAL(M, N), and the query held that column constant to a single value (e.g., with an equality filter). #134891 - Fixed a bug that prevented restoring cluster backups taken in a multi-region cluster that had configured the
systemdatabase with a region configuration into a non-multi-region cluster. #134604 - Fixed an unhandled error that would occur if
DROP SCHEMAwas executed on thepublicschema of thesystemdatabase, or on an internal schema likepg_catalogorinformation_schema. #135149 ALTER DATABASEoperations no longer hang when the operation modifies the zone config if an invalid zone config already exists. #135168- CockroachDB now correctly evaluates
percentile_contandpercentile_discaggregates overFLOAT4values. #135130 - The schema changer's backfill process now includes a retry mechanism that reduces the batch size when memory issues occur. This improves the likelihood of operation success without requiring manual adjustment of the
bulko.index_backfill.batch_sizecluster setting. #135563 CREATE SCHEMAnow returns the correct error if a the schema name is missing. #135910- Fixed an issue where corrupted table statistics could cause the
cockroachprocess to crash. #135944 - Table statistics collection in CockroachDB could previously run into
no bytes in account to releaseerrors in some edge cases (when the SQL memory budget, configured via--max-sql-memoryflag, was close to being exhausted). The bug has been present since v21.2 and is now fixed. #135970 security.certificate.*metrics will now be updated if a node loads new certificates while running. #135596- A table that is participating in logical data replication can no longer be dropped. Previously, this was allowed, which would cause all the replicated rows to end up in the dead-letter queue. #136172
ALTER COLUMN SET NOT NULLwas not enforced consistently when the table was created in the same transaction. #136298CREATErelation / type could leave dangling namespace entries if the schema was concurrently being dropped. #136325- The
idle_in_session_timeoutsession variable now excludes the time spent waiting for schema changer jobs to complete, preventing unintended session termination during schema change operations. #136463 - Fixed a bug that causes the optimizer to use stale table statistics after altering an
ENUMtype used in the table. #136538 - CockroachDB now better respects the
statement_timeoutlimit on queries involving the top K sort and merge join operations. #136631 - Fixed a bug that would cause the
make_timestampandmake_timestamptzbuiltin functions to incorrectly extract thesecondsargument if the value was less than1. #136804 - Fixed possible index corruption caused by triggers that could occur when the following conditions were satisfied:
- A query calls a user-defined function or stored procedure, and also performs a mutation on a table.
- The user-defined function or storage procedure contains a statement that either fires an
AFTERtrigger, or fires aCASCADEthat itself fires a trigger. - The trigger modifies the same row as the outer statement.
- Either the outer or inner mutation is something other than an
INSERTwithout anON CONFLICTclause. #136076
- Fixed an issue where license enforcement was not consistently disabled for single-node clusters started with
cockroach start-single-node, ensuring proper behavior on cluster restarts. #136926 - Fixed a bug that caused an incorrect filesystem to be logged as part of the store information. #137024
Performance improvements
- The
/_status/nodes_uiAPI no longer returns unnecessary metrics in its response. This decreases the payload size of the API and improves the load time of various DB Console pages and components. #135186 - Performance for some PL/pgSQL loops is now significantly improved, by as much as 3–4 times. This is due to applying tail-call optimization in more cases to the recursive sub-routines that implement loops. #135145
- Improved the internal caching logic for role membership information. This reduces the latency impact of commands such as
DROP ROLE,CREATE ROLE, andGRANT role TO user, which cause the role membership cache to be invalidated. #135852 - The session variable
plan_cache_modenow defaults toauto, enabling generic query plans for some queries. #135668- This change is reverted in v25.1.0-rc.1, so this note can be disregarded when running the latest testing release and v25.1 production releases, unless otherwise noted.
- GRPC streams are now pooled across unary intra-cluster RPCs, allowing for reuse of gRPC resources to reduce the cost of remote key-value layer access. This pooling can be disabled using the
rpc.batch_stream_pool.enabledcluster setting. #136648- This information was updated in the v25.1.0-beta.2 release notes.
Multi-tenancy
- The
nodesendpoint should work forsharedsecondary tenants. Since nodes are common to all the tenants, this API endpoint behaves similarly to the system tenant's endpoint. #131644
Please select a star rating above.
Tell us about your experience
Please attach a screenshot of the area where you encountered the problem.
Thank you for your feedback!
Your input helps us improve our documentation.