SlideShare a Scribd company logo
© 2015 EnterpriseDB Corporation. All rights reserved. 1
The Central View of your Data with Postgres
To listen to the recording of this presentation visit EnterpriseDB >
Resources > Webcasts > On demand Webcasts
© 2015 EnterpriseDB Corporation. All rights reserved. 2
•  Different applications
generate different types of
data
•  And various database
technologies have evolved as
efficient ways to store that
data
Data Is Everywhere
Web Logs
Sensor Data
Customer
Interactions
Purchase History
Transaction Logs
MongoDB
Hadoop
Cassandra
RedisPostgreSQL
CouchDB
Social Media
THERE IS NO CENTRAL VIEW!
© 2015 EnterpriseDB Corporation. All rights reserved. 3
•  Data silos are inevitable.
•  IT needs to be more agile in response to business requests for
new views of data.
•  Eventually, silos need to be joined with information from the
system of record to provide value.
Sample Use Cases
•  Customer 360
•  Identification of regulated information
•  Risk analysis
•  Management of contract data
•  Sensor collected data
Why Do We Need A Central View?
© 2015 EnterpriseDB Corporation. All rights reserved. 4
In an Ideal World, You Would Have a
Centralized View
Customer
Interactions
OLTP Live
Data
Purchase
History
The Logical Data
Warehouse
Web LogsTransaction
Logs
•  We call this the Logical Data Warehouse
© 2015 EnterpriseDB Corporation. All rights reserved. 5
•  Core PostgeSQL features to support more diverse
workloads
−  Flexible Datatypes – JSON / JSONB and Key Value Store
−  Unlogged tables to improve performance
•  Foreign Data Wrappers (FDW)
−  Use PostgreSQL as a central interface to connect to other
systems to gather data and issue queries or joins
−  Push-down for where and columns improve performance
•  Postgres Plus features
−  Resource Management to more effectively run mixed
workloads
−  EDB*Loader to load data from various sources
EnterpriseDB’s Strategy Around
Centralizing Data Focuses on 3 Areas
© 2015 EnterpriseDB Corporation. All rights reserved. 6
•  HSTORE
−  Key-value pair
−  Simple, fast and easy
−  Postgres v 8.2 – pre-dates many NoSQL-only solutions
−  Ideal for flat data structures that are sparsely populated
•  JSON
−  Hierarchical document model
−  Introduced in Postgres 9.2, perfected in 9.3
•  JSONB
−  Binary version of JSON
−  Faster, more operators and even more robust
−  Postgres 9.4
Postgres’ Provides Flexible Data
Types
© 2015 EnterpriseDB Corporation. All rights reserved. 7
•  Creating a table with a JSONB field
CREATE TABLE json_data (data JSONB);!
•  Simple JSON data element:
{"name": "Apple Phone", "type": "phone", "brand":
"ACME", "price": 200, "available": true,
"warranty_years": 1}!
•  Inserting this data element into the table json_data
INSERT INTO json_data (data) VALUES !
!(’ { !"name": "Apple Phone", !
! !"type": "phone", !
! !"brand": "ACME", !
! !"price": 200, !
! !"available": true, !
! !"warranty_years": 1 ! !!
!} ')!
JSON Examples
© 2015 EnterpriseDB Corporation. All rights reserved. 8
SELECT DISTINCT !
!data->>'name' as products !
FROM json_data;

!
products !
------------------------------!
Cable TV Basic Service Package!
AC3 Case Black!
Phone Service Basic Plan!
AC3 Phone!
AC3 Case Green!
Phone Service Family Plan!
AC3 Case Red!
AC7 Phone!
A simple query for JSON data
This query does not
return JSON data – it
returns text values
associated with the
key ‘name’
© 2015 EnterpriseDB Corporation. All rights reserved. 9
SELECT DISTINCT
product_type,
data->>'brand' as Brand,
data->>'available' as Availability
FROM json_data
JOIN products
ON (products.product_type=json_data.data->>'name')
WHERE json_data.data->>'available'=true;
product_type | brand | availability
---------------------------+-----------+--------------
AC3 Phone | ACME | true
JSON and ANSI SQL Example
ANSI SQL
JSON
No need for programmatic logic to combine SQL and
NoSQL in the application – Postgres does it all
© 2015 EnterpriseDB Corporation. All rights reserved. 10
•  Every write in PostgreSQL is essentially two writes due
to Write Ahead Log (WAL)
−  WAL guarantees durability and support replication
•  Unlogged tables are freed from this constraint
−  But tables are no longer crash safe!
•  Can see good performance gain (~13-17%)
Unlogged Tables Improve
Performance
© 2015 EnterpriseDB Corporation. All rights reserved. 11
•  Make external data sources look like local tables
•  Use SQL
−  SELECT syntax; including useful clauses like DISTINCT,
ORDER BY, GROUP BY and more.
−  JOIN external data with internal tables
−  FUNCTIONS for comparison, math, string, pattern matching,
date/time, etc
−  Starting in 9.3 - INSERT / UPDATE / DELETE too
•  Predicate pushdown – Filter data on remote sources first!
−  SELECT and WHERE clauses today
−  Roadmap - Join, Group/Aggregate, Sort and Limit
Some Background on Foreign
Data Wrappers
© 2015 EnterpriseDB Corporation. All rights reserved. 12
https://www.github.com/EnterpriseDB
•  We have contributed new Mongo FDW, MySQL FDW
and HDFS (Hadoop) FDW
•  We focused on adding Enterprise capabilities
−  Connecting Pooling
−  Predicate pushdowns
−  Where clause pushdown
−  Column pushdown
−  Writeablity (DML support)
EnterpriseDB is investing in Foreign
Data Wrappers
© 2015 EnterpriseDB Corporation. All rights reserved. 13
The HDFS_FDW
Postgres Plus
Postgres
HDFS_FDW
© 2015 EnterpriseDB Corporation. All rights reserved. 14
Example usage from HDFS_FDW
© 2015 EnterpriseDB Corporation. All rights reserved. 15
Example usage from HDFS_FDW
© 2015 EnterpriseDB Corporation. All rights reserved. 16
Current Release
•  Alpha Release – February
2015
•  Support for HiveServer 1 & 2
•  Complete Select support
•  Pushdown features (Where
clause and query columns)
•  Connection pooling
•  Use of map reduce jobs for
aggregates and complex
query operations.
Roadmap
•  Writeability via Hbase
•  Support for Flum/Impala server
•  More pushdown features (joins,
aggregates, sort etc)
•  Custom Map Reduce Jobs
•  Authentication support
•  Installers to be provided via
EnterpriseDB’s GUI Installer,
RPM and DEB packages
EnterpriseDB’s HDFS_FDW is
Available and Improvements Planned
© 2015 EnterpriseDB Corporation. All rights reserved. 17
Postgres Plus
Advanced
Server
Resource
Manager
(CPU & I/O)
Reporting
Transactions
80%
20%
Run Mixed Workloads More Efficiently
with PPAS 9.4 Resource Management
•  DBA assigns CPU & I/O to job groups
•  Allocates and prioritizes consumption of resources
•  Low priority jobs don’t hurt high priority jobs
© 2015 EnterpriseDB Corporation. All rights reserved. 18
•  Create Resource Groups and assign the CPU Rate Limit
•  Use these resource groups during a psql session
Run Mixed Workloads More Efficiently
with PPAS 9.4 Resource Management
- Statements executed will be limited in CPU or writing to shared_buffers per
resource group.
- Individual limits are computed based on recent CPU / shared_buffer usage.
- Processes sleep when necessary & avoid sleep when holding critical locks.
- The limits are adjusted regularly based on current usage.
- If multiple processes in the same group are being executed, aggregate usage
will be limited
CREATE RESOURCE GROUP resgrp_a;
CREATE RESOURCE GROUP resgrp_b;
ALTER RESOURCE GROUP resgrp_a SET cpu_rate_limit = .25;
ALTER RESOURCE GROUP resgrp_a SET dirty_rate_limit = 12288;
SET edb_resource_group TO res_grp_a;
© 2015 EnterpriseDB Corporation. All rights reserved. 19
•  Conventional path, direct path, and parallel
direct load loading methods
•  Data loading from standard input and remote loading,
particularly useful for large data sources on remote
hosts
•  Input data with delimiter-separated or fixed-width fields
•  Bad file for collecting rejected records
•  Discard file for collecting records that do not meet the
selection criteria of any target table
•  Log file for recording the EDB*Loader session and any
error messages
Efficiently load data using
EDB*Loader
© 2015 EnterpriseDB Corporation. All rights reserved. 20
•  Core PostgeSQL features to support more diverse
workloads
−  Flexible Datatypes – JSON / JSONB and Key Value Store
−  Unlogged tables to improve performance
•  Foreign Data Wrappers (FDW)
−  Use PostgreSQL as a central interface to connect to other
systems to gather data and issue queries or joins
−  Push-down for where and columns improve performance
•  Postgres Plus features
−  Resource Management to more effectively run mixed
workloads
−  EDB*Loader to load data from various sources
Recap: EnterpriseDB’s Strategy Around
Centralizing Data Focuses on 3 Areas
© 2015 EnterpriseDB Corporation. All rights reserved. 21
Ad

Recommended

Postgres Foreign Data Wrappers
Postgres Foreign Data Wrappers
EDB
 
NoSQL on ACID: Meet Unstructured Postgres
NoSQL on ACID: Meet Unstructured Postgres
EDB
 
Neuerungen in EDB Postgres 11
Neuerungen in EDB Postgres 11
EDB
 
Migrating from Oracle to Postgres
Migrating from Oracle to Postgres
EDB
 
EDB Postgres Platform 11 Webinar
EDB Postgres Platform 11 Webinar
EDB
 
Les nouveautés d'EDB Postgres 11
Les nouveautés d'EDB Postgres 11
EDB
 
Postgres Integrates Effectively in the "Enterprise Sandbox"
Postgres Integrates Effectively in the "Enterprise Sandbox"
EDB
 
Which Postgres is Right for You?
Which Postgres is Right for You?
EDB
 
Getting Started with PostGIS
Getting Started with PostGIS
EDB
 
Active/Active Database Solutions with Log Based Replication in xDB 6.0
Active/Active Database Solutions with Log Based Replication in xDB 6.0
EDB
 
Replacing Oracle with EDB Postgres
Replacing Oracle with EDB Postgres
EDB
 
DevOps Culture & Enablement with Postgres Plus Cloud Database
DevOps Culture & Enablement with Postgres Plus Cloud Database
EDB
 
New and Improved Features in PostgreSQL 13
New and Improved Features in PostgreSQL 13
EDB
 
An overview of reference architectures for Postgres
An overview of reference architectures for Postgres
EDB
 
PostgreSQL 13 is Coming - Find Out What's New!
PostgreSQL 13 is Coming - Find Out What's New!
EDB
 
HTAP Queries
HTAP Queries
Atif Shaikh
 
An overview of reference architectures for Postgres
An overview of reference architectures for Postgres
EDB
 
NoSQL and Spatial Database Capabilities using PostgreSQL
NoSQL and Spatial Database Capabilities using PostgreSQL
EDB
 
Using PEM to understand and improve performance in Postgres: Postgres Tuning ...
Using PEM to understand and improve performance in Postgres: Postgres Tuning ...
EDB
 
Top 10 Tips for an Effective Postgres Deployment
Top 10 Tips for an Effective Postgres Deployment
EDB
 
Whats New in Postgres 12
Whats New in Postgres 12
EDB
 
Introducing Data Redaction - an enabler to data security in EDB Postgres Adva...
Introducing Data Redaction - an enabler to data security in EDB Postgres Adva...
EDB
 
IN-MEMORY DATABASE SYSTEMS FOR BIG DATA MANAGEMENT.SAP HANA DATABASE.
IN-MEMORY DATABASE SYSTEMS FOR BIG DATA MANAGEMENT.SAP HANA DATABASE.
George Joseph
 
Expert Guide to Migrating Legacy Databases to Postgres
Expert Guide to Migrating Legacy Databases to Postgres
EDB
 
Cloud Migration Paths: Kubernetes, IaaS, or DBaaS
Cloud Migration Paths: Kubernetes, IaaS, or DBaaS
EDB
 
An Expert Guide to Migrating Legacy Databases to PostgreSQL
An Expert Guide to Migrating Legacy Databases to PostgreSQL
EDB
 
Making Postgres Central in Your Data Center
Making Postgres Central in Your Data Center
EDB
 
EDB Postgres Platform
EDB Postgres Platform
EDB
 
Postgres.foreign.data.wrappers.2015
Postgres.foreign.data.wrappers.2015
EDB
 
Postgres for the Future
Postgres for the Future
EDB
 

More Related Content

What's hot (20)

Getting Started with PostGIS
Getting Started with PostGIS
EDB
 
Active/Active Database Solutions with Log Based Replication in xDB 6.0
Active/Active Database Solutions with Log Based Replication in xDB 6.0
EDB
 
Replacing Oracle with EDB Postgres
Replacing Oracle with EDB Postgres
EDB
 
DevOps Culture & Enablement with Postgres Plus Cloud Database
DevOps Culture & Enablement with Postgres Plus Cloud Database
EDB
 
New and Improved Features in PostgreSQL 13
New and Improved Features in PostgreSQL 13
EDB
 
An overview of reference architectures for Postgres
An overview of reference architectures for Postgres
EDB
 
PostgreSQL 13 is Coming - Find Out What's New!
PostgreSQL 13 is Coming - Find Out What's New!
EDB
 
HTAP Queries
HTAP Queries
Atif Shaikh
 
An overview of reference architectures for Postgres
An overview of reference architectures for Postgres
EDB
 
NoSQL and Spatial Database Capabilities using PostgreSQL
NoSQL and Spatial Database Capabilities using PostgreSQL
EDB
 
Using PEM to understand and improve performance in Postgres: Postgres Tuning ...
Using PEM to understand and improve performance in Postgres: Postgres Tuning ...
EDB
 
Top 10 Tips for an Effective Postgres Deployment
Top 10 Tips for an Effective Postgres Deployment
EDB
 
Whats New in Postgres 12
Whats New in Postgres 12
EDB
 
Introducing Data Redaction - an enabler to data security in EDB Postgres Adva...
Introducing Data Redaction - an enabler to data security in EDB Postgres Adva...
EDB
 
IN-MEMORY DATABASE SYSTEMS FOR BIG DATA MANAGEMENT.SAP HANA DATABASE.
IN-MEMORY DATABASE SYSTEMS FOR BIG DATA MANAGEMENT.SAP HANA DATABASE.
George Joseph
 
Expert Guide to Migrating Legacy Databases to Postgres
Expert Guide to Migrating Legacy Databases to Postgres
EDB
 
Cloud Migration Paths: Kubernetes, IaaS, or DBaaS
Cloud Migration Paths: Kubernetes, IaaS, or DBaaS
EDB
 
An Expert Guide to Migrating Legacy Databases to PostgreSQL
An Expert Guide to Migrating Legacy Databases to PostgreSQL
EDB
 
Making Postgres Central in Your Data Center
Making Postgres Central in Your Data Center
EDB
 
EDB Postgres Platform
EDB Postgres Platform
EDB
 
Getting Started with PostGIS
Getting Started with PostGIS
EDB
 
Active/Active Database Solutions with Log Based Replication in xDB 6.0
Active/Active Database Solutions with Log Based Replication in xDB 6.0
EDB
 
Replacing Oracle with EDB Postgres
Replacing Oracle with EDB Postgres
EDB
 
DevOps Culture & Enablement with Postgres Plus Cloud Database
DevOps Culture & Enablement with Postgres Plus Cloud Database
EDB
 
New and Improved Features in PostgreSQL 13
New and Improved Features in PostgreSQL 13
EDB
 
An overview of reference architectures for Postgres
An overview of reference architectures for Postgres
EDB
 
PostgreSQL 13 is Coming - Find Out What's New!
PostgreSQL 13 is Coming - Find Out What's New!
EDB
 
An overview of reference architectures for Postgres
An overview of reference architectures for Postgres
EDB
 
NoSQL and Spatial Database Capabilities using PostgreSQL
NoSQL and Spatial Database Capabilities using PostgreSQL
EDB
 
Using PEM to understand and improve performance in Postgres: Postgres Tuning ...
Using PEM to understand and improve performance in Postgres: Postgres Tuning ...
EDB
 
Top 10 Tips for an Effective Postgres Deployment
Top 10 Tips for an Effective Postgres Deployment
EDB
 
Whats New in Postgres 12
Whats New in Postgres 12
EDB
 
Introducing Data Redaction - an enabler to data security in EDB Postgres Adva...
Introducing Data Redaction - an enabler to data security in EDB Postgres Adva...
EDB
 
IN-MEMORY DATABASE SYSTEMS FOR BIG DATA MANAGEMENT.SAP HANA DATABASE.
IN-MEMORY DATABASE SYSTEMS FOR BIG DATA MANAGEMENT.SAP HANA DATABASE.
George Joseph
 
Expert Guide to Migrating Legacy Databases to Postgres
Expert Guide to Migrating Legacy Databases to Postgres
EDB
 
Cloud Migration Paths: Kubernetes, IaaS, or DBaaS
Cloud Migration Paths: Kubernetes, IaaS, or DBaaS
EDB
 
An Expert Guide to Migrating Legacy Databases to PostgreSQL
An Expert Guide to Migrating Legacy Databases to PostgreSQL
EDB
 
Making Postgres Central in Your Data Center
Making Postgres Central in Your Data Center
EDB
 
EDB Postgres Platform
EDB Postgres Platform
EDB
 

Similar to The Central View of your Data with Postgres (20)

Postgres.foreign.data.wrappers.2015
Postgres.foreign.data.wrappers.2015
EDB
 
Postgres for the Future
Postgres for the Future
EDB
 
Postgres NoSQL - Delivering Apps Faster
Postgres NoSQL - Delivering Apps Faster
EDB
 
FOSSASIA 2015 - 10 Features your developers are missing when stuck with Propr...
FOSSASIA 2015 - 10 Features your developers are missing when stuck with Propr...
Ashnikbiz
 
NoSQL Now: Postgres - The NoSQL Cake You Can Eat
NoSQL Now: Postgres - The NoSQL Cake You Can Eat
DATAVERSITY
 
What's New in PostgreSQL 9.3
What's New in PostgreSQL 9.3
EDB
 
New enhancements for security and usability in EDB 13
New enhancements for security and usability in EDB 13
EDB
 
New enhancements for security and usability in EDB 13
New enhancements for security and usability in EDB 13
EDB
 
NoSQL on ACID - Meet Unstructured Postgres
NoSQL on ACID - Meet Unstructured Postgres
EDB
 
Doing More with Postgres - Yesterday's Vision Becomes Today's Reality
Doing More with Postgres - Yesterday's Vision Becomes Today's Reality
EDB
 
PostgreSQL as a Strategic Tool
PostgreSQL as a Strategic Tool
EDB
 
Postgres: The NoSQL Cake You Can Eat
Postgres: The NoSQL Cake You Can Eat
EDB
 
Ashnik EnterpriseDB PostgreSQL - A real alternative to Oracle
Ashnik EnterpriseDB PostgreSQL - A real alternative to Oracle
Ashnikbiz
 
Transform your DBMS to drive engagement innovation with Big Data
Transform your DBMS to drive engagement innovation with Big Data
Ashnikbiz
 
Expanding with EDB Postgres Advanced Server 9.5
Expanding with EDB Postgres Advanced Server 9.5
EDB
 
EDB NoSQL German Webinar 2015
EDB NoSQL German Webinar 2015
EDB
 
Which postgres is_right_for_me_20130517
Which postgres is_right_for_me_20130517
EDB
 
10/ EnterpriseDB @ OPEN'16
10/ EnterpriseDB @ OPEN'16
Kangaroot
 
PostgreSQL as a Strategic Tool
PostgreSQL as a Strategic Tool
EDB
 
Postgres for Digital Transformation: NoSQL Features, Replication, FDW & More
Postgres for Digital Transformation: NoSQL Features, Replication, FDW & More
Ashnikbiz
 
Postgres.foreign.data.wrappers.2015
Postgres.foreign.data.wrappers.2015
EDB
 
Postgres for the Future
Postgres for the Future
EDB
 
Postgres NoSQL - Delivering Apps Faster
Postgres NoSQL - Delivering Apps Faster
EDB
 
FOSSASIA 2015 - 10 Features your developers are missing when stuck with Propr...
FOSSASIA 2015 - 10 Features your developers are missing when stuck with Propr...
Ashnikbiz
 
NoSQL Now: Postgres - The NoSQL Cake You Can Eat
NoSQL Now: Postgres - The NoSQL Cake You Can Eat
DATAVERSITY
 
What's New in PostgreSQL 9.3
What's New in PostgreSQL 9.3
EDB
 
New enhancements for security and usability in EDB 13
New enhancements for security and usability in EDB 13
EDB
 
New enhancements for security and usability in EDB 13
New enhancements for security and usability in EDB 13
EDB
 
NoSQL on ACID - Meet Unstructured Postgres
NoSQL on ACID - Meet Unstructured Postgres
EDB
 
Doing More with Postgres - Yesterday's Vision Becomes Today's Reality
Doing More with Postgres - Yesterday's Vision Becomes Today's Reality
EDB
 
PostgreSQL as a Strategic Tool
PostgreSQL as a Strategic Tool
EDB
 
Postgres: The NoSQL Cake You Can Eat
Postgres: The NoSQL Cake You Can Eat
EDB
 
Ashnik EnterpriseDB PostgreSQL - A real alternative to Oracle
Ashnik EnterpriseDB PostgreSQL - A real alternative to Oracle
Ashnikbiz
 
Transform your DBMS to drive engagement innovation with Big Data
Transform your DBMS to drive engagement innovation with Big Data
Ashnikbiz
 
Expanding with EDB Postgres Advanced Server 9.5
Expanding with EDB Postgres Advanced Server 9.5
EDB
 
EDB NoSQL German Webinar 2015
EDB NoSQL German Webinar 2015
EDB
 
Which postgres is_right_for_me_20130517
Which postgres is_right_for_me_20130517
EDB
 
10/ EnterpriseDB @ OPEN'16
10/ EnterpriseDB @ OPEN'16
Kangaroot
 
PostgreSQL as a Strategic Tool
PostgreSQL as a Strategic Tool
EDB
 
Postgres for Digital Transformation: NoSQL Features, Replication, FDW & More
Postgres for Digital Transformation: NoSQL Features, Replication, FDW & More
Ashnikbiz
 
Ad

More from EDB (20)

Die 10 besten PostgreSQL-Replikationsstrategien für Ihr Unternehmen
Die 10 besten PostgreSQL-Replikationsstrategien für Ihr Unternehmen
EDB
 
Migre sus bases de datos Oracle a la nube
Migre sus bases de datos Oracle a la nube
EDB
 
EFM Office Hours - APJ - July 29, 2021
EFM Office Hours - APJ - July 29, 2021
EDB
 
Benchmarking Cloud Native PostgreSQL
Benchmarking Cloud Native PostgreSQL
EDB
 
Las Variaciones de la Replicación de PostgreSQL
Las Variaciones de la Replicación de PostgreSQL
EDB
 
Is There Anything PgBouncer Can’t Do?
Is There Anything PgBouncer Can’t Do?
EDB
 
Data Analysis with TensorFlow in PostgreSQL
Data Analysis with TensorFlow in PostgreSQL
EDB
 
Practical Partitioning in Production with Postgres
Practical Partitioning in Production with Postgres
EDB
 
A Deeper Dive into EXPLAIN
A Deeper Dive into EXPLAIN
EDB
 
IOT with PostgreSQL
IOT with PostgreSQL
EDB
 
A Journey from Oracle to PostgreSQL
A Journey from Oracle to PostgreSQL
EDB
 
Psql is awesome!
Psql is awesome!
EDB
 
EDB 13 - New Enhancements for Security and Usability - APJ
EDB 13 - New Enhancements for Security and Usability - APJ
EDB
 
Comment sauvegarder correctement vos données
Comment sauvegarder correctement vos données
EDB
 
Cloud Native PostgreSQL - Italiano
Cloud Native PostgreSQL - Italiano
EDB
 
Best Practices in Security with PostgreSQL
Best Practices in Security with PostgreSQL
EDB
 
Cloud Native PostgreSQL - APJ
Cloud Native PostgreSQL - APJ
EDB
 
Best Practices in Security with PostgreSQL
Best Practices in Security with PostgreSQL
EDB
 
EDB Postgres & Tools in a Smart City Project
EDB Postgres & Tools in a Smart City Project
EDB
 
Migrate Today: Proactive Steps to Unhook from Oracle
Migrate Today: Proactive Steps to Unhook from Oracle
EDB
 
Die 10 besten PostgreSQL-Replikationsstrategien für Ihr Unternehmen
Die 10 besten PostgreSQL-Replikationsstrategien für Ihr Unternehmen
EDB
 
Migre sus bases de datos Oracle a la nube
Migre sus bases de datos Oracle a la nube
EDB
 
EFM Office Hours - APJ - July 29, 2021
EFM Office Hours - APJ - July 29, 2021
EDB
 
Benchmarking Cloud Native PostgreSQL
Benchmarking Cloud Native PostgreSQL
EDB
 
Las Variaciones de la Replicación de PostgreSQL
Las Variaciones de la Replicación de PostgreSQL
EDB
 
Is There Anything PgBouncer Can’t Do?
Is There Anything PgBouncer Can’t Do?
EDB
 
Data Analysis with TensorFlow in PostgreSQL
Data Analysis with TensorFlow in PostgreSQL
EDB
 
Practical Partitioning in Production with Postgres
Practical Partitioning in Production with Postgres
EDB
 
A Deeper Dive into EXPLAIN
A Deeper Dive into EXPLAIN
EDB
 
IOT with PostgreSQL
IOT with PostgreSQL
EDB
 
A Journey from Oracle to PostgreSQL
A Journey from Oracle to PostgreSQL
EDB
 
Psql is awesome!
Psql is awesome!
EDB
 
EDB 13 - New Enhancements for Security and Usability - APJ
EDB 13 - New Enhancements for Security and Usability - APJ
EDB
 
Comment sauvegarder correctement vos données
Comment sauvegarder correctement vos données
EDB
 
Cloud Native PostgreSQL - Italiano
Cloud Native PostgreSQL - Italiano
EDB
 
Best Practices in Security with PostgreSQL
Best Practices in Security with PostgreSQL
EDB
 
Cloud Native PostgreSQL - APJ
Cloud Native PostgreSQL - APJ
EDB
 
Best Practices in Security with PostgreSQL
Best Practices in Security with PostgreSQL
EDB
 
EDB Postgres & Tools in a Smart City Project
EDB Postgres & Tools in a Smart City Project
EDB
 
Migrate Today: Proactive Steps to Unhook from Oracle
Migrate Today: Proactive Steps to Unhook from Oracle
EDB
 
Ad

Recently uploaded (20)

Looking for a BIRT Report Alternative Here’s Why Helical Insight Stands Out.pdf
Looking for a BIRT Report Alternative Here’s Why Helical Insight Stands Out.pdf
Varsha Nayak
 
Step by step guide to install Flutter and Dart
Step by step guide to install Flutter and Dart
S Pranav (Deepu)
 
GDG Douglas - Google AI Agents: Your Next Intern?
GDG Douglas - Google AI Agents: Your Next Intern?
felipeceotto
 
SAP Datasphere Catalog L2 (2024-02-07).pptx
SAP Datasphere Catalog L2 (2024-02-07).pptx
HimanshuSachdeva46
 
Integrating Survey123 and R&H Data Using FME
Integrating Survey123 and R&H Data Using FME
Safe Software
 
Emvigo Capability Deck 2025: Accelerating Innovation Through Intelligent Soft...
Emvigo Capability Deck 2025: Accelerating Innovation Through Intelligent Soft...
Emvigo Technologies
 
Rierino Commerce Platform - CMS Solution
Rierino Commerce Platform - CMS Solution
Rierino
 
Open Source Software Development Methods
Open Source Software Development Methods
VICTOR MAESTRE RAMIREZ
 
On-Device AI: Is It Time to Go All-In, or Do We Still Need the Cloud?
On-Device AI: Is It Time to Go All-In, or Do We Still Need the Cloud?
Hassan Abid
 
Folding Cheat Sheet # 9 - List Unfolding 𝑢𝑛𝑓𝑜𝑙𝑑 as the Computational Dual of ...
Folding Cheat Sheet # 9 - List Unfolding 𝑢𝑛𝑓𝑜𝑙𝑑 as the Computational Dual of ...
Philip Schwarz
 
About Certivo | Intelligent Compliance Solutions for Global Regulatory Needs
About Certivo | Intelligent Compliance Solutions for Global Regulatory Needs
certivoai
 
Shell Skill Tree - LabEx Certification (LabEx)
Shell Skill Tree - LabEx Certification (LabEx)
VICTOR MAESTRE RAMIREZ
 
SAP PM Module Level-IV Training Complete.ppt
SAP PM Module Level-IV Training Complete.ppt
MuhammadShaheryar36
 
Automated Migration of ESRI Geodatabases Using XML Control Files and FME
Automated Migration of ESRI Geodatabases Using XML Control Files and FME
Safe Software
 
Enable Your Cloud Journey With Microsoft Trusted Partner | IFI Tech
Enable Your Cloud Journey With Microsoft Trusted Partner | IFI Tech
IFI Techsolutions
 
MOVIE RECOMMENDATION SYSTEM, UDUMULA GOPI REDDY, Y24MC13085.pptx
MOVIE RECOMMENDATION SYSTEM, UDUMULA GOPI REDDY, Y24MC13085.pptx
Maharshi Mallela
 
Decipher SEO Solutions for your startup needs.
Decipher SEO Solutions for your startup needs.
mathai2
 
UPDASP a project coordination unit ......
UPDASP a project coordination unit ......
withrj1
 
Reimagining Software Development and DevOps with Agentic AI
Reimagining Software Development and DevOps with Agentic AI
Maxim Salnikov
 
Software Testing & it’s types (DevOps)
Software Testing & it’s types (DevOps)
S Pranav (Deepu)
 
Looking for a BIRT Report Alternative Here’s Why Helical Insight Stands Out.pdf
Looking for a BIRT Report Alternative Here’s Why Helical Insight Stands Out.pdf
Varsha Nayak
 
Step by step guide to install Flutter and Dart
Step by step guide to install Flutter and Dart
S Pranav (Deepu)
 
GDG Douglas - Google AI Agents: Your Next Intern?
GDG Douglas - Google AI Agents: Your Next Intern?
felipeceotto
 
SAP Datasphere Catalog L2 (2024-02-07).pptx
SAP Datasphere Catalog L2 (2024-02-07).pptx
HimanshuSachdeva46
 
Integrating Survey123 and R&H Data Using FME
Integrating Survey123 and R&H Data Using FME
Safe Software
 
Emvigo Capability Deck 2025: Accelerating Innovation Through Intelligent Soft...
Emvigo Capability Deck 2025: Accelerating Innovation Through Intelligent Soft...
Emvigo Technologies
 
Rierino Commerce Platform - CMS Solution
Rierino Commerce Platform - CMS Solution
Rierino
 
Open Source Software Development Methods
Open Source Software Development Methods
VICTOR MAESTRE RAMIREZ
 
On-Device AI: Is It Time to Go All-In, or Do We Still Need the Cloud?
On-Device AI: Is It Time to Go All-In, or Do We Still Need the Cloud?
Hassan Abid
 
Folding Cheat Sheet # 9 - List Unfolding 𝑢𝑛𝑓𝑜𝑙𝑑 as the Computational Dual of ...
Folding Cheat Sheet # 9 - List Unfolding 𝑢𝑛𝑓𝑜𝑙𝑑 as the Computational Dual of ...
Philip Schwarz
 
About Certivo | Intelligent Compliance Solutions for Global Regulatory Needs
About Certivo | Intelligent Compliance Solutions for Global Regulatory Needs
certivoai
 
Shell Skill Tree - LabEx Certification (LabEx)
Shell Skill Tree - LabEx Certification (LabEx)
VICTOR MAESTRE RAMIREZ
 
SAP PM Module Level-IV Training Complete.ppt
SAP PM Module Level-IV Training Complete.ppt
MuhammadShaheryar36
 
Automated Migration of ESRI Geodatabases Using XML Control Files and FME
Automated Migration of ESRI Geodatabases Using XML Control Files and FME
Safe Software
 
Enable Your Cloud Journey With Microsoft Trusted Partner | IFI Tech
Enable Your Cloud Journey With Microsoft Trusted Partner | IFI Tech
IFI Techsolutions
 
MOVIE RECOMMENDATION SYSTEM, UDUMULA GOPI REDDY, Y24MC13085.pptx
MOVIE RECOMMENDATION SYSTEM, UDUMULA GOPI REDDY, Y24MC13085.pptx
Maharshi Mallela
 
Decipher SEO Solutions for your startup needs.
Decipher SEO Solutions for your startup needs.
mathai2
 
UPDASP a project coordination unit ......
UPDASP a project coordination unit ......
withrj1
 
Reimagining Software Development and DevOps with Agentic AI
Reimagining Software Development and DevOps with Agentic AI
Maxim Salnikov
 
Software Testing & it’s types (DevOps)
Software Testing & it’s types (DevOps)
S Pranav (Deepu)
 

The Central View of your Data with Postgres

  • 1. © 2015 EnterpriseDB Corporation. All rights reserved. 1 The Central View of your Data with Postgres To listen to the recording of this presentation visit EnterpriseDB > Resources > Webcasts > On demand Webcasts
  • 2. © 2015 EnterpriseDB Corporation. All rights reserved. 2 •  Different applications generate different types of data •  And various database technologies have evolved as efficient ways to store that data Data Is Everywhere Web Logs Sensor Data Customer Interactions Purchase History Transaction Logs MongoDB Hadoop Cassandra RedisPostgreSQL CouchDB Social Media THERE IS NO CENTRAL VIEW!
  • 3. © 2015 EnterpriseDB Corporation. All rights reserved. 3 •  Data silos are inevitable. •  IT needs to be more agile in response to business requests for new views of data. •  Eventually, silos need to be joined with information from the system of record to provide value. Sample Use Cases •  Customer 360 •  Identification of regulated information •  Risk analysis •  Management of contract data •  Sensor collected data Why Do We Need A Central View?
  • 4. © 2015 EnterpriseDB Corporation. All rights reserved. 4 In an Ideal World, You Would Have a Centralized View Customer Interactions OLTP Live Data Purchase History The Logical Data Warehouse Web LogsTransaction Logs •  We call this the Logical Data Warehouse
  • 5. © 2015 EnterpriseDB Corporation. All rights reserved. 5 •  Core PostgeSQL features to support more diverse workloads −  Flexible Datatypes – JSON / JSONB and Key Value Store −  Unlogged tables to improve performance •  Foreign Data Wrappers (FDW) −  Use PostgreSQL as a central interface to connect to other systems to gather data and issue queries or joins −  Push-down for where and columns improve performance •  Postgres Plus features −  Resource Management to more effectively run mixed workloads −  EDB*Loader to load data from various sources EnterpriseDB’s Strategy Around Centralizing Data Focuses on 3 Areas
  • 6. © 2015 EnterpriseDB Corporation. All rights reserved. 6 •  HSTORE −  Key-value pair −  Simple, fast and easy −  Postgres v 8.2 – pre-dates many NoSQL-only solutions −  Ideal for flat data structures that are sparsely populated •  JSON −  Hierarchical document model −  Introduced in Postgres 9.2, perfected in 9.3 •  JSONB −  Binary version of JSON −  Faster, more operators and even more robust −  Postgres 9.4 Postgres’ Provides Flexible Data Types
  • 7. © 2015 EnterpriseDB Corporation. All rights reserved. 7 •  Creating a table with a JSONB field CREATE TABLE json_data (data JSONB);! •  Simple JSON data element: {"name": "Apple Phone", "type": "phone", "brand": "ACME", "price": 200, "available": true, "warranty_years": 1}! •  Inserting this data element into the table json_data INSERT INTO json_data (data) VALUES ! !(’ { !"name": "Apple Phone", ! ! !"type": "phone", ! ! !"brand": "ACME", ! ! !"price": 200, ! ! !"available": true, ! ! !"warranty_years": 1 ! !! !} ')! JSON Examples
  • 8. © 2015 EnterpriseDB Corporation. All rights reserved. 8 SELECT DISTINCT ! !data->>'name' as products ! FROM json_data;
 ! products ! ------------------------------! Cable TV Basic Service Package! AC3 Case Black! Phone Service Basic Plan! AC3 Phone! AC3 Case Green! Phone Service Family Plan! AC3 Case Red! AC7 Phone! A simple query for JSON data This query does not return JSON data – it returns text values associated with the key ‘name’
  • 9. © 2015 EnterpriseDB Corporation. All rights reserved. 9 SELECT DISTINCT product_type, data->>'brand' as Brand, data->>'available' as Availability FROM json_data JOIN products ON (products.product_type=json_data.data->>'name') WHERE json_data.data->>'available'=true; product_type | brand | availability ---------------------------+-----------+-------------- AC3 Phone | ACME | true JSON and ANSI SQL Example ANSI SQL JSON No need for programmatic logic to combine SQL and NoSQL in the application – Postgres does it all
  • 10. © 2015 EnterpriseDB Corporation. All rights reserved. 10 •  Every write in PostgreSQL is essentially two writes due to Write Ahead Log (WAL) −  WAL guarantees durability and support replication •  Unlogged tables are freed from this constraint −  But tables are no longer crash safe! •  Can see good performance gain (~13-17%) Unlogged Tables Improve Performance
  • 11. © 2015 EnterpriseDB Corporation. All rights reserved. 11 •  Make external data sources look like local tables •  Use SQL −  SELECT syntax; including useful clauses like DISTINCT, ORDER BY, GROUP BY and more. −  JOIN external data with internal tables −  FUNCTIONS for comparison, math, string, pattern matching, date/time, etc −  Starting in 9.3 - INSERT / UPDATE / DELETE too •  Predicate pushdown – Filter data on remote sources first! −  SELECT and WHERE clauses today −  Roadmap - Join, Group/Aggregate, Sort and Limit Some Background on Foreign Data Wrappers
  • 12. © 2015 EnterpriseDB Corporation. All rights reserved. 12 https://www.github.com/EnterpriseDB •  We have contributed new Mongo FDW, MySQL FDW and HDFS (Hadoop) FDW •  We focused on adding Enterprise capabilities −  Connecting Pooling −  Predicate pushdowns −  Where clause pushdown −  Column pushdown −  Writeablity (DML support) EnterpriseDB is investing in Foreign Data Wrappers
  • 13. © 2015 EnterpriseDB Corporation. All rights reserved. 13 The HDFS_FDW Postgres Plus Postgres HDFS_FDW
  • 14. © 2015 EnterpriseDB Corporation. All rights reserved. 14 Example usage from HDFS_FDW
  • 15. © 2015 EnterpriseDB Corporation. All rights reserved. 15 Example usage from HDFS_FDW
  • 16. © 2015 EnterpriseDB Corporation. All rights reserved. 16 Current Release •  Alpha Release – February 2015 •  Support for HiveServer 1 & 2 •  Complete Select support •  Pushdown features (Where clause and query columns) •  Connection pooling •  Use of map reduce jobs for aggregates and complex query operations. Roadmap •  Writeability via Hbase •  Support for Flum/Impala server •  More pushdown features (joins, aggregates, sort etc) •  Custom Map Reduce Jobs •  Authentication support •  Installers to be provided via EnterpriseDB’s GUI Installer, RPM and DEB packages EnterpriseDB’s HDFS_FDW is Available and Improvements Planned
  • 17. © 2015 EnterpriseDB Corporation. All rights reserved. 17 Postgres Plus Advanced Server Resource Manager (CPU & I/O) Reporting Transactions 80% 20% Run Mixed Workloads More Efficiently with PPAS 9.4 Resource Management •  DBA assigns CPU & I/O to job groups •  Allocates and prioritizes consumption of resources •  Low priority jobs don’t hurt high priority jobs
  • 18. © 2015 EnterpriseDB Corporation. All rights reserved. 18 •  Create Resource Groups and assign the CPU Rate Limit •  Use these resource groups during a psql session Run Mixed Workloads More Efficiently with PPAS 9.4 Resource Management - Statements executed will be limited in CPU or writing to shared_buffers per resource group. - Individual limits are computed based on recent CPU / shared_buffer usage. - Processes sleep when necessary & avoid sleep when holding critical locks. - The limits are adjusted regularly based on current usage. - If multiple processes in the same group are being executed, aggregate usage will be limited CREATE RESOURCE GROUP resgrp_a; CREATE RESOURCE GROUP resgrp_b; ALTER RESOURCE GROUP resgrp_a SET cpu_rate_limit = .25; ALTER RESOURCE GROUP resgrp_a SET dirty_rate_limit = 12288; SET edb_resource_group TO res_grp_a;
  • 19. © 2015 EnterpriseDB Corporation. All rights reserved. 19 •  Conventional path, direct path, and parallel direct load loading methods •  Data loading from standard input and remote loading, particularly useful for large data sources on remote hosts •  Input data with delimiter-separated or fixed-width fields •  Bad file for collecting rejected records •  Discard file for collecting records that do not meet the selection criteria of any target table •  Log file for recording the EDB*Loader session and any error messages Efficiently load data using EDB*Loader
  • 20. © 2015 EnterpriseDB Corporation. All rights reserved. 20 •  Core PostgeSQL features to support more diverse workloads −  Flexible Datatypes – JSON / JSONB and Key Value Store −  Unlogged tables to improve performance •  Foreign Data Wrappers (FDW) −  Use PostgreSQL as a central interface to connect to other systems to gather data and issue queries or joins −  Push-down for where and columns improve performance •  Postgres Plus features −  Resource Management to more effectively run mixed workloads −  EDB*Loader to load data from various sources Recap: EnterpriseDB’s Strategy Around Centralizing Data Focuses on 3 Areas
  • 21. © 2015 EnterpriseDB Corporation. All rights reserved. 21