2. https://www.2ndQuadrant.com
PGConf APAC
Singapore | March 22-23, 2018
Who am I?
● Head of Marketing & Products @ 2ndQuadrant
● Got ‘pushed’ into PostgreSQL in 2004, ended up falling in
love with it
● 2ndQuadrant is my 4th PostgreSQL company
● Active in the global PostgreSQL community
○ Head of PostgreSQL User Groups
■ Dubai | Islamabad
○ Member organizing team
■ 2Q PGConf | PGConf UK | PGConf APAC
○ Member talk selection committee: PGDay OZ
○ Advocacy at various events across the world
3. https://www.2ndQuadrant.com
PGConf APAC
Singapore | Mar 22-23, 2018
Introducing PostgreSQL
● Database Management System
○ Relational & Object-Relational Features
○ ACID compliant
● Fully Open Source
○ Most liberal open source license: BSD
○ Free to use, free to distribute …
UNLIMITED & FOREVER!
○ Open to enhancements and contributions
● Runs on all major operating systems
○ Linux
○ Unix (AIX, BSD, HP-UX, SGI IRIX, OSX,
Solaris, Tru64)
○ Windows
4. https://www.2ndQuadrant.com
PGConf APAC
Singapore | Mar 22-23, 2018
PostgreSQL is Cool !!!
Maximum
Database Size Unlimited
Table Size 32 TB
Row Size 1.6 TB
Field Size 1 GB
Rows per Table Unlimited
Columns per Table 250 - 1600 (depending on column types)
Indexes per Table Unlimited
5. https://www.2ndQuadrant.com
PGConf APAC
Singapore | Mar 22-23, 2018
PostgreSQL is Cool !!!
● Multi-User, highly concurrent design
● SQL:2011 compliant
● Designed for extensibility
● Can be used for OLTP as well as OLAP
operations
● Can be used for Data Warehousing & Data
Mining
6. https://www.2ndQuadrant.com
PGConf APAC
Singapore | Mar 22-23, 2018
NoSQL / Big Data features
● HSTORE
● XML
● JSON & JSONB
● TABLESAMPLE
● BRIN INDEXES
● Parallel sequential scan
● Parallel aggregates
● FDWs
PostgreSQL is Cool !!!
9. https://www.2ndQuadrant.com
PGConf APAC
Singapore | Mar 22-23, 2018
PostgreSQL - History
● Developed by Stonebraker in 1986-93 @ University of California
at Berkeley, after he left Ingres – hence name Post gres
● Literally a ground-up rethink about how databases should work
○ Multiple CPUs
○ Advanced concurrency design
○ User defined datatypes
○ User defined functions
○ Partial indexes
● All these concepts started with PostgreSQL and then went into
other databases
10. https://www.2ndQuadrant.com
PGConf APAC
Singapore | Mar 22-23, 2018
PostgreSQL - History
● University Postgres 1986-1993
● Postgres95 1994-1995
● PostgreSQL 1996-
○ Phase 1: Avoid crashes 1996-1998
○ Phase 2: SQL Compliance 1998-2001
○ Phase 3: Robustness 2001-2004
○ Phase 4: Enterprise Features 2004-2011
○ Phase 5: World Class 2011-
11. https://www.2ndQuadrant.com
PGConf APAC
Singapore | Mar 22-23, 2018
● Open and active community
● Spread across the globe
○ 49 Local User Groups in 25 countries
● Code contributors
PostgreSQL Community
Core Team
Committers
Major Contributors
Contributors
12. https://www.2ndQuadrant.com
PGConf APAC
Singapore | Mar 22-23, 2018
Major contributor to open source PostgreSQL
● Logical Replication (10.0)
● Parallel Aggregates (9.6)
● Postgres-XL - MPP & horizontally scalable
PostgreSQL (9.5)
● Multi Master Replication - BDR (9.4)
● Hot Standby (9.0)
● Point in time Recovery (8.0)
About 2ndQuadrant
13. https://www.2ndQuadrant.com
PGConf APAC
Singapore | Mar 22-23, 2018
● Biggest collective of PostgreSQL contributors
○ 4 committers (including 1 member of core team,
out of only 5 in the world)
○ 17 major contributors
● Thought leader in PostgreSQL development
○ Major sponsors of the PostgreSQL project
○ The only company to contribute major features
into all of the last 13 releases
About 2ndQuadrant (contd … )
15. https://www.2ndQuadrant.com
PGConf APAC
Singapore | Mar 22-23, 2018
What does that mean for you?
● The same contributors to PostgreSQL are the ones
that make up the 2ndQuadrant Support and Services
teams
● Our extensive contributions mean that no one in the
world knows PostgreSQL better than we do
● We use this knowledge to provide a guaranteed
24-hour bug fix
17. https://www.2ndQuadrant.com
PGConf APAC
Singapore | Mar 22-23, 2018
2ndQuadrant experts are local to you
● Presence in 20+ countries
● Operating companies in: USA, UK, France, Italy, Germany,
Ecuador, Australia, India
● Support customers on 6 continents
18. https://www.2ndQuadrant.com
PGConf APAC
Singapore | Mar 22-23, 2018
24/7 Production Support
When it’s critical, you can count on us!
Our Guarantees
● A live local person response to your inquiry within 15 minutes
● A workaround to your problem within 4 hours
● A Bug fix within 24 hours
“The [2ndQuadrant] support is always
committed to the best answer. Not the
first answer.”
- Otávio Sampaio; CIO, Fidelize
19. https://www.2ndQuadrant.com
PGConf APAC
Singapore | Mar 22-23, 2018
Remote DBA
Put your database in Expert hands
● Real-time monitoring and alerts
● 24/7 Production Support Service
● Annual Health Check
● Reduce cost on resources
● Save money on downtime
● Frequent status reports & updates
20. https://www.2ndQuadrant.com
PGConf APAC
Singapore | Mar 22-23, 2018
Reasons to get a Health Check
● Change of usage patterns
● Increase in size & scale
● Hardware Upgrades
● Maximize bang for your buck!
● Validate configuration & deployment
against best practices
PostgreSQL Health Check
Prevention is better than a cure
21. https://www.2ndQuadrant.com
PGConf APAC
Singapore | Mar 22-23, 2018
Performance Tuning
Maximize your Return On Investment
In-depth analysis of
● Database Configuration Tuning
● Table Partitioning
● Hardware Usage
● Connection Pooling Review
● Slow Running Queries
22. https://www.2ndQuadrant.com
PGConf APAC
Singapore | Mar 22-23, 2018
● A data breach will cost the average
company about $3.8 million
● PostgreSQL Security Audit helps you
✓ Identify breach points in your database
✓ Ensure SLAs are met
✓ Classify Vulnerabilities
✓ Validate Security of Backups and Backup
Channels
✓ Identify Outdated Software and Libraries
✓ Comply with regulations like GDPR, PCI, &
DSS
PostgreSQL Security Audit
Identify threats to harden your database
24. https://www.2ndQuadrant.com
PGConf APAC
Singapore | Mar 22-23, 2018
● Postgres-BDR (Bi-Directional Replication)
○ Multimaster Replication for PostgreSQL
○ Geographically distributed databases
○ Asynchronous logical replication
● pglogical
○ Logical Replication
○ Migrate, upgrade, aggregate, scale out, or integrate
○ Replicate across PostgreSQL major versions
● repmgr
○ High availability and auto-failover management
○ Manages PostgreSQL clusters using Hot Standby capability
○ Simplifies administration and daily management
Popular Tools by 2ndQuadrant
25. https://www.2ndQuadrant.com
PGConf APAC
Singapore | Mar 22-23, 2018
Popular PostgreSQL Tools (contd …)
● Postgres-XL
○ Horizontally scalable PostgreSQL
○ OLTP and OLAP workloads with MPP parallelism
○ Fully ACID compliant including MVCC
● Barman
○ Backup strategy & disaster recovery management
○ Full hot and incremental backups with zero data loss
○ Parallel copy for backup and recovery
● OmniDB
○ Interactive browser-based tool for database management
○ Light weight, responsive interface
○ Easy to manage, SQL editing