SlideShare a Scribd company logo
Using PEM to understand and
improve performance in Postgres:
Postgres Tuning Wizard and
Performance Diagnostics
Ashesh Vashi, Bruce Momjian, Marc Linster
Hosted by: Courtney Brown
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.2
• Slides and recording will be available in next 24 hours
• Submit questions via GotoWebinar – will be answering at end
• We will be sharing info about EDB and Postgres later
Welcome – Housekeeping Items
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.3
Webinar Series
Every other Monday at
8:00 AM PDT/ 11:00 AM EDT
16:00 BST/ 17:00 CET
June 3 2020
New Approaches to Integrating
Oracle and Postgres Database
Strategies
June 17 2020
How to Design for Database High
Availability
July 15 2020
Using PEM to understand and
improve performance in Postgres:
Postgres Tuning Wizard and
Performance Diagnostics
July 29 2020 How to Harness The Power of New
and Improved Features in
PostgreSQL 13
August 12 2020 EDB Replicate
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.4
• Introduction to PEM
• Performance Monitoring
• Database Tuning
• Tuning Wizard
• Performance Diagnostics
• EDB Wait States
• Demo
Agenda
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.5
Introduction to PEM
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.6
What can PEM do?
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.7
PEM Architecture
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.8
Market Landscape
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.9
Performance Monitoring
Monitoring Target Probes Metrics Type of monitored data
Host/Operating System 10 47 CPU Usage, Disk Busy Info, Disk Space, IO Analysis, Load Average, Memory Usage,
Network Statistics, OS Information, OS Statistics, Server Auto Discovery
Database Server/Instance 27 196 Background Writer Statistics, Blocked Session Information, Data and Log File
Analysis, Database Frozen XID, Database Size, Database Statistics, EDB Audit
Configuration, Failover Manager Cluster Info, Failover Manager Node Status,
Lock Information, Number of Prepared Transactions, Number of WAL Files,
Database, Tablespace, PG HBA Conf, Server Information, Server log
Configuration, Session Information, Session Waits, Settings, Streaming
Replication, Streaming Replication Database Conflicts, Streaming Replication Lag
Time, System Waits, Tablespace Size, User Information, WAL Archive Status
Database 15 90 Function Statistics, Index Size, Index Statistics, Materialized View Bloat,
Materialized View Frozen XID, Materialized View Size, Object Catalog: Extension,
Object Catalog: Schema, Slony Replication, SQL/Protect, Table Bloat, Table Frozen
XID, Table Size, Table Statistics, xDB Replication
Schema 6 26 Foreign Key, Function, Index, Sequence, Table, View
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.10
Instance Tuning
• Tuning Wizard
• Postgres Expert
• Capacity Manager (Capacity Planning)
Database Tuning
Workload/Schema Tuning
• Postgres Expert
• Explain plan analyzer (in the query tool)
• SQL Profiler
• Performance Diagnostics (Wait Events)
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.11
• Reviews the database server installation, and recommends a set of configuration options that will help tune
the installation best suited for your workload
• Machine Utilization
+ Dedicated, Work station, Developer workstation
• Workload
+ OLTP, Mixed, Data warehouse
• effective_cache_size, maintainance_work_mem, max_wal_size, min_wal_size, random_page_cost,
shared_buffers, wal_buffers, work_mem
Tuning Wizard
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.12
• An active session can be utilizing a CPU or waiting for an internal event/action to happen
• Wait Events (EDB Wait States)
• pg_stat_activity view - wait_event_type, wait_event
Performance Diagnostics
• LWLock
• Lock
• BufferPin
• Activity
• Extension
• Client
• IPC
• Timeout
• IO
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.13
● EDB Wait States Background Worker (EWSBW)
○ EDB Postgres Advanced Server 11+
○ Probes each of the running sessions at regular intervals
○ Collection information for every sessions
■ Database, User, Query, Wait Events
● Wait States Interface
○ edb_wait_states_data
○ edb_wait_states_queries
○ edb_wait_states_sessions
○ edb_wait_states_samples
EDB Wait States
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.14
DEMO
ONLY OPEN
SOURCE BASED
RDBMS IN
GARTNER MQ
EDB recognized 7 years in a row
on Gartner’s Magic Quadrant
15
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2020. All rights reserved.
Customers working SMARTER, reducing RISK and being more PRODUCTIVE with EDB.
OVER 4,000 CUSTOMERS
U.S Customers
EMEA Customers APAC Customers
102
of the
Fortune 500
337
of the Forbes
Global 2000
EDB OPEN SOURCE LEADERSHIP
NAMED EDB OPEN SOURCE COMMITTERS
AND CONTRIBUTORS
CORE TEAM
● ● ●
MAJOR CONTRIBUTORS CONTRIBUTORS
Akshay
Joshi
Amul
Sul
Ashesh
Vashi
Dilip
Kumar
Jeevan
Ladhe
Mithun
Cy
Devrim
Gündüz
Amit
Kapila
Bruce
Momjian
Dave
Page
Robert
Haas
Ashutosh
Sharma
Rushabh
Lathia
- designates committers
EDB Postgres Database
24/7 Global Support
Professional Services Postgres Contributions
Tools & Innovation Security/performance
Thank You
EDB supercharges Postgres to help
our customers overcome these
challenges.

More Related Content

What's hot (20)

PPTX
Database Dumps and Backups
EDB
 
PDF
Best Practices in Security with PostgreSQL
EDB
 
PDF
Auditing and Monitoring PostgreSQL/EPAS
EDB
 
PDF
Remote DBA Service: Powering your DBA needs
EDB
 
PPTX
Best Practices in Security with PostgreSQL
EDB
 
PDF
Beginner's Guide to High Availability for Postgres - French
EDB
 
PPTX
New and Improved Features in PostgreSQL 13
EDB
 
PDF
Keynote: The Postgres Ecosystem
EDB
 
PPTX
Migration DB2 to EDB - Project Experience
EDB
 
PDF
PostgreSQL 13 is Coming - Find Out What's New!
EDB
 
PPTX
Szabaduljon ki az Oracle szorításából
EDB
 
PPTX
Webinar: Managing Postgres at Scale
EDB
 
PPTX
Ein Expertenleitfaden für die Migration von Legacy-Datenbanken zu PostgreSQL
EDB
 
PPTX
PostgreSQL as a Strategic Tool
EDB
 
PDF
Large Table Partitioning with PostgreSQL and Django
EDB
 
PPTX
Break Free from Oracle
EDB
 
PPTX
EDB Postgres Platform 11 Webinar
EDB
 
PDF
Making your PostgreSQL Database Highly Available
EDB
 
PDF
New enhancements for security and usability in EDB 13
EDB
 
PPTX
PostgreSQL to Accelerate Innovation
EDB
 
Database Dumps and Backups
EDB
 
Best Practices in Security with PostgreSQL
EDB
 
Auditing and Monitoring PostgreSQL/EPAS
EDB
 
Remote DBA Service: Powering your DBA needs
EDB
 
Best Practices in Security with PostgreSQL
EDB
 
Beginner's Guide to High Availability for Postgres - French
EDB
 
New and Improved Features in PostgreSQL 13
EDB
 
Keynote: The Postgres Ecosystem
EDB
 
Migration DB2 to EDB - Project Experience
EDB
 
PostgreSQL 13 is Coming - Find Out What's New!
EDB
 
Szabaduljon ki az Oracle szorításából
EDB
 
Webinar: Managing Postgres at Scale
EDB
 
Ein Expertenleitfaden für die Migration von Legacy-Datenbanken zu PostgreSQL
EDB
 
PostgreSQL as a Strategic Tool
EDB
 
Large Table Partitioning with PostgreSQL and Django
EDB
 
Break Free from Oracle
EDB
 
EDB Postgres Platform 11 Webinar
EDB
 
Making your PostgreSQL Database Highly Available
EDB
 
New enhancements for security and usability in EDB 13
EDB
 
PostgreSQL to Accelerate Innovation
EDB
 

Similar to Using PEM to understand and improve performance in Postgres: Postgres Tuning Wizard and Performance Diagnostics (20)

PDF
EDB Postgres DBA Best Practices
EDB
 
PDF
EnterpriseDB's Best Practices for Postgres DBAs
EDB
 
PDF
Best Practices for Becoming an Exceptional Postgres DBA
EDB
 
PDF
5 Postgres DBA Tips
EDB
 
PDF
Intro.to.pem webinar.slides-061913
EDB
 
PDF
Best Practices for Monitoring Postgres
EDB
 
PPTX
Neuerungen in EDB Postgres 11
EDB
 
PPTX
Les nouveautés d'EDB Postgres 11
EDB
 
PDF
The Art of Database Experiments – PostgresConf Silicon Valley 2018 / San Jose
Nikolay Samokhvalov
 
PDF
Postgres Enterprise Manager 4.0 Overview
EDB
 
PDF
Enterprise PostgreSQL - EDB's answer to conventional Databases
Ashnikbiz
 
PDF
Managing Postgres at Scale With Postgres Enterprise Manager
EDB
 
PPTX
How to Monitor Postgres Like a Pro!
EDB
 
PPTX
Enterprise-class security with PostgreSQL - 2
Ashnikbiz
 
PDF
Introducing Postgres Enterprise Manager 5.0
EDB
 
PDF
Expanding with EDB Postgres Advanced Server 9.5
EDB
 
PDF
Architectural Health Check for Postgres
EDB
 
PPTX
How to use postgresql.conf to configure and tune the PostgreSQL server
EDB
 
PDF
DBPLUS Performance Monitor for PostgeSQL
DBPLUS
 
PPTX
Transform your DBMS to drive engagement innovation with Big Data
Ashnikbiz
 
EDB Postgres DBA Best Practices
EDB
 
EnterpriseDB's Best Practices for Postgres DBAs
EDB
 
Best Practices for Becoming an Exceptional Postgres DBA
EDB
 
5 Postgres DBA Tips
EDB
 
Intro.to.pem webinar.slides-061913
EDB
 
Best Practices for Monitoring Postgres
EDB
 
Neuerungen in EDB Postgres 11
EDB
 
Les nouveautés d'EDB Postgres 11
EDB
 
The Art of Database Experiments – PostgresConf Silicon Valley 2018 / San Jose
Nikolay Samokhvalov
 
Postgres Enterprise Manager 4.0 Overview
EDB
 
Enterprise PostgreSQL - EDB's answer to conventional Databases
Ashnikbiz
 
Managing Postgres at Scale With Postgres Enterprise Manager
EDB
 
How to Monitor Postgres Like a Pro!
EDB
 
Enterprise-class security with PostgreSQL - 2
Ashnikbiz
 
Introducing Postgres Enterprise Manager 5.0
EDB
 
Expanding with EDB Postgres Advanced Server 9.5
EDB
 
Architectural Health Check for Postgres
EDB
 
How to use postgresql.conf to configure and tune the PostgreSQL server
EDB
 
DBPLUS Performance Monitor for PostgeSQL
DBPLUS
 
Transform your DBMS to drive engagement innovation with Big Data
Ashnikbiz
 
Ad

More from EDB (20)

PDF
Cloud Migration Paths: Kubernetes, IaaS, or DBaaS
EDB
 
PDF
Die 10 besten PostgreSQL-Replikationsstrategien für Ihr Unternehmen
EDB
 
PDF
Migre sus bases de datos Oracle a la nube
EDB
 
PDF
EFM Office Hours - APJ - July 29, 2021
EDB
 
PDF
Benchmarking Cloud Native PostgreSQL
EDB
 
PDF
Las Variaciones de la Replicación de PostgreSQL
EDB
 
PDF
NoSQL and Spatial Database Capabilities using PostgreSQL
EDB
 
PDF
Is There Anything PgBouncer Can’t Do?
EDB
 
PDF
Data Analysis with TensorFlow in PostgreSQL
EDB
 
PDF
Practical Partitioning in Production with Postgres
EDB
 
PDF
A Deeper Dive into EXPLAIN
EDB
 
PDF
IOT with PostgreSQL
EDB
 
PDF
A Journey from Oracle to PostgreSQL
EDB
 
PDF
Psql is awesome!
EDB
 
PDF
EDB 13 - New Enhancements for Security and Usability - APJ
EDB
 
PPTX
Comment sauvegarder correctement vos données
EDB
 
PDF
Cloud Native PostgreSQL - Italiano
EDB
 
PDF
Cloud Native PostgreSQL - APJ
EDB
 
PDF
EDB Postgres & Tools in a Smart City Project
EDB
 
PPTX
Migrate Today: Proactive Steps to Unhook from Oracle
EDB
 
Cloud Migration Paths: Kubernetes, IaaS, or DBaaS
EDB
 
Die 10 besten PostgreSQL-Replikationsstrategien für Ihr Unternehmen
EDB
 
Migre sus bases de datos Oracle a la nube
EDB
 
EFM Office Hours - APJ - July 29, 2021
EDB
 
Benchmarking Cloud Native PostgreSQL
EDB
 
Las Variaciones de la Replicación de PostgreSQL
EDB
 
NoSQL and Spatial Database Capabilities using PostgreSQL
EDB
 
Is There Anything PgBouncer Can’t Do?
EDB
 
Data Analysis with TensorFlow in PostgreSQL
EDB
 
Practical Partitioning in Production with Postgres
EDB
 
A Deeper Dive into EXPLAIN
EDB
 
IOT with PostgreSQL
EDB
 
A Journey from Oracle to PostgreSQL
EDB
 
Psql is awesome!
EDB
 
EDB 13 - New Enhancements for Security and Usability - APJ
EDB
 
Comment sauvegarder correctement vos données
EDB
 
Cloud Native PostgreSQL - Italiano
EDB
 
Cloud Native PostgreSQL - APJ
EDB
 
EDB Postgres & Tools in a Smart City Project
EDB
 
Migrate Today: Proactive Steps to Unhook from Oracle
EDB
 
Ad

Recently uploaded (20)

PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PPTX
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
PDF
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PDF
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
PDF
Staying Human in a Machine- Accelerated World
Catalin Jora
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PPTX
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
Staying Human in a Machine- Accelerated World
Catalin Jora
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 

Using PEM to understand and improve performance in Postgres: Postgres Tuning Wizard and Performance Diagnostics

  • 1. Using PEM to understand and improve performance in Postgres: Postgres Tuning Wizard and Performance Diagnostics Ashesh Vashi, Bruce Momjian, Marc Linster Hosted by: Courtney Brown
  • 2. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.2 • Slides and recording will be available in next 24 hours • Submit questions via GotoWebinar – will be answering at end • We will be sharing info about EDB and Postgres later Welcome – Housekeeping Items
  • 3. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.3 Webinar Series Every other Monday at 8:00 AM PDT/ 11:00 AM EDT 16:00 BST/ 17:00 CET June 3 2020 New Approaches to Integrating Oracle and Postgres Database Strategies June 17 2020 How to Design for Database High Availability July 15 2020 Using PEM to understand and improve performance in Postgres: Postgres Tuning Wizard and Performance Diagnostics July 29 2020 How to Harness The Power of New and Improved Features in PostgreSQL 13 August 12 2020 EDB Replicate
  • 4. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.4 • Introduction to PEM • Performance Monitoring • Database Tuning • Tuning Wizard • Performance Diagnostics • EDB Wait States • Demo Agenda
  • 5. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.5 Introduction to PEM
  • 6. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.6 What can PEM do?
  • 7. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.7 PEM Architecture
  • 8. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.8 Market Landscape
  • 9. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.9 Performance Monitoring Monitoring Target Probes Metrics Type of monitored data Host/Operating System 10 47 CPU Usage, Disk Busy Info, Disk Space, IO Analysis, Load Average, Memory Usage, Network Statistics, OS Information, OS Statistics, Server Auto Discovery Database Server/Instance 27 196 Background Writer Statistics, Blocked Session Information, Data and Log File Analysis, Database Frozen XID, Database Size, Database Statistics, EDB Audit Configuration, Failover Manager Cluster Info, Failover Manager Node Status, Lock Information, Number of Prepared Transactions, Number of WAL Files, Database, Tablespace, PG HBA Conf, Server Information, Server log Configuration, Session Information, Session Waits, Settings, Streaming Replication, Streaming Replication Database Conflicts, Streaming Replication Lag Time, System Waits, Tablespace Size, User Information, WAL Archive Status Database 15 90 Function Statistics, Index Size, Index Statistics, Materialized View Bloat, Materialized View Frozen XID, Materialized View Size, Object Catalog: Extension, Object Catalog: Schema, Slony Replication, SQL/Protect, Table Bloat, Table Frozen XID, Table Size, Table Statistics, xDB Replication Schema 6 26 Foreign Key, Function, Index, Sequence, Table, View
  • 10. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.10 Instance Tuning • Tuning Wizard • Postgres Expert • Capacity Manager (Capacity Planning) Database Tuning Workload/Schema Tuning • Postgres Expert • Explain plan analyzer (in the query tool) • SQL Profiler • Performance Diagnostics (Wait Events)
  • 11. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.11 • Reviews the database server installation, and recommends a set of configuration options that will help tune the installation best suited for your workload • Machine Utilization + Dedicated, Work station, Developer workstation • Workload + OLTP, Mixed, Data warehouse • effective_cache_size, maintainance_work_mem, max_wal_size, min_wal_size, random_page_cost, shared_buffers, wal_buffers, work_mem Tuning Wizard
  • 12. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.12 • An active session can be utilizing a CPU or waiting for an internal event/action to happen • Wait Events (EDB Wait States) • pg_stat_activity view - wait_event_type, wait_event Performance Diagnostics • LWLock • Lock • BufferPin • Activity • Extension • Client • IPC • Timeout • IO
  • 13. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.13 ● EDB Wait States Background Worker (EWSBW) ○ EDB Postgres Advanced Server 11+ ○ Probes each of the running sessions at regular intervals ○ Collection information for every sessions ■ Database, User, Query, Wait Events ● Wait States Interface ○ edb_wait_states_data ○ edb_wait_states_queries ○ edb_wait_states_sessions ○ edb_wait_states_samples EDB Wait States
  • 14. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.14 DEMO
  • 15. ONLY OPEN SOURCE BASED RDBMS IN GARTNER MQ EDB recognized 7 years in a row on Gartner’s Magic Quadrant 15 CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2020. All rights reserved.
  • 16. Customers working SMARTER, reducing RISK and being more PRODUCTIVE with EDB. OVER 4,000 CUSTOMERS U.S Customers EMEA Customers APAC Customers 102 of the Fortune 500 337 of the Forbes Global 2000
  • 17. EDB OPEN SOURCE LEADERSHIP NAMED EDB OPEN SOURCE COMMITTERS AND CONTRIBUTORS CORE TEAM ● ● ● MAJOR CONTRIBUTORS CONTRIBUTORS Akshay Joshi Amul Sul Ashesh Vashi Dilip Kumar Jeevan Ladhe Mithun Cy Devrim Gündüz Amit Kapila Bruce Momjian Dave Page Robert Haas Ashutosh Sharma Rushabh Lathia - designates committers
  • 18. EDB Postgres Database 24/7 Global Support Professional Services Postgres Contributions Tools & Innovation Security/performance
  • 19. Thank You EDB supercharges Postgres to help our customers overcome these challenges.