Introduction of Postgres Plus Advanced Server
Transcript of Introduction of Postgres Plus Advanced Server
© 2013 EnterpriseDB Corporation. All rights reserved. 1
Introduction of Postgres Plus Advanced Server
Jihoon Kim, Principal Sales Engineer, EnterpriseDB
2013-11-21
© 2013 EnterpriseDB Corporation. All rights reserved. 2
• Introduction of EnterpriseDB
• PostgreSQL & Postgres Plus Advanced Server
• Oracle Compatibility
• What’s New in PPAS 9.3
• Case Studies
Agenda
© 2013 EDB All rights reserved 8.1. 3
Introduction of EnterpriseDB
© 2013 EnterpriseDB Corporation. All rights reserved. 4
Providing enterprises with the cost-performance benefits of Postgres by offering the products, resources, support and dependability required for high-level commercial applications.
• 140+ employees
• 2,500+ customers across all market segments
• Global presence with offices in North America, Europe, Asia
• Fast growing: 60%+ YOY sales growth in 2012, 80%+ YOY 2013
• Strong financial banking:
© 2013 EnterpriseDB Corporation. All rights reserved. 5
EDB Serves ALL Your Postgres Needs
PostgreSQL
Postgres Plus Advanced Server Postgres Plus
Cloud
© 2013 EnterpriseDB Corporation. All rights reserved. 6
Enabling Commercial Adoption of Postgres
PostgreSQL
Fast development cycles
Thousands of developers
Advanced features
No vendor lock-in
Low cost
Enterprise Requirements
24/7 support
Services and training
Enterprise-class features & tools
Indemnification
Product road-map
Responsiveness, dependability & control
Postgres Plus Advanced Server ‒ The Best of Both Worlds
Postgres Innovation and Enterprise Reliability
© 2013 EnterpriseDB Corporation. All rights reserved. 7
New Gartner ODBMS Magic Quadrant
Gartner Comments:
• Community leadership — EnterpriseDB is the primary contributor to the PostgreSQL community and is responsible for many new features of PostgreSQL, including JSON.
• Functionality — The functionality of EnterpriseDB's Postgres Plus has increased greatly, and with the Oracle Compatibility Feature is now more than sufficient to run both mission-critical and non-mission-critical applications.
• Stability and compatibility — References specifically call out compatibility with Oracle, the stability of the DBMS and product support as strengths.
© 2013 EnterpriseDB Corporation. All rights reserved. 8
EDB Global 1000 Customers
Accenture
ADP
Aetna
AT&T
AutoZone
BAE Systems
Banco do Brasil
Boeing
Bouygues Telecom
Broadcom
Cisco Systems
Citigroup
Cognizant Technology Solutions
Computer Associates
Computer Science Corporation
Deere & Company
Dell
Deutsche Boerse AG
eBay
EMC Corporation
Emerson Electric
Ericsson
Fujitsu
General Electric (GE)
Grupo BBVA
HP
IBM
Northrop Grumman
Nucor
ONGEI
Panasonic
QUALCOMM
Raytheon
RSA
SAP
Schneider Electric
Seagate
Siemens
SK Telecom
Softbank
Sony
Swisscom
Symantec
Syngenta Crop Protection
Tata Consultancy Services
Telstra
The GAP
Tokio Marine & Nichido Fire Insurance
Toyota
Union Pacific Railroad
VMWare
Walt Disney
Wipro
Xerox
Yahoo
ICICI
Infosys
JPMorgan Chase
KDDI
KT
Kubota
Kyocera
Lockheed Martin
MasterCard International
McKesson
Mizuho Information & Research Institute
Mosaic ATM
Motorola
NEC
Nippon Telegraph and Telephone
Nokia
The World’s Largest Corporations
FORTUNE GLOBAL
© 2013 EnterpriseDB Corporation. All rights reserved. 9
Survey: Adoption Drivers for Postgres
© 2013 EDB All rights reserved 8.1. 10
PostgreSQL & Postgres Plus Advanced Server
© 2013 EnterpriseDB Corporation. All rights reserved. 11
• Most mature open source RDBMS technology
• Enterprise-class features (built like Oracle, DB2, SQL Server)
• Strong, independent community driving rapid innovation
Postgres: A Proven Track Record
Fully ACID Compliant
MVCC
Point in Time Recovery (PITR)
Data and Index Partitioning
Bitmap Indexes
ANSI Constraints
Triggers & Stored Functions
Views & Data Types
Nested Transactions
Online Backup
Online Reorganization
Foreign Keys
Streaming Replication
Multi-Core Support
© 2013 EnterpriseDB Corporation. All rights reserved. 12
Synchronized with and contributing to the PostgreSQL community
Postgres Plus: A Super-Set of Features
© 2013 EnterpriseDB Corporation. All rights reserved. 13
Year Release PostgreSQL
Baseline Features
Postgres Plus
Additional Features
2005 to
2009 8.0 to 8.4
• Native Support for MS Windows
• Savepoints, Point-in-time recovery
• Two-phase commit
• Warm Standby
• Table spaces, Partitioning
• Window functions
• Autovacuum
• Replication, Warm standby
• Column Level Permissions
• Full Text Search
• Heap Only Tuples (HOT)
• Predefined reusable Function Packages
• Bulk collection and Bulk bind performance
• High speed bulk data loads with error handling
• SQL Optimizer Hints
• Dynamic runtime instrumenting of SQL wait states
• User defined object types
• Explicit Commit / Rollback Control in procedures
• Hierarchical Queries
• SQL/Protect against SQL injection attacks
• Full Text Search
• Heap Only Tuples (HOT)
2010 9.0
• Streaming replication
• Hot standby
• Windows 64 bit Support
• Deferrable unique constraints and Exclusion constraints
• No restore In-place version upgrades
• SQL Profiler
• Index Advisor
• Parallel Bulk Data Load
• VARRAY support
• In-place version upgrades
2011 9.1
• Synchronous replication
• Unlogged tables
• Serializable Snapshot Isolation
• Writeable Common Table Expressions (WITH)
• Row Level Security
• Declarative Partitioning syntax
• Index-only scans (covering indexes)
• Linear read scalability to 64 cores
2012 9.2
• Index-only scans (covering indexes)
• Linear read scalability to 64 cores
• Cascaded streaming replication
• JSON support, Range Types
• MySQL Foreign Data Wrappers for SQL/MED
• INSERT APPEND hint
• Table() function support for nested tables
• xDB Multi-master replication
• Expanded Object Type support
• MySQL Foreign Data Wrappers for SQL/MED
2013 9.3
• Materialized Views
• 64 bit LOBs up to 4TB in size
• Custom background workers
• Writable Foreign Data Wrappers
• Materialized Views
• Support for 1000s of Partitions
• Partition write improvements over 400x
• Partition Read Improvements over 75x
PostgreSQL & Postgres Plus Evolution
(EDB CONTRIBUTION)
(EDB CONTRIBUTION)
(EDB CONTRIBUTION)
(EDB CONTRIBUTION)
• Rapid ongoing feature development
• EDB continuously driving new enterprise capabilities into Postgres Plus
• EDB contributes key features back into community PostgreSQL
© 2013 EnterpriseDB Corporation. All rights reserved. 14
Postgres Plus: Everything in PostgreSQL PLUS…
Security: • Fine Grained Audit Logging
• Row Level Security (VPD)
• SQL injection attack guard
• Server-side code protection
• EAL2 certification
Bundled Tools: • Oracle & SQL Server to
Postgres replication, including multi-master replication
• Enterprise management, monitoring, and tuning with Postgres Enterprise Manger
• Oracle & SQL Server to Postgres Migration Tools
• Update Monitor
Oracle Compatibility: • 60% of customers migrate
in <2 weeks
• PL/SQL, OCI support
• Oracle SQL extensions
• User defined objects
• Function packages
• Database links
• Oracle-like tools: EDB*Loader, EDB*Plus, EDB*Wrap
Performance: • Partitioning:
-400x faster writes -76x faster selects
• SQL Profiler--find / fix slow SQL workloads
• Bulk Data Loader--2x faster
• Index Advisor—speeds up slow queries
• Query Hints--optimizer control
• DynaTune—auto-tunes for memory upgrades
• Bulk Collect/Fetch/Binding of arrays
• Dynamic runtime statistics reveals SQL wait bottlenecks
© 2013 EnterpriseDB Corporation. All rights reserved. 15
EDB Agile Enterprise Enablement
Agile Enablement
Discover
Plan
Develop
• Inventory all DB’s
• Group apps into logical & manageable sets
• Assess in-house skill levels
• Create multi-year transformational road map
• Assemble cross- functional teams
• ID license options & cost savings potential
• Existing: • Migration Assessment testing • Prioritization, scheduling, execution
• Architectural assistance
• Infrastructure DBA services
• Developer subscriptions
• Migration Factory assistance
• EDB professional services
• New: • ROI Validation • Performance design
• Ongoing support
• Remote DBA
• Training & certification
• Cloud DBMS
Operate Learn • Postgres & EDB capabilities
• Best practices
• Business case parameters
Res
ou
rce
C
om
mitm
en
t
Checkpoint
• 3-4 month cycles are repeated for manageable groups of apps/DB’s
• Business metrics are continuously measured and priorities reassessed
© 2013 EnterpriseDB Corporation. All rights reserved. 16
Survey: Re-Use of DBA Skills
51% had slight to
no modifications
© 2013 EnterpriseDB Corporation. All rights reserved. 17
Oracle Compatibility
© 2013 EnterpriseDB Corporation. All rights reserved. 18
1 Analyze Oracle Schema Layout:
Assessing Ease of Migration
2 Review features used in Oracle client application:
Static Analysis of Oracle Schema
and database layout
Static Analysis of Source Code
Developer Interviews
© 2013 EnterpriseDB Corporation. All rights reserved. 19
3 Evaluate results along 5 axis using proven algorithms:
Assessing Ease of Migration (Cont.)
4 Migration Plan: • Score of 1 – 10 assigned based on
analysis of steps 1 and 2
− 1 difficult – 10 minimal effort
• Work arounds for identified missing features
• Time estimates given in person weeks
© 2013 EnterpriseDB Corporation. All rights reserved. 20
Survey: Ease of Migration
Organizations that migrated Oracle-based applications to Postgres Plus Advanced Server stated the degree to which they had to modify these applications.
51% had
slight to no
modifications
© 2013 EnterpriseDB Corporation. All rights reserved. 21
What’s New in PPAS 9.3
© 2013 EnterpriseDB Corporation. All rights reserved. 22
PostgreSQL 9.3 Performance
• pg_upgrade parallel process enhancements
pg_upgrade performance
seconds vs number of tables
© 2013 EnterpriseDB Corporation. All rights reserved. 23
Materialized View Example
SELECT survey_date, count(survey_result_count) total_surveys, round(avg(survey_result_count)) average_result, min(survey_result_count) smallest_sample, max(survey_result_count) largest_sample FROM survey_results GROUP BY survey_date ORDER BY survey_date ASC;
CREATE MATERIALIZED VIEW survey_summary AS SELECT survey_date, count(survey_result_count) total_surveys, round(avg(survey_result_count)) average_result, min(survey_result_count) smallest_sample, max(survey_result_count) largest_sample FROM survey_results GROUP BY survey_date ORDER BY survey_date ASC; SELECT * FROM survey_summary;
CREATE TABLE survey_results (id serial PRIMARY KEY, survey_date date,
survey_id int, survey_result_count int);
Takes 7.5 seconds to
execute on test machine on
table with 20 million rows:
7552.442 ms
Creating the view takes the
same time to execute as the
original query.
Executing survey_summary
query takes 4.62ms
© 2013 EDB All rights reserved. 24
Advanced Server 9.3 Oracle Compatibility
• Package Support for: DBMS_RANDOM
• Package Support for: DBMS_SCHEDULER
• Package Support for: UTL_HTTP
• Package Support for: UTL_URL
• Support for Functions: REGEXP_INSTR and REGEXP_SUBSTR
• Oracle compatible Materialized Views
© 2013 EnterpriseDB Corporation. All rights reserved. 25
Partitioning Improvements – Fast pruning
© 2013 EnterpriseDB Corporation. All rights reserved. 26
Scale to Larger # of Partitions
© 2013 EnterpriseDB Corporation. All rights reserved. 27
Survey: Applications Built on Postgres
© 2013 EDB All rights reserved 8.1. 28
Case Studies
© 2013 EnterpriseDB Corporation. All rights reserved. 29
Mission Critical 시스템의 쉽고 빠른 마이그레이션, 빠른 응답 속도
사례 : KT 사전 가입 시스템
• KT의 전략 단말인 아이폰 5 예약 판매 수용을 위한 사전 가입 시스템을 오픈 소스 SW로 전환 구축
• 도전 과제
− 높은 응답 속도
− 단기간 마이그레이션
• 도입 결과
− 최대 TPS : 6,200 TPS (예약 판매 시작 후 5분 동안 약 80만 건의 차수 발급이 가능)
− Legacy 증설대비 투자 비용 수십억원 절감 (H/W, S/W 라이선스)
− PPAS DBMS 안정성 및 성능 검증, 확대 도입 기반 마련
© 2013 EnterpriseDB Corporation. All rights reserved. 30
고가용성, 개발자 스킬 재사용,
사례 : Sony Online Entertainment
• 미국내 최대 온라인 게임 회사
• 도전 과제
− DB 운영 및 개발 기술의 재사용 가능
− 높은 어플리케이션 이식성 (Oracle 호환성)
− Mission critical 업무의 지원이 가능한 상용 제품 수준의 안정성과 신뢰성
− 확장성 및 높은 응답 속도의 제공
• 도입 효과 − 막대한 금액의 Oracle 라이센스 비용 절감
− 어플리케이션의 80% 이상이 수정없이 전환 가능
− 기존 Oracle DBA의 기술 활용 가능
− 빠른 응답 속도의 보장
− 요구 수준 이내의 failover 수행 완료
© 2013 EnterpriseDB Corporation. All rights reserved. 31
The Rise of the Intelligent Economy
“From recession comes an opportunity to reset a number of industry structures…there is an opportunity to infuse
industries with technologies that position them to operate more effectively in the next 50 years.”
Lessons Learned in Building the Intelligent Economy, May 2010
세계 경제 위기로 산업 재편의 기회가 생겼으며, 향후 50년간 내에는 기술을 통해
기업들이 보다 효과적으로 자리 잡을 수 있는 계기가 될 것이다.
© 2013 EnterpriseDB Corporation. All rights reserved. 32
새로운 IT Economy에서 Postgres Plus Advanced Server의 역할
The Rise of the Intelligent Economy 연간
IT
투자
예산
전략적 투자
인프라 투자
인프라 투자
전략적 투자
절감된 비용 비용 절감 효과 달성
오픈 소스 DB로 전환
비즈니스 가치 극대화 Open Source based Database
© 2013 EnterpriseDB Corporation. All rights reserved. 33