Skip to content
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

sql: add support for ANALYZE <tablename> #49816

Merged
merged 1 commit into from
Jun 3, 2020
Merged

Commits on Jun 3, 2020

  1. sql: add support for ANALYZE <tablename>

    This commit adds support for `ANALYZE <tablename>` by adding the
    statement as syntactic sugar for the equivalent command
    `CREATE STATISTICS "" FROM <tablename>`. This improves compatibility
    with Postgres, and is needed to run the PostGIS tutorial as written.
    
    Note that this commit does not add support for `ANALYZE` without a
    table name. We can add support for that and other variants later if
    needed, but it is not necessary for the PostGIS tutorial.
    
    Fixes cockroachdb#49214
    
    Release note (sql change): Added support for `ANALYZE <tablename>`,
    which causes the database to collect statistics on the given table for
    use by the optimizer. The functionality of this command is equivalent
    to the existing command `CREATE STATISTICS "" FROM <tablename>`, but
    it increases compatibility with Postgres by using the same syntax that
    Postgres uses.
    rytaft committed Jun 3, 2020
    Configuration menu
    Copy the full SHA
    3105d70 View commit details
    Browse the repository at this point in the history