Nov 13, 2017
Get future release notes emailed to you:
Downloads
Backwards-Incompatible Changes
Redefined
NaN
comparisons to be compatible with PostgreSQL.NaN
is now equal to itself and sorts before all other non-NULL values. #19144It is no longer possible to drop a user with grants; the user's grants must first be revoked. #19095
Build Changes
Fixed compilation on the 64-bit ARM architecture. #19795
NodeJS 6+ and Yarn 1.0+ are now required to build CockroachDB. #18349
SQL Language Changes
SHOW GRANTS
(no user specified) andSHOW GRANTS FOR <user>
are now supported. The former lists all grants for all users on all databases and tables; the latter does so for a specified user. #19095SHOW GRANTS
statements now report the database name for tables. #19095CREATE USER
statements are no longer included in the results ofSHOW QUERIES
statements. #19095The new
ALTER USER ... WITH PASSWORD ...
statement can be used to change a user's password. #19095CREATE USER IF NOT EXISTS
is now supported. #19095New foreign key constraints without an action specified for
ON DELETE
orON UPDATE
now default toNO ACTION
, and existing foreign key constraints are now considered to have bothON UPDATE
andON DELETE
actions set toNO ACTION
even ifRESTRICT
was specified at the time of creation. To set an existing foreign key constraint's action toRESTRICT
, the constraint must be dropped and recreated.Note that
NO ACTION
andRESTRICT
are currently equivalent and will remain so until options for deferring constraint checking are added. #19416Added more columns to
information_schema.table_constraints
. #19466
Command-Line Interface Changes
- On node startup, the location for temporary files, as defined by the
--temp-dir
flag, is printed to the standard output. #19272
Admin UI Changes
- Decommissioned nodes no longer cause warnings about staggered versions. #19547
Bug Fixes
Fixed a bug causing redundant log messages when running
SHOW TRACE FOR
. #19468DROP INDEX IF EXISTS
now behaves properly when not usingtable@idx
syntax. #19390Fixed a double close of the merge joiner output. #19794
Fixed a panic caused by placeholders in
PREPARE
statements. #19636Improved error messages about Raft progress in the replicate queue. #19593
The
cockroach dump
command now properly supportsARRAY
values. #19498Fixed range splitting to work when the first row of a range is larger than half the configured range size. #19339
Reduced unnecessary log messages when a cluster becomes temporarily unbalanced, for example, when a new node joins. #19494
Using
DELETE
withoutWHERE
andRETURNING
inside[...]
no longer causes a panic. #19822SQL comparisons using the
ANY
,SOME
, orALL
operators with sub-queries and cast expressions work properly again. #19801On macOS, the built-in SQL shell (
cockroach sql
) once again properly supports window resizing and suspend-to-background. #19429Silenced an overly verbose log message. #19504
Fixed a bug preventing large, distributed queries that overflow onto disk from completing. #19689
It is not possible to
EXECUTE
inside ofPREPARE
statements or alongside otherEXECUTE
statements; attempting to do so no longer causes a panic. #19809 #19720The admin UI now works when a different
--advertise-host
is used. #19426An improperly typed subquery used with
IN
no longer panics. #19858It is now possible to
RESTORE
using an incrementalBACKUP
taken after a table was dropped. #19601Fixed an always-disabled crash reporting setting. #19554
Prevented occasional crashes when the server is shut down during startup. #19591
Prevented a potential Gossip deadlock on cluster startup. #19493
Improved error handling during splits. #19448
Some I/O errors now cause the server to shut down. #19447
Improved resiliency to S3 quota limits by retrying some operations during
BACKUP
/RESTORE
/IMPORT
Executing
TRUNCATE
on a table with self-referential foreign key constraints no longer creates broken foreign key backward references. #19322
Performance Improvements
Improved memory usage for certain queries that use limits at multiple levels. #19682
Eliminated some redundant Raft messages, improving write performance for some workloads by up to 30%. #19540
Trimmed the wire size of various RPCs. #18930
Table leases are now acquired in the background when frequently used, removing a jump in latency when they expire. #19005
Enterprise Edition Changes
When an enterprise
RESTORE
fails or is canceled, partially restored data is now properly cleaned up. #19578Added a placeholder during long-running
BACKUP
andIMPORT
jobs to protect against accidentally using it by concurrent operations. #19713
Doc Updates
- New RFCs:
- Documented how to increase the system-wide file descriptors limit on Linux. #2139
- Clarified that multiple transaction options in a single
SET TRANSACTION
statement can be space-separated as well as comma-separated. #2139 - Added
e'\\x
to the list of supported hexadecimal-encoded byte array literals formats. #2134 - Clarified the FAQ on auto-generating unique row IDs. #2128
- Corrected the aliases and allowed widths of various
INT
types. #2116 - Corrected the description of the
--host
flag in our insecure cloud deployment tutorials. #2117 - Minor improvements to the CockroachDB Architecture Overview page. #2103 #2104 #2105