title | toc | summary |
---|---|---|
What's New in beta-20160519 |
false |
Additions and changes in CockroachDB version beta-20160519. |
Get future release notes emailed to you:
<script>
hbspt.forms.create({
css: '',
cssClass: 'install-form',
portalId: '1753393',
formId: '39686297-81d2-45e7-a73f-55a596a8d5ff',
formInstanceId: 1,
target: '.install-form-1'
});
</script>
TIMESTAMP
values are now truncated to microsecond resolution when sent over the network for compatibility with the PostgreSQL protocol. Theformat_timestamp_ns(ts)
orextract(nanosecond from ts)
functions can be used to access the full nanosecond precision of a timestamp. Thenow()
,current_timestamp()
, andstatement_timestamp()
functions are truncated to microsecond resolution to avoid confusion when timestamp values are used in unique indexes; the newcurrent_timestamp_ns()
function can be used to get a non-truncated timestamp. #6604
DO NOTHING
is now supported inINSERT ... ON CONFLICT
statements. #6633CHECK
constraints can now be specified at the table level. #6625- Binary encoding is now supported in the network protocol for
BOOL
,FLOAT
,DECIMAL
, andSTRING
types, improving compatiblity with some PostgreSQL drivers. #6661 - The new
cockroach freeze-cluster
command has been added to the command-line interface; it will be used in the upgrade process for a future beta release. #6675
EXPLAIN DELETE
no longer executes theDELETE
statement. #6622CHECK
constraints are now enforced duringUPDATE
statements. #6753CHECK
constraints now work correctly when columns have been dropped. #6730- Tuples and the
DEFAULT
keyword now work inINSERT ... ON CONFLICT DO UPDATE
statements. #6636 - Errors are now reported with standard PostgreSQL error codes in more places. #6652, #6554
- Fixed a panic while a node is attempting a clean shutdown. #6677
- Internal retry logic has been improved so requests are no longer stuck retrying endlessly on the wrong replica. #6688
- Snapshot generation is now throttled to reduce peak memory consumption. #6632
- Improved performance for transactions with low contention. #6413
- Improved performance for
UPSERT
statements (and the equivalentINSERT ... ON CONFLICT DO UPDATE
statements) when the table has no secondary indexes and values are supplied for all columns in the table. #6673
- SQL Grammar diagrams have been streamlined to reduce unnecessary duplication.
- Docs on SQL Constraints are now available. #280
- Docs on the
CREATE TABLE
statement are now available. #296
This release includes 65 merged PRs by 18 authors. We would like to thank the following contributor from the CockroachDB community:
- Kenji Kaneda
- Paul Steffensen