↑↓ select ↵ open ⌫ change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Functions / System Administration Functions

pg_restore_relation_stats

Read the PG 18 manual

Updates table-level statistics.

Reading PG 18current·documented in 3 of 27 versions, 18 to 20

Signatures & examples

pg_restore_relation_stats ( VARIADIC kwargs "any" ) → boolean
Updates table-level statistics. Ordinarily, these statistics are collected automatically or updated as a part of VACUUM or ANALYZE, so it's not necessary to call this function. However, it is useful after a restore to enable the optimizer to choose better plans if ANALYZE has not been run yet.
Version history 1
  1. 17 → 18 added

Definition snapshot: b7bd9cda · English manual source