Watch our latest webinar: Fixing & Detecting Slow Postgres Queries with pganalyze Query Advisor.
Logo
  • Resources
  • Enterprise
  • Docs
  • Blog
  • Contact
  • Features
  • Pricing
  • Login
  • Free Trial
    • Overview
    • Installation Guide
      • Overview
      • Initial Setup
      • Log Insights Setup
      • Automated EXPLAIN Setup
        • Overview
        • auto_explain
          • Overview
          • Amazon RDS & Amazon Aurora
          • Azure Database for PostgreSQL
          • Google Cloud SQL
          • Crunchy Bridge
          • Heroku Postgres
            • Step 1: Check for auto_explain
            • Step 2: Enable auto_explain
            • Step 3: Review auto_explain settings
            • Step 4: Test and verify
          • Self-Managed Server
        • Log-based EXPLAIN
      • Troubleshooting
    • pganalyze Collector
    • Query Performance
    • Query Tuning
    • EXPLAIN Plans
    • Index Advisor
    • Indexing Engine
    • VACUUM Advisor
    • Schema Statistics
    • Log Insights
    • Connections
    • Alerts & Check-Up
    • Account Management
    • OpenTelemetry Integration
    • pganalyze Enterprise Server
    • pganalyze GraphQL API
    • Open-Source Components
❮ Automated EXPLAIN: Setup

Step 2: Enable auto_explain

You can enable auto_explain for your Heroku Postgres by running the following:

heroku pg:settings:auto-explain [database-addon-name] on -a [your-app-name]

Subsequent Postgres sessions will then be configured with those settings and will automatically log the EXPLAIN plan for any qualifying statements to your Postgres logs.

Proceed to Step 3: Review auto_explain settings

Couldn't find what you were looking for or want to talk about something specific?
Start a conversation with us →
Logo
  • Contact
  • Plans & Pricing
  • Resources
  • Enterprise
  • Documentation
  • Customer Stories
  • Careers
  • Index Advisor
  • Security
  • Status
  • Compare pganalyze
  • Terms of Service
  • Privacy Policy
  • Newsletter
  • SOC 2 Type 2
  • Do Not Sell My Personal Information

Get in touch

Email us anytime for questions:
 support@pganalyze.com

SOC 2 certification

pganalyze is SOC 2 Type 2 certified

pganalyze is SOC 2 Type 2 certified
© 2025 Duboce Labs, Inc.