Movatterモバイル変換


[0]ホーム

URL:



Facebook
Postgres Pro
Facebook
Downloads
F.32. online_analyze — update statistics afterINSERT,UPDATE,DELETE, orSELECT INTO operations
Prev UpAppendix F. Additional Supplied Modules and Extensions Shipped inpostgrespro-std-17-contribHome Next

F.32. online_analyze — update statistics afterINSERT,UPDATE,DELETE, orSELECT INTO operations#

Theonline_analyze module provides a set of features that immediately update statistics afterINSERT,UPDATE,DELETE, orSELECT INTO operations for the affected tables.

F.32.1. Module Loading#

To useonline_analyze module, load the shared library:

LOAD 'online_analyze';

F.32.2. Module Configuration#

You can configureonline_analyze using the following custom variables (default values are shown):

  • online_analyze.enable = on

    Enablesonline_analyze.

  • online_analyze.verbose = on

    ExecutesANALYZE VERBOSE.

    Note

    Sinceverbose is a reserved SQL key word, this parameter has to be double-quoted when used in SQL queries. For example:

    ALTER SYSTEM SET "online_analyze.verbose" = 'off';

  • online_analyze.scale_factor = 0.1

    Fraction of table size to start online analysis (similar toautovacuum_analyze_scale_factor).

  • online_analyze.threshold = 50

    Minimum number of row updates before starting online analysis (similar toautovacuum_analyze_threshold).

  • online_analyze.min_interval = 10000

    Minimum time interval betweenANALYZE calls per table, in milliseconds.

  • online_analyze.table_type = "all"

    Type(s) of tables for online analysis. Possible values are:all,persistent,temporary,none.

  • online_analyze.exclude_tables = ""

    List of tables to exclude from online analysis.

  • online_analyze.include_tables = ""

    List of tables to include in online analysis (online_analyze.include_tables overridesonline_analyze.exclude_tables).

  • online_analyze.local_tracking = off

    Enables per-backend tracking for temporary tables byonline_analyze. When this variable is set tooff,online_analyze uses the default system statistics for temporary tables.

  • online_analyze.lower_limit = 0

    Minimum number of rows in a table required to triggeronline_analyze.

  • online_analyze.capacity_threshold = 100000

    Maximum number of temporary tables to store in local cache.

F.32.3. Authors#


      Teodor Sigaev <teodor@sigaev.ru>
    


Prev Up Next
F.31. mchar — additional data types for compatibility with Microsoft SQL Server Home F.33. pageinspect — low-level inspection of database pages
pdfepub
Go to Postgres Pro Standard 17
By continuing to browse this website, you agree to the use of cookies. Go toPrivacy Policy.

[8]ページ先頭

©2009-2025 Movatter.jp