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

Document table statistics support in PostgreSQL connector #11887

Merged
merged 1 commit into from
Apr 9, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 29 additions & 1 deletion docs/src/main/sphinx/connector/postgresql.rst
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,38 @@ statements, the connector supports the following features:

.. include:: alter-schema-limitation.fragment


Performance
-----------

The connector includes a number of performance improvements, detailed in the
following sections.

.. _postgresql-table-statistics:

Table statistics
^^^^^^^^^^^^^^^^

The PostgreSQL connector can use :doc:`table and column statistics
</optimizer/statistics>` for :doc:`cost based optimizations
</optimizer/cost-based-optimizations>`, to improve query processing performance
based on the actual data in the data source.

The statistics are collected by PostgreSQL and retrieved by the connector.

To collect statistics for a table, execute the following statement in
PostgreSQL.

.. code-block:: text

ANALYZE table_schema.table_name;

Refer to PostgreSQL documentation for additional ``ANALYZE`` options.

.. _postgresql-pushdown:

Pushdown
--------
^^^^^^^^

The connector supports pushdown for a number of operations:

Expand Down