-
Notifications
You must be signed in to change notification settings - Fork 4.1k
opt: Support ANALYZE with no tables to create statistics on all tables #34431
Copy link
Copy link
Open
Labels
A-sql-optimizerSQL logical planning and optimizations.SQL logical planning and optimizations.C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)T-sql-queriesSQL Queries TeamSQL Queries Team
Description
Is your feature request related to a problem? Please describe.
Currently, you must create statistics on each table in your cluster manually with something like:
CREATE STATISTICS __auto__ FROM foo1
CREATE STATISTICS __auto__ FROM foo2
CREATE STATISTICS __auto__ FROM foo3
Describe the solution you'd like
I'd like to be able to create statistics on all tables in a database or on all tables in all databases with one command or flag.
Jira issue: CRDB-4646
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-sql-optimizerSQL logical planning and optimizations.SQL logical planning and optimizations.C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)T-sql-queriesSQL Queries TeamSQL Queries Team
Type
Projects
Status
Backlog