SlideShare a Scribd company logo
Using PEM to understand and
improve performance in Postgres:
Postgres Tuning Wizard and
Performance Diagnostics
Ashesh Vashi
This session is being recorded.
The slides and recording will be available after the session.
Please submit questions via the question box– all questions will be answered
after the presentation.
We will be sharing information about EDB and Postgres later
Welcome – Housekeeping Items
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.3
• Introduction to PEM
• Performance Monitoring
• Database Tuning
• Tuning Wizard
• Performance Diagnostics
• EDB Wait States
• Demo
Agenda
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.4
Introduction to PEM
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.5
What can PEM do?
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.6
PEM Architecture
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.7
Market Landscape
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.8
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.9
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.10
• 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.11
• 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.12
● 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.13
DEMO
Why EDB?
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.15
Products, services, and support for teams who need
to do more and go faster
• Founded in 2004
• 350+ employees
• 16 Offices worldwide
EDB supercharges PostgreSQL
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.16
• Enterprise PostgreSQL innovations
• 4,000+ global customers
• Recognized by Gartner Magic Quadrant for 7 years in a row
• PostgreSQL community leadership
2019
Challengers Leaders
Niche Players Visionaries
Abilitytoexecute
Completeness of vision
1986
The Design
of PostgreSQL
1996
Birth of
PostgreSQL
2004
EDB
is founded
2020
TodayMaterialized
Views
Parallel
Query
JIT
Compilation
Heap Only
Tuples (HOT)
Serializable
Parallel Query
We’re database fanatics who care
deeply about PostgreSQL
Expertise
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.17
Market Success Globally
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.18
Core team Major contributors Contributors
EDB Open Source Leadership
Named EDB open source committers and contributors
Akshay Joshi Amul Sul Ashesh Vashi Ashutosh Sharma Jeevan Chalke
Dilip Kumar Jeevan Ladhe Rushabh Lathia
Devrim Gündüz
Robert Haas
Bruce Momjian
Dave Page
Designates PostgreSQL committers
Questions?
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.20
Contact EDB in APJ
Other resources
Thank You
Australia & New Zealand:
E: sales-anz@enterprisedb.com
S E Asia & Hong Kong:
E: sales-sea-hk@enterprisedb.com
Japan:
E:jp@enterprisedb.com
S Korea:
E: sales-kr@enterprisedb.com
India, Sri Lanka & Bangladesh:
E: sales-india@enterprisedb.com
Postgres
Pulse
EDB Youtube Channel
Thank You
EDB supercharges Postgres to help
our customers overcome these
challenges.

More Related Content

What's hot (20)

PPTX
Un guide complet pour la migration de bases de données héritées vers PostgreSQL
EDB
 
PPTX
Replacing Oracle with EDB Postgres
EDB
 
PPTX
EDB Postgres Platform 11 Webinar
EDB
 
PPTX
Szabaduljon ki az Oracle szorításából
EDB
 
PDF
Best Practices in Security with PostgreSQL
EDB
 
PPTX
New enhancements for security and usability in EDB 13
EDB
 
PDF
Best Practices in Security with PostgreSQL
EDB
 
PPTX
Database Dumps and Backups
EDB
 
PDF
Auditing and Monitoring PostgreSQL/EPAS
EDB
 
PDF
Best Practices & Lessons Learned from Deployment of PostgreSQL
EDB
 
PPTX
PostgreSQL as a Strategic Tool
EDB
 
PPTX
Best Practices in Security with PostgreSQL
EDB
 
PPTX
An Expert Guide to Migrating Legacy Databases to PostgreSQL
EDB
 
PDF
New enhancements for security and usability in EDB 13
EDB
 
PDF
Making your PostgreSQL Database Highly Available
EDB
 
PPTX
An overview of reference architectures for Postgres
EDB
 
PPTX
Les nouveautés d'EDB Postgres 11
EDB
 
PDF
Beginner's Guide to High Availability for Postgres - French
EDB
 
PPTX
Application Development & Database Choices: Postgres Support for non Relation...
EDB
 
PPTX
An overview of reference architectures for Postgres
EDB
 
Un guide complet pour la migration de bases de données héritées vers PostgreSQL
EDB
 
Replacing Oracle with EDB Postgres
EDB
 
EDB Postgres Platform 11 Webinar
EDB
 
Szabaduljon ki az Oracle szorításából
EDB
 
Best Practices in Security with PostgreSQL
EDB
 
New enhancements for security and usability in EDB 13
EDB
 
Best Practices in Security with PostgreSQL
EDB
 
Database Dumps and Backups
EDB
 
Auditing and Monitoring PostgreSQL/EPAS
EDB
 
Best Practices & Lessons Learned from Deployment of PostgreSQL
EDB
 
PostgreSQL as a Strategic Tool
EDB
 
Best Practices in Security with PostgreSQL
EDB
 
An Expert Guide to Migrating Legacy Databases to PostgreSQL
EDB
 
New enhancements for security and usability in EDB 13
EDB
 
Making your PostgreSQL Database Highly Available
EDB
 
An overview of reference architectures for Postgres
EDB
 
Les nouveautés d'EDB Postgres 11
EDB
 
Beginner's Guide to High Availability for Postgres - French
EDB
 
Application Development & Database Choices: Postgres Support for non Relation...
EDB
 
An overview of reference architectures for Postgres
EDB
 

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

PPTX
EDB: Power to Postgres
Ashnikbiz
 
PPTX
Enterprise-class security with PostgreSQL - 2
Ashnikbiz
 
PDF
Výhody a benefity nasazení Oracle Database Appliance
MarketingArrowECS_CZ
 
PPTX
EDB's Migration Portal - Migrate from Oracle to Postgres
EDB
 
PDF
Ashnik EnterpriseDB PostgreSQL - A real alternative to Oracle
Ashnikbiz
 
PPTX
EDB Database Servers and Tools
Ashnikbiz
 
PPTX
Neuerungen in EDB Postgres 11
EDB
 
PPT
EDB corporate prague_march_2015
Miloslav Hašek
 
PPTX
Postgres Databases in Minutes with the EDB Postgres Cloud Database Service
EDB
 
PPTX
How to use postgresql.conf to configure and tune the PostgreSQL server
EDB
 
PPTX
Oracle Database Appliance, ODA, X7-2 portfolio.
Daryll Whyte
 
PPTX
Webinar: Managing Postgres at Scale
EDB
 
PDF
Novinky v Oracle Database 18c
MarketingArrowECS_CZ
 
PPTX
New Approaches to Migrating from Oracle to Enterprise-Ready Postgres in the C...
EDB
 
PDF
Save money with Postgres on IBM PowerLinux
EDB
 
PPTX
Oracle big data appliance and solutions
solarisyougood
 
PDF
MySQL 5.7: Focus on InnoDB
Mario Beck
 
PDF
Hello World with EDB Postgres
EDB
 
PPTX
Simplify IT: Oracle SuperCluster
Fran Navarro
 
PPTX
New Enterprise Cloud Database Options for 2019
EDB
 
EDB: Power to Postgres
Ashnikbiz
 
Enterprise-class security with PostgreSQL - 2
Ashnikbiz
 
Výhody a benefity nasazení Oracle Database Appliance
MarketingArrowECS_CZ
 
EDB's Migration Portal - Migrate from Oracle to Postgres
EDB
 
Ashnik EnterpriseDB PostgreSQL - A real alternative to Oracle
Ashnikbiz
 
EDB Database Servers and Tools
Ashnikbiz
 
Neuerungen in EDB Postgres 11
EDB
 
EDB corporate prague_march_2015
Miloslav Hašek
 
Postgres Databases in Minutes with the EDB Postgres Cloud Database Service
EDB
 
How to use postgresql.conf to configure and tune the PostgreSQL server
EDB
 
Oracle Database Appliance, ODA, X7-2 portfolio.
Daryll Whyte
 
Webinar: Managing Postgres at Scale
EDB
 
Novinky v Oracle Database 18c
MarketingArrowECS_CZ
 
New Approaches to Migrating from Oracle to Enterprise-Ready Postgres in the C...
EDB
 
Save money with Postgres on IBM PowerLinux
EDB
 
Oracle big data appliance and solutions
solarisyougood
 
MySQL 5.7: Focus on InnoDB
Mario Beck
 
Hello World with EDB Postgres
EDB
 
Simplify IT: Oracle SuperCluster
Fran Navarro
 
New Enterprise Cloud Database Options for 2019
EDB
 
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)

PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
PDF
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
PPTX
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
PPTX
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
PPTX
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
PPTX
Digital Circuits, important subject in CS
contactparinay1
 
PDF
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
PDF
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
PDF
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
PDF
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
Digital Circuits, important subject in CS
contactparinay1
 
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 

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
  • 2. This session is being recorded. The slides and recording will be available after the session. Please submit questions via the question box– all questions will be answered after the presentation. We will be sharing information about EDB and Postgres later Welcome – Housekeeping Items
  • 3. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.3 • Introduction to PEM • Performance Monitoring • Database Tuning • Tuning Wizard • Performance Diagnostics • EDB Wait States • Demo Agenda
  • 4. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.4 Introduction to PEM
  • 5. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.5 What can PEM do?
  • 6. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.6 PEM Architecture
  • 7. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.7 Market Landscape
  • 8. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.8 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
  • 9. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.9 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)
  • 10. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.10 • 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
  • 11. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.11 • 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
  • 12. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.12 ● 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
  • 13. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.13 DEMO
  • 15. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.15 Products, services, and support for teams who need to do more and go faster • Founded in 2004 • 350+ employees • 16 Offices worldwide EDB supercharges PostgreSQL
  • 16. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.16 • Enterprise PostgreSQL innovations • 4,000+ global customers • Recognized by Gartner Magic Quadrant for 7 years in a row • PostgreSQL community leadership 2019 Challengers Leaders Niche Players Visionaries Abilitytoexecute Completeness of vision 1986 The Design of PostgreSQL 1996 Birth of PostgreSQL 2004 EDB is founded 2020 TodayMaterialized Views Parallel Query JIT Compilation Heap Only Tuples (HOT) Serializable Parallel Query We’re database fanatics who care deeply about PostgreSQL Expertise
  • 17. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.17 Market Success Globally
  • 18. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.18 Core team Major contributors Contributors EDB Open Source Leadership Named EDB open source committers and contributors Akshay Joshi Amul Sul Ashesh Vashi Ashutosh Sharma Jeevan Chalke Dilip Kumar Jeevan Ladhe Rushabh Lathia Devrim Gündüz Robert Haas Bruce Momjian Dave Page Designates PostgreSQL committers
  • 20. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.20 Contact EDB in APJ Other resources Thank You Australia & New Zealand: E: [email protected] S E Asia & Hong Kong: E: [email protected] Japan: E:[email protected] S Korea: E: [email protected] India, Sri Lanka & Bangladesh: E: [email protected] Postgres Pulse EDB Youtube Channel
  • 21. Thank You EDB supercharges Postgres to help our customers overcome these challenges.