SlideShare a Scribd company logo
1 of 23
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Online Tech Talks
La serie di webinar AWS in Italiano
Oracle DBMS vs Amazon RDS vs Amazon Aurora PostgreSQL:
principali similitudini e differenze architetturali e di gestione
Speaker
Antonio D’Ortenzio
Solutions Architect, AWS
Obiettivi
§ Confrontare la architettura high-level di Oracle RDBMS con
quella di PostgreSQL evidenziando principali similitudini e
differenze
§ Spiegare i miglioramenti introdotti da Amazon Aurora,
focalizzando il confronto sulla gestione della memoria e del
caching nei casi Oracle vs Amazon RDS PostgreSQL vs Amazon
Aurora PostgreSQL
§ Illustrare i vantaggi di Amazon Aurora, concludendo con un focus
sulla gestione, nei tre scenari, di Transazioni, Redo, Checkpoints,
Commits e Recovery
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Background
• Oracle to Amazon RDS PostgreSQL or Amazon Aurora PostgreSQL: are you
wondering what the differences between your source and your target will be?
• Will the way these engines administer your databases still be the same after
change?
• Application patterns à improvements after completing the platform change
• Strengths of new database technologies à improve your application
performance and reduce your database management burden
• A result of all this is … you surely have lots of comparative questions between
Oracle and PostgreSQL
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Objectives
What this session is
• A collection of most Frequently Asked Comparative Questions received from
customers over the last year
• A collection of the background concepts to the Answers we have been
giving to these questions
What this session is not
• A comprehensive list of ALL differences between Oracle and PostgreSQL
• A discussion around SQL-level and coding differences; for these, please
consider reading the Database Migration Playbook
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Agenda
• Software Architecture
• Memory Management
• Transactions and Recovery Management
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Global Infrastructure
21 Regions
66 Availability Zones (AZ’s)
First 5 Years: 4 Regions
Next 5 Years: 7 Regions
2016-2019: 10 Regions
Coming Soon: 4 Regions
including …
Milan, Italy!
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Regions and Availability Zones
US West (OR)
AZ A AZ B
AZ C
US East (OH)
AZ A AZ B
AZ C
US East (VA)
AZ A AZ B
AZ C AZ D
AZ E
EU (Ireland)
AZ A AZ B
AZ C
Asia Pacific
(Singapore)
AZ A AZ B
AZ C
EU (London)
AZ A AZ B
AWS Regions
China (Beijing)
AZ A AZ B
China (Bejing)
AZ A AZ B
Asia Pacific
(Seoul)
AZ A AZ B
AZ C
AZ A AZ B
AZ C
South America
(São Paulo)
Asia Pacific
(Sydney) Asia Pacific
(Mumbai)
AZ A AZ B
US West (CA)
AZ A AZ B
AZ C
Canada
AZ A AZ B
AZ F
GovCloud (US West)
AZ A AZ B
AZ C
AZ C
China (Ningxia)
AZ A AZ B
AZ C
EU (Paris)
AZ A AZ B
AZ C
EU (Frankfurt)
AZ A AZ B
AZ C
Asia Pacific
(Tokyo)
AZ A AZ B
AZ C AZ D
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Notes
By “Oracle” I will refer to the “On-Premises Oracle RDBMS Enterprise Edition 12c”
• Single-Node
• no ASM à topics in this presentation are not related to/affected by storage architecture details
• no RAC à topics in this presentation are not related to/affected by application profiles,
networking, high availability, etc
• no Exadata à topics in this presentation are not related to/affected by specific aspects of Oracle
Engineered Systems
By “RDS PostgreSQL” I will refer to “Amazon RDS PostgreSQL 11.2-R1”
• Default Configuration, Single-AZ
By “Aurora PostgreSQL” I will refer to “Amazon Aurora PostgreSQL 10.7”
• Default Configuration, Multi-AZ
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Compared Environments: A Bird’s Eye View
EBS EBS EBS
AZ 1 AZ 2 AZ 3
Amazon
Aurora
database
Instance
R/W Master
Node
Storage
Node
Storage
Node
Storage
Node
Storage
Node
Storage
Node
Storage
Node
Amazon
RDS
database
Instance
R/W Master
Node
AZ 1
On-
Premises
Server
R/W Active
Node
On-Premises Storage
ORACLE
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Software Architecture - Question
How is PostgreSQL software
architecture different than
Oracle?
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Architecture Comparison
Stats
Collector
Auto-
vacuum
BG
Writer
WAL
Writer
Check
pointer
Archiver
Database Cluster
OTHERS
…
PG Shared
Memory
Instance
pg_control
pg_xlog (WAL files)
postgresql.conf
pg_tblspc
Backend
“1”
Backend
“n”
PerBackEnd Memory
Postmaster
(Daemon)
…
.
Client
Application
PMON SMON DBWR LGWR CKPT ARCH
Database
OTHERS
…
Instance
Control
Files
Redo Log Files
Parameter
Files
Data Files
SGA
(System
Global Area)
Server
Process “1”
PGA (Program Global Area)
Listener …
.Server
Process “n”
Client
Application
ORACLE
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Software Architecture – Answer / Takeaway
How is PostgreSQL software
architecture different than
Oracle?
There are low-level differences, but at a
high-level background processes and
storage layer items can be conceptually
mapped.
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Memory Management – Questions
How is Memory handled in RDS PostgreSQL and Aurora
PostgreSQL? Are there differences between the two? And if
compared to Oracle?
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Remaining System Memory
Flash Cache
OS Page Cache
Memory Architectures and Cache Management
Amazon EBS
SGA
Shared Pool
Library Cache
Data Dictionary Cache
Redo Log Buffer
PGAs
----------------------
Database Buffer Cache
Shared Memory
WAL Buffer
Backend Processes
----------------------
Shared Buffer Pool
Duplicate OS Buffers
Shared Memory
WAL Buffer
Backend Processes
---------- ----------- -
Shared Buffer Pool
Aurora StorageOn-Premises Storage
ORACLE
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Memory Management – Answers / Takeaways
How is Memory handled in RDS PostgreSQL and Aurora
PostgreSQL? Are there differences between the two? And if
compared to Oracle?
PostgreSQL doesn't maintain a Shared Pool; executable
versions of SQL statements can be cached at the session-level
rather than shared. This approach is against "one-fits-all" but
rather favors a more granular tailoring of SQL executions.
RDS PostgreSQL leverages OS buffer caching in addition to
Shared Memory. Aurora doesn't do that, hence allowing for
larger room for Buffers.
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
TXNs and Recovery Mgmt – Questions
Are UNDO tablespaces going to be available with PostgreSQL?
How are Recovery, Checkpoints and Commits going to be
handled by RDS PostgreSQL and Aurora PostgreSQL?
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
MVCC (Multi-Version Concurrency Control): Differences
ORACLE: Undo Tablespaces <> Redo Logs
Undo Tablespaces contain before images of data blocks that have been read into the
SGA and have been amended. They are used for:
a. Read Consistency
b. Process-Level Transaction Rollback
PostgreSQL: No Undo Tablespaces
• Before images are maintained inside the data files and marked as “expired” when no
longer current
• PostgreSQL does not rollback changes to database rows when a transaction exits
abnormally
• A PostgreSQL table may contain data from transactions exited abnormally
à until the VACUUM process cleans them up
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Redo, Checkpoints, Commits
ORACLE / PostgreSQL
REDO LOGS / WAL
1. No big differences in the way Redo Logs / WAL are used and what their role is
2. REDO logs/WAL are used for DB integrity.
3. Once a change gets written on REDO logs/WAL it’s permanent.
4. Unlike Undo Tablespaces (which are used for individual process-level transaction rollback), REDO logs/WAL are used
for Instance-level recovery.
5. Rolling forward those changes that were written on REDO logs/WAL but not yet on data files
6. Rolling back those changes that were potentially written on data files but not yet on REDO logs/WAL
CHECKPOINT
• Writes all modified Buffers from Memory to Disk
• Trade-Off = Recovery Time vs Performance
COMMIT
• Per Single Transaction
• Guarantees Permanency of a Single Transaction
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Putting It All Together
Stats
Collector
Auto-
vacuum
BG
Writer
WAL
Writer
Check
pointer
Archiver
Database Cluster
OTHERS
…
PG Shared
Memory
Instance
pg_control
pg_xlog (WAL files)
postgresql.conf
pg_tblspc
Backend
“1”
Backend
“n”
PerBackEnd Memory
Postmaster
(Daemon)
…
.
Client
Application
PMON SMON DBWR LGWR CKPT ARCH
Database
OTHERS
…
Instance
Control
Files
Redo Log Files
Parameter
Files
Data Files
SGA
(System
Global Area)
Server
Process “1”
PGA (Program Global Area)
Listener …
.Server
Process “n”
Client
Application
Redo
Log
Buffer
WAL
Buffer
update update
Undo
commit commit
checkpoint checkpoint
ORACLE
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Aurora: No Bottleneck due to Redo/WAL Log Buffer
Amazon Elastic Block Store
(EBS)
/
Redo Log/WAL work items
Redo Log/WAL Buffer
Redo Log/WAL
AZ1
Shared Storage Volume – Transaction Aware
AZ2 AZ3
A B C
D E F
A B C
1234 12344 12344
A AA BB
CCC
B
A B C
A B C
ORACLE
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon Aurora Reduced Recovery Time Up to 97%
Transaction-aware storage system recovers almost instantly
3 GiB redo
recovered in 19 seconds
10 GiB redo
recovered in 50 seconds
30 GiB redo
recovered in 123 seconds
Amazon Aurora has no redo.
Recovered in 3 seconds while maintaining
signficantly greater throughput.
0
20
40
60
80
100
120
140
160
0 20000 40000 60000 80000 100000 120000 140000
Recoverytimeinseconds(lessisbetter)
writes / second (more is better)
Recovery time from crash under load
Bubble size represents redo log which must be recovered
As PostgreSQL throughput
goes up, so does log size
and crash recovery time.
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
TXNs and Recovery Mgmt – Answers / Takeaways
Are UNDO tablespaces going to be available with PostgreSQL?
How are Recovery, Checkpoints and Commits going to be
handled by RDS PostgreSQL and Aurora PostgreSQL?
No, Undo information is contained in the Data Files.
Oracle and RDS PostgreSQL handle Recovery, Checkpoints, and
Commits in a very similar way. Aurora is very different in that it
handles Commits via Write Quorums, and Recovery time is near-0
thanks to instantaneous lookup of transactions with a valid
Quorum.
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Conclusions
1. There are differences between Oracle and PostgreSQL, but also many similar
aspects (Software Architecture, Recovery Management)
2. Dive deep in your use cases and application patterns à there is a large
number of use cases, currently covered by Oracle, where PostgreSQL
represents an ideal alternative at a significantly lower cost
3. Evaluate covering these use cases with PostgreSQL and allow them to
benefit from the enrichments coming from Amazon Aurora’s specific
implementation and optimizations
4. Finally, consider that getting to know Amazon RDS PostgreSQL or Amazon
Aurora PostgreSQL is going to be an easy learning process as there are many
points of contact between your background and the architectural aspects of
these technologies
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Thank you!
email: antodort@amazon.it
twitter: @adortenz

More Related Content

What's hot

Exadata_X10M-Hardware-Overview.pdf
Exadata_X10M-Hardware-Overview.pdfExadata_X10M-Hardware-Overview.pdf
Exadata_X10M-Hardware-Overview.pdfKoko842772
 
MySQL InnoDB Cluster - Group Replication
MySQL InnoDB Cluster - Group ReplicationMySQL InnoDB Cluster - Group Replication
MySQL InnoDB Cluster - Group ReplicationFrederic Descamps
 
MySQL Group Replication - Ready For Production? (2018-04)
MySQL Group Replication - Ready For Production? (2018-04)MySQL Group Replication - Ready For Production? (2018-04)
MySQL Group Replication - Ready For Production? (2018-04)Kenny Gryp
 
Introduction to storage
Introduction to storageIntroduction to storage
Introduction to storagesagaroceanic11
 
Disaster Recovery with MySQL InnoDB ClusterSet - What is it and how do I use it?
Disaster Recovery with MySQL InnoDB ClusterSet - What is it and how do I use it?Disaster Recovery with MySQL InnoDB ClusterSet - What is it and how do I use it?
Disaster Recovery with MySQL InnoDB ClusterSet - What is it and how do I use it?Miguel Araújo
 
Wars of MySQL Cluster ( InnoDB Cluster VS Galera )
Wars of MySQL Cluster ( InnoDB Cluster VS Galera ) Wars of MySQL Cluster ( InnoDB Cluster VS Galera )
Wars of MySQL Cluster ( InnoDB Cluster VS Galera ) Mydbops
 
Running MariaDB in multiple data centers
Running MariaDB in multiple data centersRunning MariaDB in multiple data centers
Running MariaDB in multiple data centersMariaDB plc
 
NoSQL Databases: Why, what and when
NoSQL Databases: Why, what and whenNoSQL Databases: Why, what and when
NoSQL Databases: Why, what and whenLorenzo Alberton
 
The Great Debate: PostgreSQL vs MySQL
The Great Debate: PostgreSQL vs MySQLThe Great Debate: PostgreSQL vs MySQL
The Great Debate: PostgreSQL vs MySQLEDB
 
[Oracle DBA & Developer Day 2012] 高可用性システムに適した管理性と性能を向上させるASM と RMAN の魅力
[Oracle DBA & Developer Day 2012] 高可用性システムに適した管理性と性能を向上させるASM と RMAN の魅力[Oracle DBA & Developer Day 2012] 高可用性システムに適した管理性と性能を向上させるASM と RMAN の魅力
[Oracle DBA & Developer Day 2012] 高可用性システムに適した管理性と性能を向上させるASM と RMAN の魅力オラクルエンジニア通信
 
VMworld 2013: VMware vSphere Replication: Technical Walk-Through with Enginee...
VMworld 2013: VMware vSphere Replication: Technical Walk-Through with Enginee...VMworld 2013: VMware vSphere Replication: Technical Walk-Through with Enginee...
VMworld 2013: VMware vSphere Replication: Technical Walk-Through with Enginee...VMworld
 
MySQL Day Paris 2018 - MySQL InnoDB Cluster; A complete High Availability sol...
MySQL Day Paris 2018 - MySQL InnoDB Cluster; A complete High Availability sol...MySQL Day Paris 2018 - MySQL InnoDB Cluster; A complete High Availability sol...
MySQL Day Paris 2018 - MySQL InnoDB Cluster; A complete High Availability sol...Olivier DASINI
 
MySQL Group Replication
MySQL Group ReplicationMySQL Group Replication
MySQL Group ReplicationKenny Gryp
 
Oracle RAC 19c and Later - Best Practices #OOWLON
Oracle RAC 19c and Later - Best Practices #OOWLONOracle RAC 19c and Later - Best Practices #OOWLON
Oracle RAC 19c and Later - Best Practices #OOWLONMarkus Michalewicz
 
しばちょう先生が語る!オラクルデータベースの進化の歴史と最新技術動向#2
しばちょう先生が語る!オラクルデータベースの進化の歴史と最新技術動向#2しばちょう先生が語る!オラクルデータベースの進化の歴史と最新技術動向#2
しばちょう先生が語る!オラクルデータベースの進化の歴史と最新技術動向#2オラクルエンジニア通信
 
MySQL High Availability with Group Replication
MySQL High Availability with Group ReplicationMySQL High Availability with Group Replication
MySQL High Availability with Group ReplicationNuno Carvalho
 
TidalScaleで複数の物理サーバを集約しインメモリーコンピューティングを実現
TidalScaleで複数の物理サーバを集約しインメモリーコンピューティングを実現TidalScaleで複数の物理サーバを集約しインメモリーコンピューティングを実現
TidalScaleで複数の物理サーバを集約しインメモリーコンピューティングを実現YosukeIshii6
 
[오픈소스컨설팅]Day #1 MySQL 엔진소개, 튜닝, 백업 및 복구, 업그레이드방법
[오픈소스컨설팅]Day #1 MySQL 엔진소개, 튜닝, 백업 및 복구, 업그레이드방법[오픈소스컨설팅]Day #1 MySQL 엔진소개, 튜닝, 백업 및 복구, 업그레이드방법
[오픈소스컨설팅]Day #1 MySQL 엔진소개, 튜닝, 백업 및 복구, 업그레이드방법Ji-Woong Choi
 
Oracle RAC Virtualized - In VMs, in Containers, On-premises, and in the Cloud
Oracle RAC Virtualized - In VMs, in Containers, On-premises, and in the CloudOracle RAC Virtualized - In VMs, in Containers, On-premises, and in the Cloud
Oracle RAC Virtualized - In VMs, in Containers, On-premises, and in the CloudMarkus Michalewicz
 

What's hot (20)

Exadata_X10M-Hardware-Overview.pdf
Exadata_X10M-Hardware-Overview.pdfExadata_X10M-Hardware-Overview.pdf
Exadata_X10M-Hardware-Overview.pdf
 
MySQL InnoDB Cluster - Group Replication
MySQL InnoDB Cluster - Group ReplicationMySQL InnoDB Cluster - Group Replication
MySQL InnoDB Cluster - Group Replication
 
MySQL Group Replication - Ready For Production? (2018-04)
MySQL Group Replication - Ready For Production? (2018-04)MySQL Group Replication - Ready For Production? (2018-04)
MySQL Group Replication - Ready For Production? (2018-04)
 
Introduction to storage
Introduction to storageIntroduction to storage
Introduction to storage
 
Disaster Recovery with MySQL InnoDB ClusterSet - What is it and how do I use it?
Disaster Recovery with MySQL InnoDB ClusterSet - What is it and how do I use it?Disaster Recovery with MySQL InnoDB ClusterSet - What is it and how do I use it?
Disaster Recovery with MySQL InnoDB ClusterSet - What is it and how do I use it?
 
Wars of MySQL Cluster ( InnoDB Cluster VS Galera )
Wars of MySQL Cluster ( InnoDB Cluster VS Galera ) Wars of MySQL Cluster ( InnoDB Cluster VS Galera )
Wars of MySQL Cluster ( InnoDB Cluster VS Galera )
 
Running MariaDB in multiple data centers
Running MariaDB in multiple data centersRunning MariaDB in multiple data centers
Running MariaDB in multiple data centers
 
NoSQL Databases: Why, what and when
NoSQL Databases: Why, what and whenNoSQL Databases: Why, what and when
NoSQL Databases: Why, what and when
 
The Great Debate: PostgreSQL vs MySQL
The Great Debate: PostgreSQL vs MySQLThe Great Debate: PostgreSQL vs MySQL
The Great Debate: PostgreSQL vs MySQL
 
Data Guard Architecture & Setup
Data Guard Architecture & SetupData Guard Architecture & Setup
Data Guard Architecture & Setup
 
[Oracle DBA & Developer Day 2012] 高可用性システムに適した管理性と性能を向上させるASM と RMAN の魅力
[Oracle DBA & Developer Day 2012] 高可用性システムに適した管理性と性能を向上させるASM と RMAN の魅力[Oracle DBA & Developer Day 2012] 高可用性システムに適した管理性と性能を向上させるASM と RMAN の魅力
[Oracle DBA & Developer Day 2012] 高可用性システムに適した管理性と性能を向上させるASM と RMAN の魅力
 
VMworld 2013: VMware vSphere Replication: Technical Walk-Through with Enginee...
VMworld 2013: VMware vSphere Replication: Technical Walk-Through with Enginee...VMworld 2013: VMware vSphere Replication: Technical Walk-Through with Enginee...
VMworld 2013: VMware vSphere Replication: Technical Walk-Through with Enginee...
 
MySQL Day Paris 2018 - MySQL InnoDB Cluster; A complete High Availability sol...
MySQL Day Paris 2018 - MySQL InnoDB Cluster; A complete High Availability sol...MySQL Day Paris 2018 - MySQL InnoDB Cluster; A complete High Availability sol...
MySQL Day Paris 2018 - MySQL InnoDB Cluster; A complete High Availability sol...
 
MySQL Group Replication
MySQL Group ReplicationMySQL Group Replication
MySQL Group Replication
 
Oracle RAC 19c and Later - Best Practices #OOWLON
Oracle RAC 19c and Later - Best Practices #OOWLONOracle RAC 19c and Later - Best Practices #OOWLON
Oracle RAC 19c and Later - Best Practices #OOWLON
 
しばちょう先生が語る!オラクルデータベースの進化の歴史と最新技術動向#2
しばちょう先生が語る!オラクルデータベースの進化の歴史と最新技術動向#2しばちょう先生が語る!オラクルデータベースの進化の歴史と最新技術動向#2
しばちょう先生が語る!オラクルデータベースの進化の歴史と最新技術動向#2
 
MySQL High Availability with Group Replication
MySQL High Availability with Group ReplicationMySQL High Availability with Group Replication
MySQL High Availability with Group Replication
 
TidalScaleで複数の物理サーバを集約しインメモリーコンピューティングを実現
TidalScaleで複数の物理サーバを集約しインメモリーコンピューティングを実現TidalScaleで複数の物理サーバを集約しインメモリーコンピューティングを実現
TidalScaleで複数の物理サーバを集約しインメモリーコンピューティングを実現
 
[오픈소스컨설팅]Day #1 MySQL 엔진소개, 튜닝, 백업 및 복구, 업그레이드방법
[오픈소스컨설팅]Day #1 MySQL 엔진소개, 튜닝, 백업 및 복구, 업그레이드방법[오픈소스컨설팅]Day #1 MySQL 엔진소개, 튜닝, 백업 및 복구, 업그레이드방법
[오픈소스컨설팅]Day #1 MySQL 엔진소개, 튜닝, 백업 및 복구, 업그레이드방법
 
Oracle RAC Virtualized - In VMs, in Containers, On-premises, and in the Cloud
Oracle RAC Virtualized - In VMs, in Containers, On-premises, and in the CloudOracle RAC Virtualized - In VMs, in Containers, On-premises, and in the Cloud
Oracle RAC Virtualized - In VMs, in Containers, On-premises, and in the Cloud
 

Similar to Oracle DBMS vs Amazon RDS PostgreSQL vs Amazon Aurora PostgreSQL: Key architectural and management differences

Report from the Field on the PostgreSQL-compatible Edition of Amazon Aurora -...
Report from the Field on the PostgreSQL-compatible Edition of Amazon Aurora -...Report from the Field on the PostgreSQL-compatible Edition of Amazon Aurora -...
Report from the Field on the PostgreSQL-compatible Edition of Amazon Aurora -...Amazon Web Services
 
DAT316_Report from the field on Aurora PostgreSQL Performance
DAT316_Report from the field on Aurora PostgreSQL PerformanceDAT316_Report from the field on Aurora PostgreSQL Performance
DAT316_Report from the field on Aurora PostgreSQL PerformanceAmazon Web Services
 
Amazon Aurora and AWS Database Migration Service
Amazon Aurora and AWS Database Migration ServiceAmazon Aurora and AWS Database Migration Service
Amazon Aurora and AWS Database Migration ServiceAmazon Web Services
 
Introducing Amazon Aurora with PostgreSQL Compatibility - AWS Online Tech Talks
Introducing Amazon Aurora with PostgreSQL Compatibility - AWS Online Tech TalksIntroducing Amazon Aurora with PostgreSQL Compatibility - AWS Online Tech Talks
Introducing Amazon Aurora with PostgreSQL Compatibility - AWS Online Tech TalksAmazon Web Services
 
NEW LAUNCH! Introducing PostgreSQL compatibility for Amazon Aurora
NEW LAUNCH! Introducing PostgreSQL compatibility for Amazon AuroraNEW LAUNCH! Introducing PostgreSQL compatibility for Amazon Aurora
NEW LAUNCH! Introducing PostgreSQL compatibility for Amazon AuroraAmazon Web Services
 
Deep Dive - Amazon Relational Database Services_AWSPSSummit_Singapore
Deep Dive - Amazon Relational Database Services_AWSPSSummit_SingaporeDeep Dive - Amazon Relational Database Services_AWSPSSummit_Singapore
Deep Dive - Amazon Relational Database Services_AWSPSSummit_SingaporeAmazon Web Services
 
Build on Amazon Aurora with MySQL Compatibility (DAT348-R4) - AWS re:Invent 2018
Build on Amazon Aurora with MySQL Compatibility (DAT348-R4) - AWS re:Invent 2018Build on Amazon Aurora with MySQL Compatibility (DAT348-R4) - AWS re:Invent 2018
Build on Amazon Aurora with MySQL Compatibility (DAT348-R4) - AWS re:Invent 2018Amazon Web Services
 
Scale Up and Modernize Your Database with Amazon Relational Database Service ...
Scale Up and Modernize Your Database with Amazon Relational Database Service ...Scale Up and Modernize Your Database with Amazon Relational Database Service ...
Scale Up and Modernize Your Database with Amazon Relational Database Service ...Amazon Web Services
 
Oracle & SQL Server on the Cloud: Database Week SF
Oracle & SQL Server on the Cloud: Database Week SFOracle & SQL Server on the Cloud: Database Week SF
Oracle & SQL Server on the Cloud: Database Week SFAmazon Web Services
 
Oracle & SQL Server on the Cloud: Database Week San Francisco
Oracle & SQL Server on the Cloud: Database Week San FranciscoOracle & SQL Server on the Cloud: Database Week San Francisco
Oracle & SQL Server on the Cloud: Database Week San FranciscoAmazon Web Services
 
Oracle and SQL Server on the Cloud
Oracle and SQL Server on the CloudOracle and SQL Server on the Cloud
Oracle and SQL Server on the CloudAmazon Web Services
 
Relational Database Services on AWS - Bill Baldwin, Gareth Eagar
Relational Database Services on AWS - Bill Baldwin, Gareth EagarRelational Database Services on AWS - Bill Baldwin, Gareth Eagar
Relational Database Services on AWS - Bill Baldwin, Gareth EagarAmazon Web Services
 
Oracle and SQL Server on the Cloud - Bill Baldwin
Oracle and SQL Server on the Cloud - Bill BaldwinOracle and SQL Server on the Cloud - Bill Baldwin
Oracle and SQL Server on the Cloud - Bill BaldwinAmazon Web Services
 
What’s new in Amazon RDS - ADB207 - Chicago AWS Summit
What’s new in Amazon RDS - ADB207 - Chicago AWS SummitWhat’s new in Amazon RDS - ADB207 - Chicago AWS Summit
What’s new in Amazon RDS - ADB207 - Chicago AWS SummitAmazon Web Services
 

Similar to Oracle DBMS vs Amazon RDS PostgreSQL vs Amazon Aurora PostgreSQL: Key architectural and management differences (20)

Report from the Field on the PostgreSQL-compatible Edition of Amazon Aurora -...
Report from the Field on the PostgreSQL-compatible Edition of Amazon Aurora -...Report from the Field on the PostgreSQL-compatible Edition of Amazon Aurora -...
Report from the Field on the PostgreSQL-compatible Edition of Amazon Aurora -...
 
DAT316_Report from the field on Aurora PostgreSQL Performance
DAT316_Report from the field on Aurora PostgreSQL PerformanceDAT316_Report from the field on Aurora PostgreSQL Performance
DAT316_Report from the field on Aurora PostgreSQL Performance
 
Amazon Aurora and AWS Database Migration Service
Amazon Aurora and AWS Database Migration ServiceAmazon Aurora and AWS Database Migration Service
Amazon Aurora and AWS Database Migration Service
 
Introducing Amazon Aurora with PostgreSQL Compatibility - AWS Online Tech Talks
Introducing Amazon Aurora with PostgreSQL Compatibility - AWS Online Tech TalksIntroducing Amazon Aurora with PostgreSQL Compatibility - AWS Online Tech Talks
Introducing Amazon Aurora with PostgreSQL Compatibility - AWS Online Tech Talks
 
Amazon Aurora: Under the Hood
Amazon Aurora: Under the HoodAmazon Aurora: Under the Hood
Amazon Aurora: Under the Hood
 
NEW LAUNCH! Introducing PostgreSQL compatibility for Amazon Aurora
NEW LAUNCH! Introducing PostgreSQL compatibility for Amazon AuroraNEW LAUNCH! Introducing PostgreSQL compatibility for Amazon Aurora
NEW LAUNCH! Introducing PostgreSQL compatibility for Amazon Aurora
 
Deep Dive - Amazon Relational Database Services_AWSPSSummit_Singapore
Deep Dive - Amazon Relational Database Services_AWSPSSummit_SingaporeDeep Dive - Amazon Relational Database Services_AWSPSSummit_Singapore
Deep Dive - Amazon Relational Database Services_AWSPSSummit_Singapore
 
Build on Amazon Aurora with MySQL Compatibility (DAT348-R4) - AWS re:Invent 2018
Build on Amazon Aurora with MySQL Compatibility (DAT348-R4) - AWS re:Invent 2018Build on Amazon Aurora with MySQL Compatibility (DAT348-R4) - AWS re:Invent 2018
Build on Amazon Aurora with MySQL Compatibility (DAT348-R4) - AWS re:Invent 2018
 
PASS Summit 2020
PASS Summit 2020PASS Summit 2020
PASS Summit 2020
 
Scale Up and Modernize Your Database with Amazon Relational Database Service ...
Scale Up and Modernize Your Database with Amazon Relational Database Service ...Scale Up and Modernize Your Database with Amazon Relational Database Service ...
Scale Up and Modernize Your Database with Amazon Relational Database Service ...
 
What's New in Amazon Aurora
What's New in Amazon AuroraWhat's New in Amazon Aurora
What's New in Amazon Aurora
 
Aurora Deep Dive | AWS Floor28
Aurora Deep Dive | AWS Floor28Aurora Deep Dive | AWS Floor28
Aurora Deep Dive | AWS Floor28
 
Oracle & SQL Server on the Cloud: Database Week SF
Oracle & SQL Server on the Cloud: Database Week SFOracle & SQL Server on the Cloud: Database Week SF
Oracle & SQL Server on the Cloud: Database Week SF
 
Oracle & SQL Server on the Cloud: Database Week San Francisco
Oracle & SQL Server on the Cloud: Database Week San FranciscoOracle & SQL Server on the Cloud: Database Week San Francisco
Oracle & SQL Server on the Cloud: Database Week San Francisco
 
Azure Databases with IaaS
Azure Databases with IaaSAzure Databases with IaaS
Azure Databases with IaaS
 
Oracle and SQL Server on the Cloud
Oracle and SQL Server on the CloudOracle and SQL Server on the Cloud
Oracle and SQL Server on the Cloud
 
Relational Database Services on AWS - Bill Baldwin, Gareth Eagar
Relational Database Services on AWS - Bill Baldwin, Gareth EagarRelational Database Services on AWS - Bill Baldwin, Gareth Eagar
Relational Database Services on AWS - Bill Baldwin, Gareth Eagar
 
Oracle and SQL Server on the Cloud - Bill Baldwin
Oracle and SQL Server on the Cloud - Bill BaldwinOracle and SQL Server on the Cloud - Bill Baldwin
Oracle and SQL Server on the Cloud - Bill Baldwin
 
What’s new in Amazon RDS - ADB207 - Chicago AWS Summit
What’s new in Amazon RDS - ADB207 - Chicago AWS SummitWhat’s new in Amazon RDS - ADB207 - Chicago AWS Summit
What’s new in Amazon RDS - ADB207 - Chicago AWS Summit
 
SQL Server on AWS
SQL Server on AWSSQL Server on AWS
SQL Server on AWS
 

More from Amazon Web Services

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Amazon Web Services
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Amazon Web Services
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateAmazon Web Services
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSAmazon Web Services
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Amazon Web Services
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Amazon Web Services
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...Amazon Web Services
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsAmazon Web Services
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareAmazon Web Services
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSAmazon Web Services
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAmazon Web Services
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareAmazon Web Services
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWSAmazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckAmazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without serversAmazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...Amazon Web Services
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceAmazon Web Services
 

More from Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

Oracle DBMS vs Amazon RDS PostgreSQL vs Amazon Aurora PostgreSQL: Key architectural and management differences

  • 1. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Online Tech Talks La serie di webinar AWS in Italiano Oracle DBMS vs Amazon RDS vs Amazon Aurora PostgreSQL: principali similitudini e differenze architetturali e di gestione Speaker Antonio D’Ortenzio Solutions Architect, AWS Obiettivi § Confrontare la architettura high-level di Oracle RDBMS con quella di PostgreSQL evidenziando principali similitudini e differenze § Spiegare i miglioramenti introdotti da Amazon Aurora, focalizzando il confronto sulla gestione della memoria e del caching nei casi Oracle vs Amazon RDS PostgreSQL vs Amazon Aurora PostgreSQL § Illustrare i vantaggi di Amazon Aurora, concludendo con un focus sulla gestione, nei tre scenari, di Transazioni, Redo, Checkpoints, Commits e Recovery
  • 2. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Background • Oracle to Amazon RDS PostgreSQL or Amazon Aurora PostgreSQL: are you wondering what the differences between your source and your target will be? • Will the way these engines administer your databases still be the same after change? • Application patterns à improvements after completing the platform change • Strengths of new database technologies à improve your application performance and reduce your database management burden • A result of all this is … you surely have lots of comparative questions between Oracle and PostgreSQL
  • 3. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Objectives What this session is • A collection of most Frequently Asked Comparative Questions received from customers over the last year • A collection of the background concepts to the Answers we have been giving to these questions What this session is not • A comprehensive list of ALL differences between Oracle and PostgreSQL • A discussion around SQL-level and coding differences; for these, please consider reading the Database Migration Playbook
  • 4. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Agenda • Software Architecture • Memory Management • Transactions and Recovery Management
  • 5. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Global Infrastructure 21 Regions 66 Availability Zones (AZ’s) First 5 Years: 4 Regions Next 5 Years: 7 Regions 2016-2019: 10 Regions Coming Soon: 4 Regions including … Milan, Italy!
  • 6. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Regions and Availability Zones US West (OR) AZ A AZ B AZ C US East (OH) AZ A AZ B AZ C US East (VA) AZ A AZ B AZ C AZ D AZ E EU (Ireland) AZ A AZ B AZ C Asia Pacific (Singapore) AZ A AZ B AZ C EU (London) AZ A AZ B AWS Regions China (Beijing) AZ A AZ B China (Bejing) AZ A AZ B Asia Pacific (Seoul) AZ A AZ B AZ C AZ A AZ B AZ C South America (São Paulo) Asia Pacific (Sydney) Asia Pacific (Mumbai) AZ A AZ B US West (CA) AZ A AZ B AZ C Canada AZ A AZ B AZ F GovCloud (US West) AZ A AZ B AZ C AZ C China (Ningxia) AZ A AZ B AZ C EU (Paris) AZ A AZ B AZ C EU (Frankfurt) AZ A AZ B AZ C Asia Pacific (Tokyo) AZ A AZ B AZ C AZ D
  • 7. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Notes By “Oracle” I will refer to the “On-Premises Oracle RDBMS Enterprise Edition 12c” • Single-Node • no ASM à topics in this presentation are not related to/affected by storage architecture details • no RAC à topics in this presentation are not related to/affected by application profiles, networking, high availability, etc • no Exadata à topics in this presentation are not related to/affected by specific aspects of Oracle Engineered Systems By “RDS PostgreSQL” I will refer to “Amazon RDS PostgreSQL 11.2-R1” • Default Configuration, Single-AZ By “Aurora PostgreSQL” I will refer to “Amazon Aurora PostgreSQL 10.7” • Default Configuration, Multi-AZ
  • 8. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Compared Environments: A Bird’s Eye View EBS EBS EBS AZ 1 AZ 2 AZ 3 Amazon Aurora database Instance R/W Master Node Storage Node Storage Node Storage Node Storage Node Storage Node Storage Node Amazon RDS database Instance R/W Master Node AZ 1 On- Premises Server R/W Active Node On-Premises Storage ORACLE
  • 9. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Software Architecture - Question How is PostgreSQL software architecture different than Oracle?
  • 10. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Architecture Comparison Stats Collector Auto- vacuum BG Writer WAL Writer Check pointer Archiver Database Cluster OTHERS … PG Shared Memory Instance pg_control pg_xlog (WAL files) postgresql.conf pg_tblspc Backend “1” Backend “n” PerBackEnd Memory Postmaster (Daemon) … . Client Application PMON SMON DBWR LGWR CKPT ARCH Database OTHERS … Instance Control Files Redo Log Files Parameter Files Data Files SGA (System Global Area) Server Process “1” PGA (Program Global Area) Listener … .Server Process “n” Client Application ORACLE
  • 11. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Software Architecture – Answer / Takeaway How is PostgreSQL software architecture different than Oracle? There are low-level differences, but at a high-level background processes and storage layer items can be conceptually mapped.
  • 12. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Memory Management – Questions How is Memory handled in RDS PostgreSQL and Aurora PostgreSQL? Are there differences between the two? And if compared to Oracle?
  • 13. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Remaining System Memory Flash Cache OS Page Cache Memory Architectures and Cache Management Amazon EBS SGA Shared Pool Library Cache Data Dictionary Cache Redo Log Buffer PGAs ---------------------- Database Buffer Cache Shared Memory WAL Buffer Backend Processes ---------------------- Shared Buffer Pool Duplicate OS Buffers Shared Memory WAL Buffer Backend Processes ---------- ----------- - Shared Buffer Pool Aurora StorageOn-Premises Storage ORACLE
  • 14. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Memory Management – Answers / Takeaways How is Memory handled in RDS PostgreSQL and Aurora PostgreSQL? Are there differences between the two? And if compared to Oracle? PostgreSQL doesn't maintain a Shared Pool; executable versions of SQL statements can be cached at the session-level rather than shared. This approach is against "one-fits-all" but rather favors a more granular tailoring of SQL executions. RDS PostgreSQL leverages OS buffer caching in addition to Shared Memory. Aurora doesn't do that, hence allowing for larger room for Buffers.
  • 15. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. TXNs and Recovery Mgmt – Questions Are UNDO tablespaces going to be available with PostgreSQL? How are Recovery, Checkpoints and Commits going to be handled by RDS PostgreSQL and Aurora PostgreSQL?
  • 16. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. MVCC (Multi-Version Concurrency Control): Differences ORACLE: Undo Tablespaces <> Redo Logs Undo Tablespaces contain before images of data blocks that have been read into the SGA and have been amended. They are used for: a. Read Consistency b. Process-Level Transaction Rollback PostgreSQL: No Undo Tablespaces • Before images are maintained inside the data files and marked as “expired” when no longer current • PostgreSQL does not rollback changes to database rows when a transaction exits abnormally • A PostgreSQL table may contain data from transactions exited abnormally à until the VACUUM process cleans them up
  • 17. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Redo, Checkpoints, Commits ORACLE / PostgreSQL REDO LOGS / WAL 1. No big differences in the way Redo Logs / WAL are used and what their role is 2. REDO logs/WAL are used for DB integrity. 3. Once a change gets written on REDO logs/WAL it’s permanent. 4. Unlike Undo Tablespaces (which are used for individual process-level transaction rollback), REDO logs/WAL are used for Instance-level recovery. 5. Rolling forward those changes that were written on REDO logs/WAL but not yet on data files 6. Rolling back those changes that were potentially written on data files but not yet on REDO logs/WAL CHECKPOINT • Writes all modified Buffers from Memory to Disk • Trade-Off = Recovery Time vs Performance COMMIT • Per Single Transaction • Guarantees Permanency of a Single Transaction
  • 18. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Putting It All Together Stats Collector Auto- vacuum BG Writer WAL Writer Check pointer Archiver Database Cluster OTHERS … PG Shared Memory Instance pg_control pg_xlog (WAL files) postgresql.conf pg_tblspc Backend “1” Backend “n” PerBackEnd Memory Postmaster (Daemon) … . Client Application PMON SMON DBWR LGWR CKPT ARCH Database OTHERS … Instance Control Files Redo Log Files Parameter Files Data Files SGA (System Global Area) Server Process “1” PGA (Program Global Area) Listener … .Server Process “n” Client Application Redo Log Buffer WAL Buffer update update Undo commit commit checkpoint checkpoint ORACLE
  • 19. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Aurora: No Bottleneck due to Redo/WAL Log Buffer Amazon Elastic Block Store (EBS) / Redo Log/WAL work items Redo Log/WAL Buffer Redo Log/WAL AZ1 Shared Storage Volume – Transaction Aware AZ2 AZ3 A B C D E F A B C 1234 12344 12344 A AA BB CCC B A B C A B C ORACLE
  • 20. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Aurora Reduced Recovery Time Up to 97% Transaction-aware storage system recovers almost instantly 3 GiB redo recovered in 19 seconds 10 GiB redo recovered in 50 seconds 30 GiB redo recovered in 123 seconds Amazon Aurora has no redo. Recovered in 3 seconds while maintaining signficantly greater throughput. 0 20 40 60 80 100 120 140 160 0 20000 40000 60000 80000 100000 120000 140000 Recoverytimeinseconds(lessisbetter) writes / second (more is better) Recovery time from crash under load Bubble size represents redo log which must be recovered As PostgreSQL throughput goes up, so does log size and crash recovery time.
  • 21. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. TXNs and Recovery Mgmt – Answers / Takeaways Are UNDO tablespaces going to be available with PostgreSQL? How are Recovery, Checkpoints and Commits going to be handled by RDS PostgreSQL and Aurora PostgreSQL? No, Undo information is contained in the Data Files. Oracle and RDS PostgreSQL handle Recovery, Checkpoints, and Commits in a very similar way. Aurora is very different in that it handles Commits via Write Quorums, and Recovery time is near-0 thanks to instantaneous lookup of transactions with a valid Quorum.
  • 22. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Conclusions 1. There are differences between Oracle and PostgreSQL, but also many similar aspects (Software Architecture, Recovery Management) 2. Dive deep in your use cases and application patterns à there is a large number of use cases, currently covered by Oracle, where PostgreSQL represents an ideal alternative at a significantly lower cost 3. Evaluate covering these use cases with PostgreSQL and allow them to benefit from the enrichments coming from Amazon Aurora’s specific implementation and optimizations 4. Finally, consider that getting to know Amazon RDS PostgreSQL or Amazon Aurora PostgreSQL is going to be an easy learning process as there are many points of contact between your background and the architectural aspects of these technologies
  • 23. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Thank you! email: antodort@amazon.it twitter: @adortenz