SlideShare a Scribd company logo
1 of 21
Download to read offline
Postgres Plus Advanced Server 9.4
Gabriel Gy˝ori - ELOS Technologies, s.r.o.
gabriel.gyori@elostech.cz
http://www.elostech.cz
25. 4. 2015
Gabriel Gy˝ori (ELOS Technologies) Postgres Plus Advanced Server 25. 4. 2015 1 / 21
Obsah
Obsah prezent´acie
Obsah prezent´acie
´Uvod
Architekt´ura datab´aze
Moˇznosti nasadenia
Konfigur´acia datab´aze
Oracle kompatibilita
Migr´acia datab´aze
Optimaliz´acia v´ykonu
Z´alohy datab´aze
Vysok´a dostupnost’
Moˇznosti rozˇs´ırenia
Gabriel Gy˝ori (ELOS Technologies) Postgres Plus Advanced Server 25. 4. 2015 2 / 21
Postgres Plus Advance Server
Postgres Plus Advance Server
relaˇcn´a datab´aza
viac neˇz 15 rokov aktivn´eho v´yvoja
multiplatformn´a datab´aza
vyv´ıjan´a v jazyku ANSI C
jednoduch´e moˇznosti rozˇs´ırenia
Multi-Version Concurrency Control
(MVCC)
ANSI-SQL:2008 standard
Gabriel Gy˝ori (ELOS Technologies) Postgres Plus Advanced Server 25. 4. 2015 3 / 21
Postgres Plus Advance Server
Postgres Plus Advance Server
Bezpeˇcnost’
Host-based autentifik´acia
Object-level opr´avnenia
Auditing (PEM)
SSL
EDB SQL/Protect
Gabriel Gy˝ori (ELOS Technologies) Postgres Plus Advanced Server 25. 4. 2015 4 / 21
Postgres Plus Advance Server
Limity datab´aze
Maxim´alna vel’kost’ datab´aze neobmedzen´a
Maxim´alna vel’kost’ tabul’ky 32 TB
Maxim´alna vel’kost’ z´aznamu 1.6 TB
Maxim´alny poˇcet riadkov neobmedzen´y
Maxim´alny poˇcet st´lpcov 250 - 1600
Gabriel Gy˝ori (ELOS Technologies) Postgres Plus Advanced Server 25. 4. 2015 5 / 21
Architekt´ura datab´aze
Architekt´ura datab´aze
PostgreSQL nepouˇz´ıva thready ale procesy
hlavn´y proces postmaster
background writer
WAL writer
checkpointer proces
autovacuum launcher/worker
logging collector
stats collector
backend proces / user session
WAL (transakˇcn´e) logy
archiv´acia transakˇcn´ych logov
adres´ar d´atov´eho clusteru
Gabriel Gy˝ori (ELOS Technologies) Postgres Plus Advanced Server 25. 4. 2015 6 / 21
Moˇznosti nasadenia
Moˇznosti nasadenia
One-Click inˇstal´ator
bal´ıˇcky operaˇcn´ych syst´emov
RPM/YUM
DEB Debian/Ubuntu
FreeBSD port
Solaris bal´ıˇcek
kompil´acia zdrojov´ych k´odov
PostgresPlus Solution Pack
Gabriel Gy˝ori (ELOS Technologies) Postgres Plus Advanced Server 25. 4. 2015 7 / 21
Konfigur´acia datab´aze
Konfigur´acia datab´aze
v¨aˇcˇsina konfigur´acie v s´ubore
(postgresql.conf)
host-based autentifik´acia (pg hba.conf)
konfiguraˇcn´e s´ubory per d´atov´y cluster
parameter - hodnota
Gabriel Gy˝ori (ELOS Technologies) Postgres Plus Advanced Server 25. 4. 2015 8 / 21
Oracle kompatibilita
Oracle kompatibilita - podporovan´e zdrojov´e datab´aze
Object Oracle Sybase SQL Server MySQL
Schemas • • • •
Tables • • • •
List-Partitioned Tables •
Range-Partitioned Tables •
Constraints • • • •
Indexes • • • •
Triggers •
Table Data • • • •
Gabriel Gy˝ori (ELOS Technologies) Postgres Plus Advanced Server 25. 4. 2015 9 / 21
Oracle kompatibilita
Oracle kompatibilita - podporovan´e zdrojov´e datab´aze
Object Oracle Sybase SQL Server MySQL
Views • •
Packages •
Procedures •
Functions •
Sequences •
Users/Roles •
Object Types •
Database Links •
Gabriel Gy˝ori (ELOS Technologies) Postgres Plus Advanced Server 25. 4. 2015 10 / 21
Oracle kompatibilita
EDB*PLUS
Gabriel Gy˝ori (ELOS Technologies) Postgres Plus Advanced Server 25. 4. 2015 11 / 21
Migr´acia datab´aze
Migr´acia datab´aze
moˇznost’ testovania nov´ych technol´ogii
moˇznost’ vol’by alternat´ıvnej datab´aze
dynamick´e testovanie Postgres Plus Advance Server
alternat´ıvne technol´ogie mˆoˇzu uˇsetrit’ podstatn´u ˇcast’ n´akladov firmy
Gabriel Gy˝ori (ELOS Technologies) Postgres Plus Advanced Server 25. 4. 2015 12 / 21
Migr´acia datab´aze Migration Toolkit
Migration Toolkit
zdrojov´y k´od: java
konzolov´a aplik´acia
online migr´acia
offline migr´acia
vel’k´e mnoˇzstvo explicitn´ych nastaven´ı migr´acie
defin´ıcia pripojenia dvojice datab´az (konfiguraˇcn´y s´ubor)
Gabriel Gy˝ori (ELOS Technologies) Postgres Plus Advanced Server 25. 4. 2015 13 / 21
Migr´acia datab´aze Migration Toolkit
Proces migr´acie
Krok za krokom
defin´ıcia zdrojovej a ciel’ovej datab´aze
identifik´acie potenci´alnych probl´emov inform´acii
rozdelenie migr´acie rozsiahlych sch´em do dvoch ˇcast´ı
migr´acia sch´em
migr´acia d´at
vykonanie konkr´etnej migr´acie
overenie migr´acie
prekonvertovanie aplik´acie na novu datab´azu
testovanie a optimaliz´acia syst´emu
Gabriel Gy˝ori (ELOS Technologies) Postgres Plus Advanced Server 25. 4. 2015 14 / 21
V´ykon datab´aze Optimaliz´acia
Optimaliz´acia
pouˇzitie VACUUM
pouˇzitie ANALYZE
optimaliz´acia dotazov
pouˇzitie cache
pridelenie dostatku pam¨ati
upgrade datab´aze
pouˇzitie uloˇzn´ych proced´ur
pouˇzitie partitioningu
hardware
Gabriel Gy˝ori (ELOS Technologies) Postgres Plus Advanced Server 25. 4. 2015 15 / 21
V´ykon datab´aze DRITA
Dynamic Runtime Instrumentation Tools Architecture
ˇcasov´y odhad vykon´avan´ych procesov
odhad z´at’aˇze konkr´etnych objektov ˇci operaˇcn´eho syst´emu
inform´acie pre odhal’ovanie v´ykonnostn´ych nedostatkov
vyladenie v´ykonu datab´aze
Gabriel Gy˝ori (ELOS Technologies) Postgres Plus Advanced Server 25. 4. 2015 16 / 21
V´ykon datab´aze edb dynatune
Dynatune
Urˇcenie mnoˇzstva pouˇzit´ych zdrojov datab´azov´ym serverom
edb dynatune
1 - 33 - testovacie servery na ktor´ych beˇzia d’alˇsie aplik´acie
34 - 66 - fixn´y poˇcet ostatn´ych aplik´acii spusten´ych na serveri
67 - 100 - server urˇcen´y v´yhradne pre spr´avu datab´aze
edb dynatune profile
oltp - zv´yˇsene n´aroky na online transakˇcn´e procesy
reporting - datab´azov´e servery pouˇz´ıvane na reporty
mixed - kompromis oboch modelov
Gabriel Gy˝ori (ELOS Technologies) Postgres Plus Advanced Server 25. 4. 2015 17 / 21
Z´alohovanie datab´aze
Z´alohovanie datab´aze
Logick´a z´aloha
pg dump
pg dumpall
pg restore
Fyzick´a z´aloha
archiv´acia WAL logov
z´aloha d´atov´eho adres´ara
PITR
EDB Backup and Recovery Tool
Gabriel Gy˝ori (ELOS Technologies) Postgres Plus Advanced Server 25. 4. 2015 18 / 21
Replik´acie datab´aze
Replik´acie datab´aze
Moˇznosti replik´acie
Log shipping (Hot standby)
Streaming (Hot standby)
Selekt´ıvna replik´acia Londsite
Selekt´ıvna replik´acia Slony
Load balancing pgpool II
Multimaster replik´acia
EDB replikaˇcn´e n´astroje
xDB Replication console multi master
xDB Replication console single master
EDB Failover Manager
Gabriel Gy˝ori (ELOS Technologies) Postgres Plus Advanced Server 25. 4. 2015 19 / 21
Replik´acie datab´aze
EDB Failover manager
Gabriel Gy˝ori (ELOS Technologies) Postgres Plus Advanced Server 25. 4. 2015 20 / 21
Replik´acie datab´aze
ˇDakujem za pozornost’
Gabriel Gy˝ori (ELOS Technologies) Postgres Plus Advanced Server 25. 4. 2015 21 / 21

More Related Content

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Featured (20)

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 

Postgres Plus Advance Server 9.4

  • 1. Postgres Plus Advanced Server 9.4 Gabriel Gy˝ori - ELOS Technologies, s.r.o. gabriel.gyori@elostech.cz http://www.elostech.cz 25. 4. 2015 Gabriel Gy˝ori (ELOS Technologies) Postgres Plus Advanced Server 25. 4. 2015 1 / 21
  • 2. Obsah Obsah prezent´acie Obsah prezent´acie ´Uvod Architekt´ura datab´aze Moˇznosti nasadenia Konfigur´acia datab´aze Oracle kompatibilita Migr´acia datab´aze Optimaliz´acia v´ykonu Z´alohy datab´aze Vysok´a dostupnost’ Moˇznosti rozˇs´ırenia Gabriel Gy˝ori (ELOS Technologies) Postgres Plus Advanced Server 25. 4. 2015 2 / 21
  • 3. Postgres Plus Advance Server Postgres Plus Advance Server relaˇcn´a datab´aza viac neˇz 15 rokov aktivn´eho v´yvoja multiplatformn´a datab´aza vyv´ıjan´a v jazyku ANSI C jednoduch´e moˇznosti rozˇs´ırenia Multi-Version Concurrency Control (MVCC) ANSI-SQL:2008 standard Gabriel Gy˝ori (ELOS Technologies) Postgres Plus Advanced Server 25. 4. 2015 3 / 21
  • 4. Postgres Plus Advance Server Postgres Plus Advance Server Bezpeˇcnost’ Host-based autentifik´acia Object-level opr´avnenia Auditing (PEM) SSL EDB SQL/Protect Gabriel Gy˝ori (ELOS Technologies) Postgres Plus Advanced Server 25. 4. 2015 4 / 21
  • 5. Postgres Plus Advance Server Limity datab´aze Maxim´alna vel’kost’ datab´aze neobmedzen´a Maxim´alna vel’kost’ tabul’ky 32 TB Maxim´alna vel’kost’ z´aznamu 1.6 TB Maxim´alny poˇcet riadkov neobmedzen´y Maxim´alny poˇcet st´lpcov 250 - 1600 Gabriel Gy˝ori (ELOS Technologies) Postgres Plus Advanced Server 25. 4. 2015 5 / 21
  • 6. Architekt´ura datab´aze Architekt´ura datab´aze PostgreSQL nepouˇz´ıva thready ale procesy hlavn´y proces postmaster background writer WAL writer checkpointer proces autovacuum launcher/worker logging collector stats collector backend proces / user session WAL (transakˇcn´e) logy archiv´acia transakˇcn´ych logov adres´ar d´atov´eho clusteru Gabriel Gy˝ori (ELOS Technologies) Postgres Plus Advanced Server 25. 4. 2015 6 / 21
  • 7. Moˇznosti nasadenia Moˇznosti nasadenia One-Click inˇstal´ator bal´ıˇcky operaˇcn´ych syst´emov RPM/YUM DEB Debian/Ubuntu FreeBSD port Solaris bal´ıˇcek kompil´acia zdrojov´ych k´odov PostgresPlus Solution Pack Gabriel Gy˝ori (ELOS Technologies) Postgres Plus Advanced Server 25. 4. 2015 7 / 21
  • 8. Konfigur´acia datab´aze Konfigur´acia datab´aze v¨aˇcˇsina konfigur´acie v s´ubore (postgresql.conf) host-based autentifik´acia (pg hba.conf) konfiguraˇcn´e s´ubory per d´atov´y cluster parameter - hodnota Gabriel Gy˝ori (ELOS Technologies) Postgres Plus Advanced Server 25. 4. 2015 8 / 21
  • 9. Oracle kompatibilita Oracle kompatibilita - podporovan´e zdrojov´e datab´aze Object Oracle Sybase SQL Server MySQL Schemas • • • • Tables • • • • List-Partitioned Tables • Range-Partitioned Tables • Constraints • • • • Indexes • • • • Triggers • Table Data • • • • Gabriel Gy˝ori (ELOS Technologies) Postgres Plus Advanced Server 25. 4. 2015 9 / 21
  • 10. Oracle kompatibilita Oracle kompatibilita - podporovan´e zdrojov´e datab´aze Object Oracle Sybase SQL Server MySQL Views • • Packages • Procedures • Functions • Sequences • Users/Roles • Object Types • Database Links • Gabriel Gy˝ori (ELOS Technologies) Postgres Plus Advanced Server 25. 4. 2015 10 / 21
  • 11. Oracle kompatibilita EDB*PLUS Gabriel Gy˝ori (ELOS Technologies) Postgres Plus Advanced Server 25. 4. 2015 11 / 21
  • 12. Migr´acia datab´aze Migr´acia datab´aze moˇznost’ testovania nov´ych technol´ogii moˇznost’ vol’by alternat´ıvnej datab´aze dynamick´e testovanie Postgres Plus Advance Server alternat´ıvne technol´ogie mˆoˇzu uˇsetrit’ podstatn´u ˇcast’ n´akladov firmy Gabriel Gy˝ori (ELOS Technologies) Postgres Plus Advanced Server 25. 4. 2015 12 / 21
  • 13. Migr´acia datab´aze Migration Toolkit Migration Toolkit zdrojov´y k´od: java konzolov´a aplik´acia online migr´acia offline migr´acia vel’k´e mnoˇzstvo explicitn´ych nastaven´ı migr´acie defin´ıcia pripojenia dvojice datab´az (konfiguraˇcn´y s´ubor) Gabriel Gy˝ori (ELOS Technologies) Postgres Plus Advanced Server 25. 4. 2015 13 / 21
  • 14. Migr´acia datab´aze Migration Toolkit Proces migr´acie Krok za krokom defin´ıcia zdrojovej a ciel’ovej datab´aze identifik´acie potenci´alnych probl´emov inform´acii rozdelenie migr´acie rozsiahlych sch´em do dvoch ˇcast´ı migr´acia sch´em migr´acia d´at vykonanie konkr´etnej migr´acie overenie migr´acie prekonvertovanie aplik´acie na novu datab´azu testovanie a optimaliz´acia syst´emu Gabriel Gy˝ori (ELOS Technologies) Postgres Plus Advanced Server 25. 4. 2015 14 / 21
  • 15. V´ykon datab´aze Optimaliz´acia Optimaliz´acia pouˇzitie VACUUM pouˇzitie ANALYZE optimaliz´acia dotazov pouˇzitie cache pridelenie dostatku pam¨ati upgrade datab´aze pouˇzitie uloˇzn´ych proced´ur pouˇzitie partitioningu hardware Gabriel Gy˝ori (ELOS Technologies) Postgres Plus Advanced Server 25. 4. 2015 15 / 21
  • 16. V´ykon datab´aze DRITA Dynamic Runtime Instrumentation Tools Architecture ˇcasov´y odhad vykon´avan´ych procesov odhad z´at’aˇze konkr´etnych objektov ˇci operaˇcn´eho syst´emu inform´acie pre odhal’ovanie v´ykonnostn´ych nedostatkov vyladenie v´ykonu datab´aze Gabriel Gy˝ori (ELOS Technologies) Postgres Plus Advanced Server 25. 4. 2015 16 / 21
  • 17. V´ykon datab´aze edb dynatune Dynatune Urˇcenie mnoˇzstva pouˇzit´ych zdrojov datab´azov´ym serverom edb dynatune 1 - 33 - testovacie servery na ktor´ych beˇzia d’alˇsie aplik´acie 34 - 66 - fixn´y poˇcet ostatn´ych aplik´acii spusten´ych na serveri 67 - 100 - server urˇcen´y v´yhradne pre spr´avu datab´aze edb dynatune profile oltp - zv´yˇsene n´aroky na online transakˇcn´e procesy reporting - datab´azov´e servery pouˇz´ıvane na reporty mixed - kompromis oboch modelov Gabriel Gy˝ori (ELOS Technologies) Postgres Plus Advanced Server 25. 4. 2015 17 / 21
  • 18. Z´alohovanie datab´aze Z´alohovanie datab´aze Logick´a z´aloha pg dump pg dumpall pg restore Fyzick´a z´aloha archiv´acia WAL logov z´aloha d´atov´eho adres´ara PITR EDB Backup and Recovery Tool Gabriel Gy˝ori (ELOS Technologies) Postgres Plus Advanced Server 25. 4. 2015 18 / 21
  • 19. Replik´acie datab´aze Replik´acie datab´aze Moˇznosti replik´acie Log shipping (Hot standby) Streaming (Hot standby) Selekt´ıvna replik´acia Londsite Selekt´ıvna replik´acia Slony Load balancing pgpool II Multimaster replik´acia EDB replikaˇcn´e n´astroje xDB Replication console multi master xDB Replication console single master EDB Failover Manager Gabriel Gy˝ori (ELOS Technologies) Postgres Plus Advanced Server 25. 4. 2015 19 / 21
  • 20. Replik´acie datab´aze EDB Failover manager Gabriel Gy˝ori (ELOS Technologies) Postgres Plus Advanced Server 25. 4. 2015 20 / 21
  • 21. Replik´acie datab´aze ˇDakujem za pozornost’ Gabriel Gy˝ori (ELOS Technologies) Postgres Plus Advanced Server 25. 4. 2015 21 / 21