-
Notifications
You must be signed in to change notification settings - Fork 468
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into molt-fetch-fixes
- Loading branch information
Showing
30 changed files
with
332 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
## v25.1.0-alpha.3 | ||
|
||
Release Date: January 15, 2025 | ||
|
||
{% include releases/new-release-downloads-docker-image.md release=include.release %} | ||
|
||
<h3 id="v25-1-0-alpha-3-backward-incompatible-changes">Backward-incompatible changes</h3> | ||
|
||
- Several metrics are redundant and have been removed. The following list maps each removed metric to an existing, identical metric. [#138786][#138786] | ||
- Removed `sql.schema_changer.running`, which is redundant with `jobs.schema_change.currently_running`. | ||
- Removed `sql.schema_changer.successes`, which is redundant with `jobs.schema_change.resume_completed`. | ||
- Removed `sql.schema_changer.retry_errors`, which is redundant with `jobs.schema_change.resume_retry_error`. | ||
- Removed `sql.schema_changer.permanent_errors`, which is redundant with `jobs.schema_change.resume_failed`. | ||
|
||
<h3 id="v25-1-0-alpha-3-general-changes">General changes</h3> | ||
|
||
- When changefeeds are created with a resolved option lower than the `min_checkpoint_frequency` option, a notice is now printed, since this may lead to unexpected behavior. [#138181][#138181] | ||
- CockroachDB binaries are now built with profile-guided optimization (PGO) enabled. [#138700][#138700] | ||
|
||
<h3 id="v25-1-0-alpha-3-sql-language-changes">SQL language changes</h3> | ||
|
||
- Users can now always see and control (pause/resume/cancel) jobs that they own. [#138178][#138178] | ||
- CockroachDB now provides different options for `CREATE LOGICALLY REPLICATED TABLE`: `UNIDIRECTIONAL` and `BIDIRECTIONAL ON`. These options are used for `CREATE LOGICALLY REPLICATED TABLE`, but not `CREATE LOGICAL REPLICATION STREAM`. [#138244][#138244] | ||
- `CHANGEFEED`s using named external connections now automatically update their configuration when the connection configuration changes. [#138237][#138237] | ||
- Added support for `DO` statements embedded within PL/pgSQL routines and other `DO` statements. `DO` statements execute a block of code inline as an anonymous function. Currently, only a PL/pgSQL body is allowed. [#138709][#138709] | ||
- Added support for `DO` statements in SQL, which allow a PL/pgSQL code block to be executed inline. [#138709][#138709] | ||
|
||
<h3 id="v25-1-0-alpha-3-operational-changes">Operational changes</h3> | ||
|
||
- 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][#138336] | ||
- Schema object identifiers (e.g., database names, schema names, table names, and function names) are no longer redacted when logging statements in the `EXEC` or `SQL_SCHEMA` channels. If redaction of these names is required, then the new cluster setting `sql.log.redact_names.enabled` can be set to `true`. The default value of the setting is `false`. [#136897][#136897] | ||
- Object identifiers such as table names, schema names, function names, and type names are no longer redacted in the `SQL_SCHEMA` log channel. [#136897][#136897] | ||
- Changed the default value of the cluster setting `admission.l0_file_count_overload_threshold` to `4000`. [#138699][#138699] | ||
- Introduced a metric, `sql.schema_changer.object_count`, that counts the number of schema objects in the cluster. [#138786][#138786] | ||
- Renamed the `changefeed.min_highwater_advance` cluster setting to `changefeed.resolved_timestamp.min_update_interval` to 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][#138673] | ||
|
||
<h3 id="v25-1-0-alpha-3-db-console-changes">DB Console changes</h3> | ||
|
||
- Added a `/debug/pprof/fgprof` endpoint to capture off-CPU stack traces. Use of this endpoint will have a noticeable impact on performance while the endpoint is being triggered. [#138779][#138779] | ||
|
||
<h3 id="v25-1-0-alpha-3-bug-fixes">Bug fixes</h3> | ||
|
||
- In the v2 **Databases > Table** page, the `CREATE` statement will now show up as expected for tables with custom schema names. [#138294][#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][#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][#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][#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. [#138791][#138791] | ||
|
||
- Fixed a bug where locks were taken on the system tables `system.users` and `system.role_options` even when `allow_role_memberships_to_change_during_transaction` was set. Now, users are able to create and drop users quickly when `allow_role_memberships_to_change_during_transaction` is set, even if there are contending transactions on `system.users` and `system.role_options`. [#137940][#137940] | ||
|
||
[#136167]: https://github.com/cockroachdb/cockroach/pull/136167 | ||
[#136897]: https://github.com/cockroachdb/cockroach/pull/136897 | ||
[#137750]: https://github.com/cockroachdb/cockroach/pull/137750 | ||
[#137940]: https://github.com/cockroachdb/cockroach/pull/137940 | ||
[#138178]: https://github.com/cockroachdb/cockroach/pull/138178 | ||
[#138181]: https://github.com/cockroachdb/cockroach/pull/138181 | ||
[#138223]: https://github.com/cockroachdb/cockroach/pull/138223 | ||
[#138237]: https://github.com/cockroachdb/cockroach/pull/138237 | ||
[#138244]: https://github.com/cockroachdb/cockroach/pull/138244 | ||
[#138294]: https://github.com/cockroachdb/cockroach/pull/138294 | ||
[#138295]: https://github.com/cockroachdb/cockroach/pull/138295 | ||
[#138332]: https://github.com/cockroachdb/cockroach/pull/138332 | ||
[#138334]: https://github.com/cockroachdb/cockroach/pull/138334 | ||
[#138336]: https://github.com/cockroachdb/cockroach/pull/138336 | ||
[#138343]: https://github.com/cockroachdb/cockroach/pull/138343 | ||
[#138557]: https://github.com/cockroachdb/cockroach/pull/138557 | ||
[#138673]: https://github.com/cockroachdb/cockroach/pull/138673 | ||
[#138699]: https://github.com/cockroachdb/cockroach/pull/138699 | ||
[#138700]: https://github.com/cockroachdb/cockroach/pull/138700 | ||
[#138709]: https://github.com/cockroachdb/cockroach/pull/138709 | ||
[#138779]: https://github.com/cockroachdb/cockroach/pull/138779 | ||
[#138786]: https://github.com/cockroachdb/cockroach/pull/138786 | ||
[#138791]: https://github.com/cockroachdb/cockroach/pull/138791 |
2 changes: 2 additions & 0 deletions
2
src/current/_includes/v23.2/known-limitations/generic-query-plan-limitations.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- Because [generic query plans]({% link {{ page.version.version }}/cost-based-optimizer.md %}#query-plan-cache) use lookup joins instead of the scans and revscans used by custom query plans, generic query plans do not perform as well as custom query plans in some cases. [#128916](https://github.com/cockroachdb/cockroach/issues/128916) | ||
- [Generic query plans]({% link {{ page.version.version }}/cost-based-optimizer.md %}#query-plan-type) are not included in the [plan cache]({% link {{ page.version.version }}/cost-based-optimizer.md %}#query-plan-cache). This means a generic query plan built and optimized for a prepared statement in one session cannot be used by another session. To reuse generic query plans for maximum performance, a prepared statement should be executed multiple times instead of prepared and executed once. [#128911](https://github.com/cockroachdb/cockroach/issues/128911) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
src/current/_includes/v24.1/known-limitations/generic-query-plan-limitations.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- Because [generic query plans]({% link {{ page.version.version }}/cost-based-optimizer.md %}#query-plan-cache) use lookup joins instead of the scans and revscans used by custom query plans, generic query plans do not perform as well as custom query plans in some cases. [#128916](https://github.com/cockroachdb/cockroach/issues/128916) | ||
- [Generic query plans]({% link {{ page.version.version }}/cost-based-optimizer.md %}#query-plan-type) are not included in the [plan cache]({% link {{ page.version.version }}/cost-based-optimizer.md %}#query-plan-cache). This means a generic query plan built and optimized for a prepared statement in one session cannot be used by another session. To reuse generic query plans for maximum performance, a prepared statement should be executed multiple times instead of prepared and executed once. [#128911](https://github.com/cockroachdb/cockroach/issues/128911) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.