|
| 1 | +.. _version_4.6.0: |
| 2 | + |
| 3 | +============= |
| 4 | +Version 4.6.0 |
| 5 | +============= |
| 6 | + |
| 7 | +Released on 2021-07-13. |
| 8 | + |
| 9 | +.. NOTE:: |
| 10 | + |
| 11 | + If you are upgrading a cluster, you must be running CrateDB 4.0.2 or higher |
| 12 | + before you upgrade to 4.6.0. |
| 13 | + |
| 14 | + We recommend that you upgrade to the latest 4.3 release before moving to |
| 15 | + 4.6.0. |
| 16 | + |
| 17 | + A rolling upgrade from 4.5.x to 4.6.0 is supported. |
| 18 | + |
| 19 | + Before upgrading, you should `back up your data`_. |
| 20 | + |
| 21 | +.. _back up your data: https://crate.io/docs/crate/reference/en/latest/admin/snapshots.html |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | +.. rubric:: Table of Contents |
| 26 | + |
| 27 | +.. contents:: |
| 28 | + :local: |
| 29 | + |
| 30 | + |
| 31 | +Deprecations |
| 32 | +============ |
| 33 | + |
| 34 | +- Deprecated the :ref:`node.max_local_storage_nodes |
| 35 | + <node.max_local_storage_nodes>` setting. |
| 36 | + |
| 37 | + |
| 38 | +Changes |
| 39 | +======= |
| 40 | + |
| 41 | + |
| 42 | +Performance Improvements |
| 43 | +------------------------ |
| 44 | + |
| 45 | +- Improved the performance of the :ref`hyperloglog_distinct |
| 46 | + <aggregation-hyperloglog-distinct>` aggregation function. |
| 47 | + |
| 48 | +- Improved the performance of ``SELECT`` statements with ``WHERE`` conditions |
| 49 | + that are in the form of ``WHERE COL=COL``. |
| 50 | + |
| 51 | +- Improved the performance of ``INSERT FROM query`` statements where the |
| 52 | + ``query`` contains a ``GROUP BY`` clause. |
| 53 | + |
| 54 | +- Improved the internal throttling mechanism used for ``INSERT FROM QUERY`` and |
| 55 | + ``COPY FROM`` operations. This should lead to these queries utilizing more |
| 56 | + resources if the cluster can spare them. |
| 57 | + |
| 58 | +- Added an optimization that improves the performance of ``count()`` |
| 59 | + aggregations on object columns that have at least one inner column with a |
| 60 | + ``NOT NULL`` constraint. |
| 61 | + |
| 62 | + |
| 63 | +SQL Statements and Compatibility |
| 64 | +-------------------------------- |
| 65 | + |
| 66 | +- Added the :ref:`bit(n) <data-type-bit>` data type. |
| 67 | + |
| 68 | +- CrateDB now accepts the ``START TRANSACTION`` statement for :ref:`PostgreSQL |
| 69 | + wire protocol <postgres_wire_protocol>` compatibility. However, CrateDB does |
| 70 | + not support transactions and will silently ignore this statement. |
| 71 | + |
| 72 | +- Added support for directory-level wild card expansion for URIs passed to |
| 73 | + ``COPY FROM`` statements. |
| 74 | + |
| 75 | + |
| 76 | +New Scalars |
| 77 | +----------- |
| 78 | + |
| 79 | +- Added :ref:`array_to_string <scalar-array-to-string>` scalar function |
| 80 | + that concatenates array elements into a single string using a separator and |
| 81 | + an optional null-string. |
| 82 | + |
| 83 | +- Added :ref:`array_min <scalar-array-min>` and :ref:`array_max |
| 84 | + <scalar-array-max>` scalar functions returning the minimal and maximal |
| 85 | + element in array respectively. |
| 86 | + |
| 87 | +- Added the :ref:`array_sum <scalar-array-sum>` scalar function |
| 88 | + that returns the sum of all elements in an array. |
| 89 | + |
| 90 | +- Added the :ref:`array_avg <scalar-array-avg>` scalar function that returns |
| 91 | + the average of all elements in an array. |
| 92 | + |
| 93 | + |
| 94 | +Administration and Operations improvements |
| 95 | +------------------------------------------ |
| 96 | + |
| 97 | +- Users can now read tables within the ``pg_catalog`` schema without explicit |
| 98 | + ``DQL`` permission. They will only see records the user has privileges on. |
| 99 | + |
| 100 | +- Users with AL privileges (or DDL on both tables) can now run the following |
| 101 | + ALTER CLUSTER commands: |
| 102 | + ``ALTER CLUSTER SWAP TABLE source TO target``, |
| 103 | + ``ALTER CLUSTER REROUTE RETRY FAILED``, |
| 104 | + ``ALTER CLUSTER GC DANGLING ARTIFACTS``. |
| 105 | + |
| 106 | +- Added support for encrypting node-to-node communication. |
| 107 | + |
| 108 | +- Changed the privileges model to allow users with ``DDL`` privileges on a |
| 109 | + table to use the :ref:`OPTIMIZE TABLE <sql-optimize>` statement. |
| 110 | + |
| 111 | +- Included the shard information for closed tables in ``sys.shards`` table. |
| 112 | + |
| 113 | +- Added a ``closed`` column to :ref:`sys-shards <sys-shards>` exposing |
| 114 | + the state of the table associated with the shard. |
| 115 | + |
| 116 | +- Added support for reading ``cgroup`` information in the ``cgroup v2`` format. |
| 117 | + |
| 118 | +- Added support of hostnames in HBA configuration. |
| 119 | + |
| 120 | + |
| 121 | +Administration Console |
| 122 | +---------------------- |
| 123 | + |
| 124 | +- Removed all analytics (UDC, Segment) |
| 125 | + |
| 126 | +- Removed the "Notifications" section in the statusbar |
| 127 | + |
| 128 | +- Removed min-width for columns in console to reduce scrolling |
| 129 | + |
| 130 | +- Changed syntax highlighting in console. Keywords in double quotes are now longer |
| 131 | + highlighted. Types are highlighted with a different color. |
| 132 | + |
| 133 | +- Activated codemirror code hints for keywords. |
| 134 | + |
| 135 | +- Changed the look of the Scrollbar to appear more modern. |
| 136 | + |
| 137 | +- Added length limit for ``varchar(n)`` and ``bit(n)`` types in table view. |
0 commit comments