Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex MPP Analytics for PostgreSQL
  • Getting started
    • All guides
    • Connecting to an external file server (gpfdist)
      • Managing extensions
      • gp_relaccess_stats
      • gp_relsizes_stats
      • gp_url_tools
      • pgcrypto
      • try_convert
      • uuid-cb
      • Yezzey
    • Auxiliary utilities
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Public materials
  • Release notes

In this article:

  • Extension settings
  • Installing gp_relaccess_stats in a Greenplum® cluster
  • Use cases
  1. Step-by-step guides
  2. Greenplum® extensions
  3. gp_relaccess_stats

Using gp_relaccess_stats in Yandex MPP Analytics for PostgreSQL

Written by
Yandex Cloud
Updated at March 5, 2026
  • Extension settings
  • Installing gp_relaccess_stats in a Greenplum® cluster
  • Use cases

gp_relaccess_stats is a Yandex Cloud extension that collects the access statistics for tables and views. It registers the read, insert, update, and delete operations, as well as the timestamp of the user's last access to the object. The collected data helps find unused or improperly used objects.

Extension settingsExtension settings

Configuration Type Default value Description
gp_relaccess_stats.enabled bool false Turns on the collection of statistics. You can enable this setting at the cluster or database level. We recommend the database level option.
gp_relaccess_stats.max_tables integer 65536 Maximum number of tables for caching statistics.
gp_relaccess_stats.dump_on_overflow bool false Decides the behavior if gp_relaccess_stats.max_tables is exceeded. If true, the statistics cache is automatically cleared via relaccess_stats_dump(). If false, you get a low-space warning.

For more information about the extension, see this gp_relaccess_stats guide.

Installing gp_relaccess_stats in a Greenplum® clusterInstalling gp_relaccess_stats in a Greenplum® cluster

  1. Connect to the database as the owner or a user with the CREATE permission in the database and run this command:

    CREATE EXTENSION gp_relaccess_stats;
    
  2. Make sure the extension has been installed:

    SELECT extname FROM pg_extension;
    

    This will bring up the list of extensions installed in the database.

Use casesUse cases

  1. Create a statistics collection table:

    SELECT relaccess_stats_init();
    

    The relaccess_stats table will get new empty entries for each table and partition of the selected database.

  2. Update the statistics:

    SELECT relaccess_stats_update();
    

    The relaccess_stats table will now be populated with statistics from the cache and the pg_stat folder.

  3. Check the current usage of the statistics cache:

    SELECT relaccess.relaccess_stats_fillfactor();
    

    This will show the statistics cache fill percentage.

  4. Query the relaccess_stats table for statistical data:

    SELECT * FROM relaccess_stats;
    

Greenplum® and Greenplum Database® are registered trademarks or trademarks of Broadcom Inc. in the United States and/or other countries.

Was the article helpful?

Previous
Managing extensions
Next
gp_relsizes_stats
© 2026 Direct Cursus Technology L.L.C.