SlideShare a Scribd company logo
https://news.trivadis.com/blog@KonradHaefeli
Status of the partnership Trivadis and EDB -
Comparing PostgreSQL to Oracle, the best kept
secretsJan Karremans, EDB
Konrad Häfeli, Trivadis
Jan Karremans
Director of Sales Engineering,
EnterpriseDB
• Speaker
• Oracle ACE AI
• … PG Guru ☺
www.trivadis.com
Konrad Häfeli
Head of Product Design and
Partner at Trivadis
• Since 1986 in various IT areas
• Since 1998 with Trivadis AG
• More than 25 years of experience
in Oracle databases
The Trivadis – EDB Story
Managed Oracle DBaaS from Swisscom Cloud powered by Trivadis3 Sep. 2019
TechEvent 2019: Status of the partnership Trivadis and EDB - Comparing PostgreSQL to Oracle, the best kept secrets; Konrad Häfeli, Jan Karremans - Trivadis
Trivadis Platform factory offers
Trivadis Transactional Data Platform offers
The best kept secrets to success…
@johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019
What’s on the menu
Introduction
Comparing technologies
Some words on pricing
Getting started
Conclusion
@johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019
Introduction
@johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019
Disclaimer
Where I say Oracle
I mean Oracle Enterprise Edition + possible options
Where I say PostgreSQL
I mean EnterpriseDB Postgres Advanced Server
@johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019
TechEvent 2019: Status of the partnership Trivadis and EDB - Comparing PostgreSQL to Oracle, the best kept secrets; Konrad Häfeli, Jan Karremans - Trivadis
@johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019
Comparing technologies
@johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019
Besides differences
also lots of similarities
@johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019
General / Capabilities
Terminology
Capacities
Tables and Partitioning
Data Types
Indexes
SQL Capabilities
SQL Extensions
High Availability
Performance / ScalabilitySecurity
Integration
Application Development
Big / Unstructured Data
Management
Incompatibilities
Deployment Options
@johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019
General / capabilities
Both based on IBM research for System R.
https://en.wikipedia.org/wiki/IBM_System_R
Both are (+) relational databases
ACID compliant and MVCC or transactional consistency
Full transaction logging (REDO vs. WAL)
Multi-Tenant architecture
@johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019
Terminology
What Oracle PostgreSQL
Table or Index Table or Index Relation
Row Row Tuple
Column Column Attribute
Data block Data block Page (on Disk)
Page Page Buffer (in Memory)
@johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019
Capacities
Unlimited database size
Unlimited rows per table
Unlimited number of indexes per table
@johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019
Capacities
Max Oracle PostgreSQL
Table size 4 GB x DB_BLOCK_SIZE
defaults to 32 TB
32 TB
Row size 4 TB 1,6 TB
Field size (4 GB - 1) x DB_BLOCK_SIZE 1 GB
Columns per table 1000 250 - 1600
@johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019
Tables and partitions
Entities Oracle PostgreSQL
Temporary tables, (materialized) views,
constraints
Same
Partitioning: range, hash, list,
sub-partitioning & IOT
Similar
Interval partitioning &
Partitioned indexes
Yes No
@johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019
Data types
We have BOOLEAN
Max Oracle PostgreSQL
Integer NUMBER
+ DEC, NUMERIC, SMALLINT, INT,
BINARY_INTEGER, PLS_INTEGER, INTEGER & BIGINT
Floating point BINARY_FLOAT,
BINARY_DOUBLE
+ FLOAT, REAL & DOUBLE_PRECISION
Decimal NUMBER + DEC, DECIMAL, NUMERIC
String CHAR, VARCHAR2, CLOB, NCLOB, NVARCHAR2,
NCHAR, LONG
+ CHARACTER, TEXT, CHAR VARYING, CHARACTER
VARYING, VARCHAR
Binary BLOB, RAW, LONG RAW, BFILE
+ BYTEA
-/- BFILE
@johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019
Data types
Max Oracle PostgreSQL
Date / Time Yes
Row id Yes
XMLType Yes
JSON is_json check constraint native JSON & JSONB
with 58 operators, functions & relational converters
Spatial Yes
@johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019
Indexes
Entities Oracle PostgreSQL
B-Tree, hash, expressions, partial, full text
search, spatial
Same
Reverse, bitmap, block range Similar
Block range = Smart Scan
K-nearest-neighbor With options Native
GIST, GIN
Speed up full-text searches
No Yes
@johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019
SQL Capabilities
Entities Oracle PostgreSQL
Union, Intersect, Except, Inner joins,
Outer joins, Merge joins, Common Table
expressions, Windowing functions,
Parallel query, Query hints, Alter session
& Dynamic SQL
Same
Transactional DDL No Yes
@johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019
SQL Extensions
Entities Oracle PostgreSQL
Dual, DECODE, Rownum, Sysdate,
Systimestamp, NVL & NVL2
Same
@johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019
High availability
Entities Oracle PostgreSQL
PITR
Point In Time Recovery
Similar
Backup and recovery tools RMAN BART
Standby database
(Active)
Data Guard
Streaming
replication
Flashback
Query, Table, Database
Yes No
@johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019
Performance & Scalability
Entities Oracle PostgreSQL
Connection pooling
CPU & IO Resource limits
Similar
Columnar store InMemory option cstore FDW
In-memory database well, yes… No
Multi-master replication
Golden Gate
Quest Shareplex
Dbvisit Replicate
Yes
@johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019
Security
Entities Oracle PostgreSQL
Authentication support
LDAP, SSL, RADIUS, PAM,
Kerberos, GSSAPI, SSPI
Connection encryption, password profiles,
code wrapping, Ansi SQL grants, column level security, row level security
(Virtual Private Database),
fine grained auditing, data encryption toolkit,
database firewall
Similar
Database-connection
encryption & white lists
No Yes
Audit Vault Yes No
@johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019
Integration
Entities Oracle PostgreSQL
Database links, (a)synchronous
transaction-log shipping, distributed
transactions,
distributed queries
Similar
Session based
synchronous replication
No Yes
Integration with
SQL Server, Sybase,
Hadoop, MongoDB &
MySQL
Yes, FDW
@johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019
Application development
Entities Oracle PostgreSQL
PL/SQL Yes Compatible
Additional programming
languages
to PL/SQL
Java, C, C++
PL/pgSQL, PL/Java, C,
C++, PL/Perl, Python,
PL/Tcl, PL/R
@johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019
Application development
Entities Oracle PostgreSQL
Java, JDBC, ODBC, .NET, user defined functions &
objects, nested transactions, external routines Same
Stored procedures, triggers, cursors, bulk collect,
anonymous blocks, associate arrays, nested
tables, varrays, hierarchical queries, pragma
restrict_reference & except_init, user defined
exceptions, object types, sub types, synonyms,
sequences, invoker rights, statement level
rollback
Similar
@johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019
Big & Unstructured data
Entities Oracle PostgreSQL
Spatial Good Better
Key-value store &
Full Text Search
Similar
XML Storage, Compression Yes No !!
Hadoop, MongoDB, Cubes Yes
!! In the OS we trust…
@johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019
Some more perspective
@johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019
Close versus Open
Develop solutions to sell
Primary goal is to do business
Develop solutions to solve a problem
Primary goal is to solve a problem
@johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019
Close versus Open
Open software shows the math, not just the answer
No reverse engineering, just a good read
Allows for tailoring of solutions
@johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019
Isolated versus integrated
Oracle has an isolated operating environment
Operating system like qualities
PostgreSQL integrates in it’s surroundings
Eliminating the need to “re-invent the wheel”
@johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019
Shared everything versus
shared nothing
Courtesy: Ben Stopford
@johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019
Real Application Cluster
Courtesy: Uwe Hesse
@johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019
Multi Master Replication
Courtesy: ULX Hungary
Include pgpool II
@johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019
Some words on pricing
@johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019
How does EnterpriseDB do it
Subscriptions just for databases
Independent of virtualisation
Always inclusive of everything *
No police
@johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019
What does EnterpriseDB bring?
Per year per core
EnterpriseDB Postgres Standard Server
EnterpriseDB Postgres Advanced Server
Developer subscription
@johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019
What does it cost
Enterprise Edition
Active Data Guard
Partitioning
Diagnostic & Tuning
Cloud Management
@johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019
What does it cost
0
4000
8000
12000
16000
20000
Oracle EPAS *
4 core server
Maintenance
Maintenance
80% discount
@johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019
What does it cost
0
22500
45000
67500
90000
Oracle EPAS *
4 core server
Maintenance
Maintenance80% discount
@johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019
What does it cost
0
22500
45000
67500
90000
112500
Oracle EPAS *
4 core server
Maintenance
Maintenance
80% discount
License
80% discount
@johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019
Conclusion
@johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019
Well…
Oracle has a solid place in the database eco-system
PostgreSQL has a solid place in the database eco-system
With some help, PostgreSQL can support more
It constitutes a real alternative
In 80% of the cases
@johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019
Wrap-up
Would it be smart to look at PostgreSQL?
From what I have learned…
I would say, yes, please.
&

More Related Content

PDF
TechEvent 2019: Oracle to PostgreSQL - a Travel Guide from Practice; Roland S...
PDF
Ashnik EnterpriseDB PostgreSQL - A real alternative to Oracle
PPTX
Experience sql server on l inux and docker
PPTX
Ein Expertenleitfaden für die Migration von Legacy-Datenbanken zu PostgreSQL
 
PPTX
Oracle to Postgres Schema Migration Hustle
 
PPTX
Sql server 2016 it just runs faster sql bits 2017 edition
PPTX
Application Development & Database Choices: Postgres Support for non Relation...
 
PDF
Key Methodologies for Migrating from Oracle to Postgres
 
TechEvent 2019: Oracle to PostgreSQL - a Travel Guide from Practice; Roland S...
Ashnik EnterpriseDB PostgreSQL - A real alternative to Oracle
Experience sql server on l inux and docker
Ein Expertenleitfaden für die Migration von Legacy-Datenbanken zu PostgreSQL
 
Oracle to Postgres Schema Migration Hustle
 
Sql server 2016 it just runs faster sql bits 2017 edition
Application Development & Database Choices: Postgres Support for non Relation...
 
Key Methodologies for Migrating from Oracle to Postgres
 

What's hot (20)

PPTX
eProseed Oracle Open World 2016 debrief - Oracle 12.2.0.1 Database
PPTX
Oracle database 12c_and_DevOps
PPTX
Enhancements that will make your sql database roar sp1 edition sql bits 2017
PPTX
Sql server hybrid what every sql professional should know
PDF
Application development with Oracle NoSQL Database 3.0
PPTX
EDB's Migration Portal - Migrate from Oracle to Postgres
 
PDF
Database-as-a-Service with Oracle Enterprise Manager Cloud Control 12c and Or...
PPTX
A practical introduction to Oracle NoSQL Database - OOW2014
PPTX
JSON and the Oracle Database
PPTX
Brk2045 upgrade sql server 2017 (on prem, iaa-s and paas)
PPTX
EDB Postgres Platform 11 Webinar
 
PPTX
Experience SQL Server 2017: The Modern Data Platform
PDF
Database@Home : Data Driven Apps : Core-dev or Low Code UI
PDF
Making Postgres Central in Your Data Center
 
PDF
Oracle NoSQL Database release 3.0 overview
PPTX
Best Practices in Security with PostgreSQL
 
PPTX
Brk3288 sql server v.next with support on linux, windows and containers was...
PPTX
SQL Server It Just Runs Faster
PDF
Overview of EnterpriseDB Postgres Plus Advanced Server 9.4 and Postgres Enter...
 
PPTX
SQL Server R Services: What Every SQL Professional Should Know
eProseed Oracle Open World 2016 debrief - Oracle 12.2.0.1 Database
Oracle database 12c_and_DevOps
Enhancements that will make your sql database roar sp1 edition sql bits 2017
Sql server hybrid what every sql professional should know
Application development with Oracle NoSQL Database 3.0
EDB's Migration Portal - Migrate from Oracle to Postgres
 
Database-as-a-Service with Oracle Enterprise Manager Cloud Control 12c and Or...
A practical introduction to Oracle NoSQL Database - OOW2014
JSON and the Oracle Database
Brk2045 upgrade sql server 2017 (on prem, iaa-s and paas)
EDB Postgres Platform 11 Webinar
 
Experience SQL Server 2017: The Modern Data Platform
Database@Home : Data Driven Apps : Core-dev or Low Code UI
Making Postgres Central in Your Data Center
 
Oracle NoSQL Database release 3.0 overview
Best Practices in Security with PostgreSQL
 
Brk3288 sql server v.next with support on linux, windows and containers was...
SQL Server It Just Runs Faster
Overview of EnterpriseDB Postgres Plus Advanced Server 9.4 and Postgres Enter...
 
SQL Server R Services: What Every SQL Professional Should Know
Ad

Similar to TechEvent 2019: Status of the partnership Trivadis and EDB - Comparing PostgreSQL to Oracle, the best kept secrets; Konrad Häfeli, Jan Karremans - Trivadis (20)

PDF
PUGS Meetup Presentation - 11062015
PDF
Lessons PostgreSQL learned from commercial databases, and didn’t
PDF
Trivadis TechEvent 2017 PostgreSQL für die (Orakel) DBA by Ludovico Caldara
PDF
10 things, an Oracle DBA should care about when moving to PostgreSQL
PDF
Optimize with Open Source
 
PPTX
Break Free from Oracle
 
PDF
Save money with Postgres on IBM PowerLinux
 
PPTX
ORDBMS Comparative Report
PPTX
Szabaduljon ki az Oracle szorításából
 
PPTX
An Expert Guide to Migrating Legacy Databases to PostgreSQL
 
PDF
Oracle to Postgres Migration - part 1
PPTX
Expert Guide to Migrating Legacy Databases to Postgres
 
PDF
Case Study_ Migrating from Oracle 19c to PostgreSQL 16 using Ora2PG.pdf
PPTX
Deploy, move and manage Postgres across cloud platforms
PPTX
Enterprise-class security with PostgreSQL - 2
PDF
Reducing the Risks of Migrating Off Oracle
 
PDF
Which postgres is_right_for_me_20130517
 
PPTX
TechEvent PostgreSQL Best Practices
PPTX
Postgre sql best_practices
PPTX
Un guide complet pour la migration de bases de données héritées vers PostgreSQL
 
PUGS Meetup Presentation - 11062015
Lessons PostgreSQL learned from commercial databases, and didn’t
Trivadis TechEvent 2017 PostgreSQL für die (Orakel) DBA by Ludovico Caldara
10 things, an Oracle DBA should care about when moving to PostgreSQL
Optimize with Open Source
 
Break Free from Oracle
 
Save money with Postgres on IBM PowerLinux
 
ORDBMS Comparative Report
Szabaduljon ki az Oracle szorításából
 
An Expert Guide to Migrating Legacy Databases to PostgreSQL
 
Oracle to Postgres Migration - part 1
Expert Guide to Migrating Legacy Databases to Postgres
 
Case Study_ Migrating from Oracle 19c to PostgreSQL 16 using Ora2PG.pdf
Deploy, move and manage Postgres across cloud platforms
Enterprise-class security with PostgreSQL - 2
Reducing the Risks of Migrating Off Oracle
 
Which postgres is_right_for_me_20130517
 
TechEvent PostgreSQL Best Practices
Postgre sql best_practices
Un guide complet pour la migration de bases de données héritées vers PostgreSQL
 
Ad

More from Trivadis (20)

PDF
Azure Days 2019: Azure Chatbot Development for Airline Irregularities (Remco ...
PDF
Azure Days 2019: Trivadis Azure Foundation – Das Fundament für den ... (Nisan...
PDF
Azure Days 2019: Business Intelligence auf Azure (Marco Amhof & Yves Mauron)
PDF
Azure Days 2019: Master the Move to Azure (Konrad Brunner)
PDF
Azure Days 2019: Keynote Azure Switzerland – Status Quo und Ausblick (Primo A...
PDF
Azure Days 2019: Grösser und Komplexer ist nicht immer besser (Meinrad Weiss)
PDF
Azure Days 2019: Get Connected with Azure API Management (Gerry Keune & Stefa...
PDF
Azure Days 2019: Infrastructure as Code auf Azure (Jonas Wanninger & Daniel H...
PDF
Azure Days 2019: Wie bringt man eine Data Analytics Plattform in die Cloud? (...
PDF
Azure Days 2019: Azure@Helsana: Die Erweiterung von Dynamics CRM mit Azure Po...
PDF
TechEvent 2019: Kundenstory - Kein Angebot, kein Auftrag – Wie Du ein individ...
PDF
TechEvent 2019: Oracle Database Appliance M/L - Erfahrungen und Erfolgsmethod...
PDF
TechEvent 2019: Security 101 für Web Entwickler; Roland Krüger - Trivadis
PDF
TechEvent 2019: Trivadis & Swisscom Partner Angebote; Konrad Häfeli, Markus O...
PDF
TechEvent 2019: DBaaS from Swisscom Cloud powered by Trivadis; Konrad Häfeli ...
PDF
TechEvent 2019: More Agile, More AI, More Cloud! Less Work?!; Oliver Dörr - T...
PDF
TechEvent 2019: Kundenstory - Vom Hauptmann zu Köpenick zum Polizisten 2020 -...
PDF
TechEvent 2019: Vom Rechenzentrum in die Oracle Cloud - Übertragungsmethoden;...
PDF
TechEvent 2019: The sleeping Power of Data; Eberhard Lösch - Trivadis
PDF
TechEvent 2019: Tales from a Scrum Master; Ernst Jakob - Trivadis
Azure Days 2019: Azure Chatbot Development for Airline Irregularities (Remco ...
Azure Days 2019: Trivadis Azure Foundation – Das Fundament für den ... (Nisan...
Azure Days 2019: Business Intelligence auf Azure (Marco Amhof & Yves Mauron)
Azure Days 2019: Master the Move to Azure (Konrad Brunner)
Azure Days 2019: Keynote Azure Switzerland – Status Quo und Ausblick (Primo A...
Azure Days 2019: Grösser und Komplexer ist nicht immer besser (Meinrad Weiss)
Azure Days 2019: Get Connected with Azure API Management (Gerry Keune & Stefa...
Azure Days 2019: Infrastructure as Code auf Azure (Jonas Wanninger & Daniel H...
Azure Days 2019: Wie bringt man eine Data Analytics Plattform in die Cloud? (...
Azure Days 2019: Azure@Helsana: Die Erweiterung von Dynamics CRM mit Azure Po...
TechEvent 2019: Kundenstory - Kein Angebot, kein Auftrag – Wie Du ein individ...
TechEvent 2019: Oracle Database Appliance M/L - Erfahrungen und Erfolgsmethod...
TechEvent 2019: Security 101 für Web Entwickler; Roland Krüger - Trivadis
TechEvent 2019: Trivadis & Swisscom Partner Angebote; Konrad Häfeli, Markus O...
TechEvent 2019: DBaaS from Swisscom Cloud powered by Trivadis; Konrad Häfeli ...
TechEvent 2019: More Agile, More AI, More Cloud! Less Work?!; Oliver Dörr - T...
TechEvent 2019: Kundenstory - Vom Hauptmann zu Köpenick zum Polizisten 2020 -...
TechEvent 2019: Vom Rechenzentrum in die Oracle Cloud - Übertragungsmethoden;...
TechEvent 2019: The sleeping Power of Data; Eberhard Lösch - Trivadis
TechEvent 2019: Tales from a Scrum Master; Ernst Jakob - Trivadis

Recently uploaded (20)

PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Approach and Philosophy of On baking technology
PPTX
A Presentation on Artificial Intelligence
PPTX
Cloud computing and distributed systems.
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
cuic standard and advanced reporting.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
20250228 LYD VKU AI Blended-Learning.pptx
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Unlocking AI with Model Context Protocol (MCP)
NewMind AI Monthly Chronicles - July 2025
Approach and Philosophy of On baking technology
A Presentation on Artificial Intelligence
Cloud computing and distributed systems.
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
cuic standard and advanced reporting.pdf
NewMind AI Weekly Chronicles - August'25 Week I
“AI and Expert System Decision Support & Business Intelligence Systems”
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Encapsulation_ Review paper, used for researhc scholars
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy

TechEvent 2019: Status of the partnership Trivadis and EDB - Comparing PostgreSQL to Oracle, the best kept secrets; Konrad Häfeli, Jan Karremans - Trivadis

  • 1. https://news.trivadis.com/blog@KonradHaefeli Status of the partnership Trivadis and EDB - Comparing PostgreSQL to Oracle, the best kept secretsJan Karremans, EDB Konrad Häfeli, Trivadis
  • 2. Jan Karremans Director of Sales Engineering, EnterpriseDB • Speaker • Oracle ACE AI • … PG Guru ☺ www.trivadis.com Konrad Häfeli Head of Product Design and Partner at Trivadis • Since 1986 in various IT areas • Since 1998 with Trivadis AG • More than 25 years of experience in Oracle databases
  • 3. The Trivadis – EDB Story Managed Oracle DBaaS from Swisscom Cloud powered by Trivadis3 Sep. 2019
  • 6. Trivadis Transactional Data Platform offers
  • 7. The best kept secrets to success…
  • 8. @johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019 What’s on the menu Introduction Comparing technologies Some words on pricing Getting started Conclusion
  • 9. @johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019 Introduction
  • 10. @johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019 Disclaimer Where I say Oracle I mean Oracle Enterprise Edition + possible options Where I say PostgreSQL I mean EnterpriseDB Postgres Advanced Server
  • 11. @johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019
  • 13. @johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019 Comparing technologies
  • 14. @johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019 Besides differences also lots of similarities
  • 15. @johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019 General / Capabilities Terminology Capacities Tables and Partitioning Data Types Indexes SQL Capabilities SQL Extensions High Availability Performance / ScalabilitySecurity Integration Application Development Big / Unstructured Data Management Incompatibilities Deployment Options
  • 16. @johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019 General / capabilities Both based on IBM research for System R. https://en.wikipedia.org/wiki/IBM_System_R Both are (+) relational databases ACID compliant and MVCC or transactional consistency Full transaction logging (REDO vs. WAL) Multi-Tenant architecture
  • 17. @johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019 Terminology What Oracle PostgreSQL Table or Index Table or Index Relation Row Row Tuple Column Column Attribute Data block Data block Page (on Disk) Page Page Buffer (in Memory)
  • 18. @johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019 Capacities Unlimited database size Unlimited rows per table Unlimited number of indexes per table
  • 19. @johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019 Capacities Max Oracle PostgreSQL Table size 4 GB x DB_BLOCK_SIZE defaults to 32 TB 32 TB Row size 4 TB 1,6 TB Field size (4 GB - 1) x DB_BLOCK_SIZE 1 GB Columns per table 1000 250 - 1600
  • 20. @johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019 Tables and partitions Entities Oracle PostgreSQL Temporary tables, (materialized) views, constraints Same Partitioning: range, hash, list, sub-partitioning & IOT Similar Interval partitioning & Partitioned indexes Yes No
  • 21. @johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019 Data types We have BOOLEAN Max Oracle PostgreSQL Integer NUMBER + DEC, NUMERIC, SMALLINT, INT, BINARY_INTEGER, PLS_INTEGER, INTEGER & BIGINT Floating point BINARY_FLOAT, BINARY_DOUBLE + FLOAT, REAL & DOUBLE_PRECISION Decimal NUMBER + DEC, DECIMAL, NUMERIC String CHAR, VARCHAR2, CLOB, NCLOB, NVARCHAR2, NCHAR, LONG + CHARACTER, TEXT, CHAR VARYING, CHARACTER VARYING, VARCHAR Binary BLOB, RAW, LONG RAW, BFILE + BYTEA -/- BFILE
  • 22. @johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019 Data types Max Oracle PostgreSQL Date / Time Yes Row id Yes XMLType Yes JSON is_json check constraint native JSON & JSONB with 58 operators, functions & relational converters Spatial Yes
  • 23. @johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019 Indexes Entities Oracle PostgreSQL B-Tree, hash, expressions, partial, full text search, spatial Same Reverse, bitmap, block range Similar Block range = Smart Scan K-nearest-neighbor With options Native GIST, GIN Speed up full-text searches No Yes
  • 24. @johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019 SQL Capabilities Entities Oracle PostgreSQL Union, Intersect, Except, Inner joins, Outer joins, Merge joins, Common Table expressions, Windowing functions, Parallel query, Query hints, Alter session & Dynamic SQL Same Transactional DDL No Yes
  • 25. @johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019 SQL Extensions Entities Oracle PostgreSQL Dual, DECODE, Rownum, Sysdate, Systimestamp, NVL & NVL2 Same
  • 26. @johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019 High availability Entities Oracle PostgreSQL PITR Point In Time Recovery Similar Backup and recovery tools RMAN BART Standby database (Active) Data Guard Streaming replication Flashback Query, Table, Database Yes No
  • 27. @johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019 Performance & Scalability Entities Oracle PostgreSQL Connection pooling CPU & IO Resource limits Similar Columnar store InMemory option cstore FDW In-memory database well, yes… No Multi-master replication Golden Gate Quest Shareplex Dbvisit Replicate Yes
  • 28. @johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019 Security Entities Oracle PostgreSQL Authentication support LDAP, SSL, RADIUS, PAM, Kerberos, GSSAPI, SSPI Connection encryption, password profiles, code wrapping, Ansi SQL grants, column level security, row level security (Virtual Private Database), fine grained auditing, data encryption toolkit, database firewall Similar Database-connection encryption & white lists No Yes Audit Vault Yes No
  • 29. @johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019 Integration Entities Oracle PostgreSQL Database links, (a)synchronous transaction-log shipping, distributed transactions, distributed queries Similar Session based synchronous replication No Yes Integration with SQL Server, Sybase, Hadoop, MongoDB & MySQL Yes, FDW
  • 30. @johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019 Application development Entities Oracle PostgreSQL PL/SQL Yes Compatible Additional programming languages to PL/SQL Java, C, C++ PL/pgSQL, PL/Java, C, C++, PL/Perl, Python, PL/Tcl, PL/R
  • 31. @johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019 Application development Entities Oracle PostgreSQL Java, JDBC, ODBC, .NET, user defined functions & objects, nested transactions, external routines Same Stored procedures, triggers, cursors, bulk collect, anonymous blocks, associate arrays, nested tables, varrays, hierarchical queries, pragma restrict_reference & except_init, user defined exceptions, object types, sub types, synonyms, sequences, invoker rights, statement level rollback Similar
  • 32. @johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019 Big & Unstructured data Entities Oracle PostgreSQL Spatial Good Better Key-value store & Full Text Search Similar XML Storage, Compression Yes No !! Hadoop, MongoDB, Cubes Yes !! In the OS we trust…
  • 33. @johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019 Some more perspective
  • 34. @johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019 Close versus Open Develop solutions to sell Primary goal is to do business Develop solutions to solve a problem Primary goal is to solve a problem
  • 35. @johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019 Close versus Open Open software shows the math, not just the answer No reverse engineering, just a good read Allows for tailoring of solutions
  • 36. @johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019 Isolated versus integrated Oracle has an isolated operating environment Operating system like qualities PostgreSQL integrates in it’s surroundings Eliminating the need to “re-invent the wheel”
  • 37. @johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019 Shared everything versus shared nothing Courtesy: Ben Stopford
  • 38. @johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019 Real Application Cluster Courtesy: Uwe Hesse
  • 39. @johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019 Multi Master Replication Courtesy: ULX Hungary Include pgpool II
  • 40. @johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019 Some words on pricing
  • 41. @johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019 How does EnterpriseDB do it Subscriptions just for databases Independent of virtualisation Always inclusive of everything * No police
  • 42. @johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019 What does EnterpriseDB bring? Per year per core EnterpriseDB Postgres Standard Server EnterpriseDB Postgres Advanced Server Developer subscription
  • 43. @johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019 What does it cost Enterprise Edition Active Data Guard Partitioning Diagnostic & Tuning Cloud Management
  • 44. @johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019 What does it cost 0 4000 8000 12000 16000 20000 Oracle EPAS * 4 core server Maintenance Maintenance 80% discount
  • 45. @johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019 What does it cost 0 22500 45000 67500 90000 Oracle EPAS * 4 core server Maintenance Maintenance80% discount
  • 46. @johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019 What does it cost 0 22500 45000 67500 90000 112500 Oracle EPAS * 4 core server Maintenance Maintenance 80% discount License 80% discount
  • 47. @johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019 Conclusion
  • 48. @johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019 Well… Oracle has a solid place in the database eco-system PostgreSQL has a solid place in the database eco-system With some help, PostgreSQL can support more It constitutes a real alternative In 80% of the cases
  • 49. @johnnyq72Comparing PostgreSQL to Oracle - AOUG 2019 Wrap-up Would it be smart to look at PostgreSQL? From what I have learned… I would say, yes, please. &