SlideShare a Scribd company logo
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.
How to use
postgresql.conf to
configure and tune the
Postgres server
Raghavendra Rao; Managing Consultant
Marc Linster; SVP, Product Development and
Support
Bruce Momjian; Postgres Evangelist
1
Welcome – Housekeeping
Items
• Slides and recording will be available in next 48 hours
• Submit questions via GotoWebinar – will be answering at end
• We will be sharing info about EDB and Postgres later
2
Webinar Series
Feb 19 2020 Conquering Data Migration from Oracle to Postgres
March 4 2020 Using Terraform to deploy highly available Postgres
March 18 2020
How to use postgresql.conf to configure and tune the
Postgres server
April 1 2020
Optimizing Performance and Security with Platform
Native Packaging
April 15 2020 Window Functions in Postgres
3
Agenda
● Who is EDB?
● About postgresql.conf
● Interacting with postgresql.conf
○ Allowed change context (reload, restart, recompile)
○ Ways to change and apply settings
● Parameters classification
● Tuning recommendations
● Tuning Tools
● Q & A
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.4
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.5
About postgresql.conf
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2020. All rights reserved.6
About postgresql.conf
A configuration parameter file that resides in Postgres cluster(data directory) to specify the server
behavior on connection, memory, logging, vacuuming and other behaviors.
File specifications:
• Located in $PGDATA/postgresql.conf (some distro puts in /etc)
• A plain text with tunable settings
• Each parameter preceded by pound sign (‘#’)
• At the beginning they are set with default values
• Number of tunable parameters in postgresql.conf file - 270+
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2020. All rights reserved.7
Interacting with postgresql.conf
• Every setting in file consists of
name = value
• “name” is a parameter name/Grand Unified Configuration(GUC)
• “value” is a unit that parameter accepts, which can be boolean, integer,
float, units(kB/MB/GB/TB), time(ms,s,min,h,d), strings and lists.
Example:
shared_buffers = 1GB
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2020. All rights reserved.8
Allowed change context
Every configuration setting has an associated context in which it’s allowed to be changed. There are set of context types:
• Internal - a parameter can only be set at compile time
• postmaster - a parameter is updated only when a full server restart is done
• signup - a parameter is changed by sending server a HUP signal(pg_ctl reload)
• backend - a parameter is similar to “sighup”, however changes will not impact any already running database backend sessions.
Only new sessions will accept the new changes.
• superuser-backend - a parameter is similar to “sighup”, however changes will not impact any already running database backend
sessions. Only new sessions will accept the new changes.(only super user change the settings)
• superuser - a parameter can be changed by any database superuser
• user - a parameter can be changed by the individual user in his session(per-session basis)
Query to find specific configuration information:pg_settings.context distinct values:
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2020. All rights reserved.9
Ways to change and apply settings
As per parameter context, to update values there two ways change
• Reload
• pg_reload_conf()
• pg_ctl -D <data_directory> reload (SIGHUP)
• HUP postmaster
• Restart
• pg_ctl restart
• OS Service restart
• Other Changes
• ALTER SYSTEM
• ALTER DATABASE <dbname> SET <parameter setting>
• ALTER USER <username> SET <parameter setting>
• Session Level
• BEGIN.. SET <parameter setting>; END;
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2020. All rights reserved.10
Parameter classifications….1
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2020. All rights reserved.11
Parameter classifications….2
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2020. All rights reserved.12
Parameter classifications….3
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2020. All rights reserved.13
Parameter classifications….4
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2020. All rights reserved.14
Parameter classifications….5
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2020. All rights reserved.15
Parameter classifications….6
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2020. All rights reserved.16
Parameter classifications….7
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2020. All rights reserved.17
Parameter classifications….8
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2020. All rights reserved.18
Parameter classifications….9
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2020. All rights reserved.19
Tuning Recommendations...1
shared_buffers 15% to 25% of available RAM
maintenance_work_mem Total RAM * 0.15 / autovacuum_max_workers
work_mem Total RAM * 0.25 / max_connections
max_connections Start with default 100, if required prefer connection
pooler
effective_cache_size 75% of Total RAM
wal_buffers 1/32nd of shared_buffers capped at 16MB
bgwriter_delay Default 200ms, lower it if heavy writes
bgwriter_lru_maxpages
bgwriter_lru_multiplier
Increase multiplier on system with a heavy write
load.
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2020. All rights reserved.20
Tuning Recommendations...2
wal_level Set according to the replication requirement
min_wal_size (GB)
max_wal_size (GB)
Setting it too low means checkpoints will occur too
frequently, increasing will beneficial for recovery
times.
checkpoint_completion_target Higher the value, the smoother the IO of the
checkpoint
checkpoint_timeout Increase this parameter can increase the amount
of the time needed for crash recovery
random_page_cost Increasing will result index being used over
sequential scans
cpu_tuple_cost Specifies the relative cost of the processing each
row during a query.
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.21
Tools
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2020. All rights reserved.22
Tuning Tools
Few tools will automatically tune by analyzing the server resources and configure PostgreSQL
server for optimal performance.
• Open Source
• pgtune - https://pgtune.leopard.in.ua/#/
• pgbadger (a Log Analyzer) - http://pgbadger.darold.net/
• For EDB Customers
• EDB Postgres Enterprise Manager - Tuning Wizard/Postgres Expert
Useful Links:
• https://wiki.postgresql.org/wiki/Performance_Optimization
• https://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server
ONLY OPEN
SOURCE BASED
RDBMS IN
GARTNER MQ
EDB Recognized 7 Years
In A Row on Gartner’s
Magic Quadrant
23
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2020. All rights reserved.
24
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
25
● 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
26
EDB Postgres Database
24/7 Global Support
Professional Services Postgres Contributions
Tools & Innovation Security/performance
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.27
QUESTIONS
© Copyright EnterpriseDB Corporation, 2028. All rights reserved.28
Tuning concerns or operational worries
about Postgres?
EDB can help!
• DBA Services for Postgres in the Cloud or Postgres in your data centre
• Advice and consulting for Postgres deployments
• Technical Account Management to provide a knowledgeable point of contact
between your team and the EDB technical team
Email info@enterprisedb.com to request a Remote DBA
readiness review
© Copyright EnterpriseDB Corporation, 2020. All rights reserved.29
THANK YOU
info@enterprisedb.com
www.enterprisedb.com

More Related Content

PDF
Best Practices in Security with PostgreSQL
 
PDF
Best Practices & Lessons Learned from Deployment of PostgreSQL
 
PPTX
PostgreSQL as a Strategic Tool
 
PPTX
Expert Guide to Migrating Legacy Databases to Postgres
 
PDF
Making your PostgreSQL Database Highly Available
 
PPTX
An overview of reference architectures for Postgres
 
PDF
Using PEM to understand and improve performance in Postgres: Postgres Tuning ...
 
PPTX
OLTP+OLAP=HTAP
 
Best Practices in Security with PostgreSQL
 
Best Practices & Lessons Learned from Deployment of PostgreSQL
 
PostgreSQL as a Strategic Tool
 
Expert Guide to Migrating Legacy Databases to Postgres
 
Making your PostgreSQL Database Highly Available
 
An overview of reference architectures for Postgres
 
Using PEM to understand and improve performance in Postgres: Postgres Tuning ...
 
OLTP+OLAP=HTAP
 

What's hot (20)

PPTX
Public Sector Virtual Town Hall: High Availability for PostgreSQL
 
PPTX
Database Dumps and Backups
 
PPTX
New and Improved Features in PostgreSQL 13
 
PPTX
New enhancements for security and usability in EDB 13
 
PPTX
An overview of reference architectures for Postgres
 
PDF
Understand the Query Plan to Optimize Performance with EXPLAIN and EXPLAIN AN...
 
PPTX
Migration DB2 to EDB - Project Experience
 
PPTX
How to Design for Database High Availability
 
PPTX
PostgreSQL 12: What is coming up?, Enterprise Postgres Day
 
PPTX
Overcoming write availability challenges of PostgreSQL
 
PDF
Introducing Data Redaction - an enabler to data security in EDB Postgres Adva...
 
PPTX
Beginners Guide to High Availability for Postgres
 
PPTX
Automating a PostgreSQL High Availability Architecture with Ansible
 
PDF
Beginner's Guide to High Availability for Postgres
 
PDF
Beginner's Guide to High Availability for Postgres - French
 
PDF
PostgreSQL 13 is Coming - Find Out What's New!
 
PPTX
PostgreSQL as a Strategic Tool
 
PDF
Postgres Deployment Automation with Terraform and Ansible
 
PPTX
Webinar: Managing Postgres at Scale
 
PDF
Why Care Risk Choose PostgreSQL
 
Public Sector Virtual Town Hall: High Availability for PostgreSQL
 
Database Dumps and Backups
 
New and Improved Features in PostgreSQL 13
 
New enhancements for security and usability in EDB 13
 
An overview of reference architectures for Postgres
 
Understand the Query Plan to Optimize Performance with EXPLAIN and EXPLAIN AN...
 
Migration DB2 to EDB - Project Experience
 
How to Design for Database High Availability
 
PostgreSQL 12: What is coming up?, Enterprise Postgres Day
 
Overcoming write availability challenges of PostgreSQL
 
Introducing Data Redaction - an enabler to data security in EDB Postgres Adva...
 
Beginners Guide to High Availability for Postgres
 
Automating a PostgreSQL High Availability Architecture with Ansible
 
Beginner's Guide to High Availability for Postgres
 
Beginner's Guide to High Availability for Postgres - French
 
PostgreSQL 13 is Coming - Find Out What's New!
 
PostgreSQL as a Strategic Tool
 
Postgres Deployment Automation with Terraform and Ansible
 
Webinar: Managing Postgres at Scale
 
Why Care Risk Choose PostgreSQL
 
Ad

Similar to How to use postgresql.conf to configure and tune the PostgreSQL server (20)

PPTX
EDB: Power to Postgres
PDF
New enhancements for security and usability in EDB 13
 
PDF
Expanding with EDB Postgres Advanced Server 9.5
 
PPTX
Enterprise-class security with PostgreSQL - 2
PPTX
EDB Database Servers and Tools
PDF
Online Upgrade Using Logical Replication
 
PPTX
PGEncryption_Tutorial
PPTX
EDB Postgres Platform 11 Webinar
 
PDF
Using PEM to understand and improve performance in Postgres: Postgres Tuning ...
 
PDF
What's New in Postgres Plus Advanced Server 9.3
 
PDF
Upcoming changes in MySQL 5.7
PDF
Managing Postgres at Scale With Postgres Enterprise Manager
 
PDF
Save money with Postgres on IBM PowerLinux
 
PPTX
Neuerungen in EDB Postgres 11
 
PDF
The Central View of your Data with Postgres
 
PPTX
Les nouveautés d'EDB Postgres 11
 
PDF
What's coming in Airflow 2.0? - NYC Apache Airflow Meetup
PPTX
Which PostgreSQL is right for your multi cloud strategy? P2
PDF
MySQL 5.7 New Features to Exploit -- PHPTek/Chicago MySQL User Group May 2014
PPTX
New Integration Options with Postgres Enterprise Manager 8.0
 
EDB: Power to Postgres
New enhancements for security and usability in EDB 13
 
Expanding with EDB Postgres Advanced Server 9.5
 
Enterprise-class security with PostgreSQL - 2
EDB Database Servers and Tools
Online Upgrade Using Logical Replication
 
PGEncryption_Tutorial
EDB Postgres Platform 11 Webinar
 
Using PEM to understand and improve performance in Postgres: Postgres Tuning ...
 
What's New in Postgres Plus Advanced Server 9.3
 
Upcoming changes in MySQL 5.7
Managing Postgres at Scale With Postgres Enterprise Manager
 
Save money with Postgres on IBM PowerLinux
 
Neuerungen in EDB Postgres 11
 
The Central View of your Data with Postgres
 
Les nouveautés d'EDB Postgres 11
 
What's coming in Airflow 2.0? - NYC Apache Airflow Meetup
Which PostgreSQL is right for your multi cloud strategy? P2
MySQL 5.7 New Features to Exploit -- PHPTek/Chicago MySQL User Group May 2014
New Integration Options with Postgres Enterprise Manager 8.0
 
Ad

More from EDB (20)

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

Recently uploaded (20)

PDF
Empathic Computing: Creating Shared Understanding
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Modernizing your data center with Dell and AMD
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
KodekX | Application Modernization Development
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPT
Teaching material agriculture food technology
PPTX
Big Data Technologies - Introduction.pptx
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Approach and Philosophy of On baking technology
PDF
Machine learning based COVID-19 study performance prediction
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
DOCX
The AUB Centre for AI in Media Proposal.docx
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
Empathic Computing: Creating Shared Understanding
Digital-Transformation-Roadmap-for-Companies.pptx
Encapsulation_ Review paper, used for researhc scholars
Modernizing your data center with Dell and AMD
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
KodekX | Application Modernization Development
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Teaching material agriculture food technology
Big Data Technologies - Introduction.pptx
Understanding_Digital_Forensics_Presentation.pptx
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Approach and Philosophy of On baking technology
Machine learning based COVID-19 study performance prediction
Mobile App Security Testing_ A Comprehensive Guide.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Network Security Unit 5.pdf for BCA BBA.
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
The AUB Centre for AI in Media Proposal.docx
“AI and Expert System Decision Support & Business Intelligence Systems”
Per capita expenditure prediction using model stacking based on satellite ima...

How to use postgresql.conf to configure and tune the PostgreSQL server

  • 1. © Copyright EnterpriseDB Corporation, 2020. All rights reserved. How to use postgresql.conf to configure and tune the Postgres server Raghavendra Rao; Managing Consultant Marc Linster; SVP, Product Development and Support Bruce Momjian; Postgres Evangelist 1
  • 2. Welcome – Housekeeping Items • Slides and recording will be available in next 48 hours • Submit questions via GotoWebinar – will be answering at end • We will be sharing info about EDB and Postgres later 2
  • 3. Webinar Series Feb 19 2020 Conquering Data Migration from Oracle to Postgres March 4 2020 Using Terraform to deploy highly available Postgres March 18 2020 How to use postgresql.conf to configure and tune the Postgres server April 1 2020 Optimizing Performance and Security with Platform Native Packaging April 15 2020 Window Functions in Postgres 3
  • 4. Agenda ● Who is EDB? ● About postgresql.conf ● Interacting with postgresql.conf ○ Allowed change context (reload, restart, recompile) ○ Ways to change and apply settings ● Parameters classification ● Tuning recommendations ● Tuning Tools ● Q & A © Copyright EnterpriseDB Corporation, 2020. All rights reserved.4
  • 5. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.5 About postgresql.conf
  • 6. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2020. All rights reserved.6 About postgresql.conf A configuration parameter file that resides in Postgres cluster(data directory) to specify the server behavior on connection, memory, logging, vacuuming and other behaviors. File specifications: • Located in $PGDATA/postgresql.conf (some distro puts in /etc) • A plain text with tunable settings • Each parameter preceded by pound sign (‘#’) • At the beginning they are set with default values • Number of tunable parameters in postgresql.conf file - 270+
  • 7. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2020. All rights reserved.7 Interacting with postgresql.conf • Every setting in file consists of name = value • “name” is a parameter name/Grand Unified Configuration(GUC) • “value” is a unit that parameter accepts, which can be boolean, integer, float, units(kB/MB/GB/TB), time(ms,s,min,h,d), strings and lists. Example: shared_buffers = 1GB
  • 8. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2020. All rights reserved.8 Allowed change context Every configuration setting has an associated context in which it’s allowed to be changed. There are set of context types: • Internal - a parameter can only be set at compile time • postmaster - a parameter is updated only when a full server restart is done • signup - a parameter is changed by sending server a HUP signal(pg_ctl reload) • backend - a parameter is similar to “sighup”, however changes will not impact any already running database backend sessions. Only new sessions will accept the new changes. • superuser-backend - a parameter is similar to “sighup”, however changes will not impact any already running database backend sessions. Only new sessions will accept the new changes.(only super user change the settings) • superuser - a parameter can be changed by any database superuser • user - a parameter can be changed by the individual user in his session(per-session basis) Query to find specific configuration information:pg_settings.context distinct values:
  • 9. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2020. All rights reserved.9 Ways to change and apply settings As per parameter context, to update values there two ways change • Reload • pg_reload_conf() • pg_ctl -D <data_directory> reload (SIGHUP) • HUP postmaster • Restart • pg_ctl restart • OS Service restart • Other Changes • ALTER SYSTEM • ALTER DATABASE <dbname> SET <parameter setting> • ALTER USER <username> SET <parameter setting> • Session Level • BEGIN.. SET <parameter setting>; END;
  • 10. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2020. All rights reserved.10 Parameter classifications….1
  • 11. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2020. All rights reserved.11 Parameter classifications….2
  • 12. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2020. All rights reserved.12 Parameter classifications….3
  • 13. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2020. All rights reserved.13 Parameter classifications….4
  • 14. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2020. All rights reserved.14 Parameter classifications….5
  • 15. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2020. All rights reserved.15 Parameter classifications….6
  • 16. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2020. All rights reserved.16 Parameter classifications….7
  • 17. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2020. All rights reserved.17 Parameter classifications….8
  • 18. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2020. All rights reserved.18 Parameter classifications….9
  • 19. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2020. All rights reserved.19 Tuning Recommendations...1 shared_buffers 15% to 25% of available RAM maintenance_work_mem Total RAM * 0.15 / autovacuum_max_workers work_mem Total RAM * 0.25 / max_connections max_connections Start with default 100, if required prefer connection pooler effective_cache_size 75% of Total RAM wal_buffers 1/32nd of shared_buffers capped at 16MB bgwriter_delay Default 200ms, lower it if heavy writes bgwriter_lru_maxpages bgwriter_lru_multiplier Increase multiplier on system with a heavy write load.
  • 20. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2020. All rights reserved.20 Tuning Recommendations...2 wal_level Set according to the replication requirement min_wal_size (GB) max_wal_size (GB) Setting it too low means checkpoints will occur too frequently, increasing will beneficial for recovery times. checkpoint_completion_target Higher the value, the smoother the IO of the checkpoint checkpoint_timeout Increase this parameter can increase the amount of the time needed for crash recovery random_page_cost Increasing will result index being used over sequential scans cpu_tuple_cost Specifies the relative cost of the processing each row during a query.
  • 21. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.21 Tools
  • 22. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2020. All rights reserved.22 Tuning Tools Few tools will automatically tune by analyzing the server resources and configure PostgreSQL server for optimal performance. • Open Source • pgtune - https://pgtune.leopard.in.ua/#/ • pgbadger (a Log Analyzer) - http://pgbadger.darold.net/ • For EDB Customers • EDB Postgres Enterprise Manager - Tuning Wizard/Postgres Expert Useful Links: • https://wiki.postgresql.org/wiki/Performance_Optimization • https://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server
  • 23. ONLY OPEN SOURCE BASED RDBMS IN GARTNER MQ EDB Recognized 7 Years In A Row on Gartner’s Magic Quadrant 23 CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2020. All rights reserved.
  • 24. 24 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
  • 25. EDB OPEN SOURCE LEADERSHIP NAMED EDB OPEN SOURCE COMMITTERS AND CONTRIBUTORS 25 ● 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
  • 26. 26 EDB Postgres Database 24/7 Global Support Professional Services Postgres Contributions Tools & Innovation Security/performance
  • 27. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.27 QUESTIONS
  • 28. © Copyright EnterpriseDB Corporation, 2028. All rights reserved.28 Tuning concerns or operational worries about Postgres? EDB can help! • DBA Services for Postgres in the Cloud or Postgres in your data centre • Advice and consulting for Postgres deployments • Technical Account Management to provide a knowledgeable point of contact between your team and the EDB technical team Email info@enterprisedb.com to request a Remote DBA readiness review
  • 29. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.29 THANK YOU info@enterprisedb.com www.enterprisedb.com