© 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)

PDF
The Essential postgresql.conf
ODP
GUC Tutorial Package (9.0)
PPTX
PostGreSQL Performance Tuning
PDF
guc_tutorial_10.pdf
DOC
Quick guide to PostgreSQL Performance Tuning
PDF
The Essential PostgreSQL.conf
PDF
EnterpriseDB's Best Practices for Postgres DBAs
 
PDF
Using PEM to understand and improve performance in Postgres: Postgres Tuning ...
 
PPTX
How to be a Postgres DBA in a Pinch
PPTX
ConfigurationFererererereeerereeiles.pptx
PDF
Hello World with EDB Postgres
 
KEY
Grabbing the PostgreSQL Elephant by the Trunk
PDF
Best Practices for Becoming an Exceptional Postgres DBA
 
PDF
The Art of Database Experiments – PostgresConf Silicon Valley 2018 / San Jose
PPTX
EDB: Power to Postgres
PDF
How does PostgreSQL work with disks: a DBA's checklist in detail. PGConf.US 2015
PPTX
Postgre sql best_practices
PDF
Ashnik EnterpriseDB PostgreSQL - A real alternative to Oracle
PDF
Intro.to.pem webinar.slides-061913
 
PDF
PostgreSQL High_Performance_Cheatsheet
The Essential postgresql.conf
GUC Tutorial Package (9.0)
PostGreSQL Performance Tuning
guc_tutorial_10.pdf
Quick guide to PostgreSQL Performance Tuning
The Essential PostgreSQL.conf
EnterpriseDB's Best Practices for Postgres DBAs
 
Using PEM to understand and improve performance in Postgres: Postgres Tuning ...
 
How to be a Postgres DBA in a Pinch
ConfigurationFererererereeerereeiles.pptx
Hello World with EDB Postgres
 
Grabbing the PostgreSQL Elephant by the Trunk
Best Practices for Becoming an Exceptional Postgres DBA
 
The Art of Database Experiments – PostgresConf Silicon Valley 2018 / San Jose
EDB: Power to Postgres
How does PostgreSQL work with disks: a DBA's checklist in detail. PGConf.US 2015
Postgre sql best_practices
Ashnik EnterpriseDB PostgreSQL - A real alternative to Oracle
Intro.to.pem webinar.slides-061913
 
PostgreSQL High_Performance_Cheatsheet
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
 
PDF
New enhancements for security and usability in EDB 13
 
PPTX
Best Practices in Security with PostgreSQL
 
PDF
Cloud Native PostgreSQL - APJ
 
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
 
New enhancements for security and usability in EDB 13
 
Best Practices in Security with PostgreSQL
 
Cloud Native PostgreSQL - APJ
 

Recently uploaded (20)

PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PDF
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
PDF
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
PDF
Hindi spoken digit analysis for native and non-native speakers
PPTX
Final SEM Unit 1 for mit wpu at pune .pptx
PDF
A novel scalable deep ensemble learning framework for big data classification...
PDF
August Patch Tuesday
PPTX
Modernising the Digital Integration Hub
PDF
DP Operators-handbook-extract for the Mautical Institute
PDF
A contest of sentiment analysis: k-nearest neighbor versus neural network
PDF
CloudStack 4.21: First Look Webinar slides
PDF
sustainability-14-14877-v2.pddhzftheheeeee
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PPTX
observCloud-Native Containerability and monitoring.pptx
PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
PDF
Hybrid model detection and classification of lung cancer
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
NewMind AI Weekly Chronicles – August ’25 Week III
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
Hindi spoken digit analysis for native and non-native speakers
Final SEM Unit 1 for mit wpu at pune .pptx
A novel scalable deep ensemble learning framework for big data classification...
August Patch Tuesday
Modernising the Digital Integration Hub
DP Operators-handbook-extract for the Mautical Institute
A contest of sentiment analysis: k-nearest neighbor versus neural network
CloudStack 4.21: First Look Webinar slides
sustainability-14-14877-v2.pddhzftheheeeee
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
observCloud-Native Containerability and monitoring.pptx
Taming the Chaos: How to Turn Unstructured Data into Decisions
Hybrid model detection and classification of lung cancer
Group 1 Presentation -Planning and Decision Making .pptx
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
NewMind AI Weekly Chronicles – August ’25 Week III

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 [email protected] to request a Remote DBA readiness review
  • 29. © Copyright EnterpriseDB Corporation, 2020. All rights reserved.29 THANK YOU [email protected] www.enterprisedb.com