-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
release-24.2: sql: do not collect histograms for non-indexed JSON columns #140141
release-24.2: sql: do not collect histograms for non-indexed JSON columns #140141
Conversation
Thanks for opening a backport. Please check the backport criteria before merging:
If your backport adds new functionality, please ensure that the following additional criteria are satisfied:
Also, please add a brief release justification to the body of your PR to justify this |
a65649c
to
edbd9e6
Compare
edbd9e6
to
935e8a6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 6 of 6 files at r1, all commit messages.
Reviewable status:complete! 0 of 0 LGTMs obtained (waiting on @DrewKimball and @mgartner)
pkg/sql/create_stats.go
line 74 at r1 (raw file):
"sql.stats.non_indexed_json_histograms.enabled", "set to true to collect table statistics histograms on non-indexed JSON columns", false,
I thought we wanted to initially backport with true
as the default (except for 25.1 branch)?
Informs cockroachdb#139381 Release note (sql change): Since v23.2 table statistics histograms have been collected for non-indexed JSON columns. Histograms are no longer collected for these columns if `sql.stats.non_indexed_json_histograms.enabled` is set to `false`. This reduces memory usage during table statistics collection, for both automatic and manual collection via `ANALYZE` and `CREATE STATISTICS`.
935e8a6
to
6021a86
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status:
complete! 0 of 0 LGTMs obtained (waiting on @DrewKimball and @yuzefovich)
pkg/sql/create_stats.go
line 74 at r1 (raw file):
Previously, yuzefovich (Yahor Yuzefovich) wrote…
I thought we wanted to initially backport with
true
as the default (except for 25.1 branch)?
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 5 of 5 files at r2, all commit messages.
Reviewable status:complete! 0 of 0 LGTMs obtained (waiting on @DrewKimball)
blathers backport 24.2.9-rc |
Encountered an error creating backports. Some common things that can go wrong:
You might need to create your backport manually using the backport tool. error setting reviewers, but backport branch blathers/backport-release-24.2.9-rc-140141 is ready: POST https://api.github.com/repos/cockroachdb/cockroach/pulls/140267/requested_reviewers: 422 Reviews may only be requested from collaborators. One or more of the teams you specified is not a collaborator of the cockroachdb/cockroach repository. [] Backport to branch 24.2.9-rc failed. See errors above. 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
Backport 1/1 commits from #139766.
/cc @cockroachdb/release
Informs #139381
Release note (sql change): Since v23.2 table statistics histograms have
been collected for non-indexed JSON columns. Histograms are no longer
collected for these columns if
sql.stats.non_indexed_json_histograms.enabled
is set to
false
. This reduces memory usage during tablestatistics collection, for both automatic and manual collection via
ANALYZE
andCREATE STATISTICS
.Release justification: New cluster setting disabled by default.