SlideShare a Scribd company logo
© Copyright EnterpriseDB Corporation, 2019. All rights reserved.1
Installing Postgres on
Linux
A step-by-step approach
Devrim Gündüz
Marc Linster
© Copyright EnterpriseDB Corporation, 2019. All rights reserved.2
Agenda
● Who is EDB?
● Why did we switch from one-click installers to native packages?
● Installing PostgreSQL and EDB Postgres Advanced Server on
CentOS or RHEL
● Installing PostgreSQL and EDB Postgres Advanced Server on
Debian/Ubuntu
● Q & A
● What’s next in Pulse on Postgres?
© Copyright EnterpriseDB Corporation, 2019. All rights reserved.3
WHO IS EDB?
The world leader in
open-source based Postgres
software and services
4
• Founded in 2004
• Recognized RDBMS leader by:
• Gartner
• Forrester
• Customer base > 4000
• 300+ employees
• Offices worldwide
• Largest PostgreSQL
community leader
ONLY OPEN
SOURCE BASED
RDBMS IN
GARTNER MQ
EDB Recognized 6 Years
In A Row on Gartner’s
Magic Quadrant
5
6
Customers working SMARTER, reducing RISK and being more PRODUCTIVE with EDB.
OVER 4,000 CUSTOMERS
U.S Customers
EMEA Customers APAC Customers
102
of the
Fortune 500
337
of the Forbes
Global 2000
EDB OPEN SOURCE LEADERSHIP
NAMED EDB OPEN SOURCE COMMITTERS AND CONTRIBUTORS
7
• CORE TEAM
• • •
• MAJOR CONTRIBUTORS • CONTRIBUTORS
Akshay
Joshi
Amul
Sul
Ashesh
Vashi
Dilip
Kumar
Jeevan
Ladhe
Mithun
Cy
Andres
Freund
Devrim
Gündüz
Thomas
Munro
Amit
Kapila
Bruce
Momjian
Dave
Page
Robert
Haas
Ashutos
h
Sharma
Rushabh
Lathia
- designates committers
EDB Postgres
Advanced
Server
Super set of PostgreSQL
All PostgreSQL features are available in
EDB Postgres Advanced Server
Managed fork, continuously synchronized
with PostgreSQL
© Copyright EnterpriseDB Corporation, 2019. All rights reserved.8
When would you pick EDB
Postgres Advanced Server?
● Native PL/SQL compatibility, key
Oracle packages, pragma autonomous
transaction, query hints, etc.
● Resource Manager manages CPU and
I/O resources
● Session/System Wait Diagnostics
● EDB Loader for fast bulk loads
● Enhanced security features
○ Separate audit log
○ Native data redaction
○ Password policy management
Why did EDB and the Postgres community switch from one-click installers to
native packages?
Why Native Packages?
© Copyright EnterpriseDB Corporation, 2019. All rights reserved.9
Issues with the installers: Maintenance
● Common libraries for all platforms
● OpenSSL, LDAP, etc.
● They don’t match the OS libraries
● Updating OS is not sufficient.
● Must update EPAS via installer, even for an SSL update!
● Compatibility issues while building software
● Linking libpq will be an issue
● Security updates!
© Copyright EnterpriseDB Corporation, 2019. All rights reserved.10
Issues with the installers: Integration
● Does not integrate with the OS package
management systems (dnf, yum, apt, zypper)
− Separate update techniques
− Separate monitoring for updates
© Copyright EnterpriseDB Corporation, 2019. All rights reserved.11
Issues with the installers: Performance
● “The lowest common denominator”
− Oldest libc library
− Older compiler versions
© Copyright EnterpriseDB Corporation, 2019. All rights reserved.12
Target
● Be as close as possible to packaging guidelines
● Be as close to community packaging, and their
behaviour.
● Make things as consistent as possible between RPMs
and DEB packages
● Ease of use
© Copyright EnterpriseDB Corporation, 2019. All rights reserved.13
Benefits of native packaging:
Maintenance
● Uses the OS libraries
● No separate update requirements
● Easily compile programs against EPAS
● Better linking with libpq
© Copyright EnterpriseDB Corporation, 2019. All rights reserved.14
Benefits of native packaging:
Maintenance
● Uses OS package management tools
● One monitoring platform for all packages
● Integration with Puppet, Chef, Satellite, Ansible, etc.
● Create feasible SELinux policies
© Copyright EnterpriseDB Corporation, 2019. All rights reserved.15
Benefits of native packaging: Ease of
use
● Works pretty much the same with the community packages
● Same tools, with EDB prefixes:
● Ubuntu/Debian:
− pg_lsclusters → epas_lsclusters
− pg_createcluster → epas_createcluster
● Red Hat Enterprise Linux / CentOS:
− postgresql-11-setup → edb-as-11-setup
● Easy adoption to EDB packaages
© Copyright EnterpriseDB Corporation, 2019. All rights reserved.16
Benefits of native packaging: Ease of
update
● Use the OS package manager to update EPAS:
● dnf/yum/apt/zypper …
● Easier than ever!
© Copyright EnterpriseDB Corporation, 2019. All rights reserved.17
Benefits of native packaging: Tools
● EDB tools, like PEM, BART and EFM are already
packages as RPMs.
● Now Ubuntu/Debian!
● EDB native packages integrate with these tools!
© Copyright EnterpriseDB Corporation, 2019. All rights reserved.18
Benefits of native packaging:
Performance
● OS-supplied libc
● OS-supplied compiler
© Copyright EnterpriseDB Corporation, 2019. All rights reserved.19
Benefits of native packaging:
Community PostgreSQL
● Users of Windows/Mac still will use 1-click installers
● Community PostgreSQL repos have hundreds of thousands of
users already
● Community APT repos have 100+ packages
● Community RPM repos have 235+ packages
● https://www.PostgreSQL.org/download
© Copyright EnterpriseDB Corporation, 2019. All rights reserved.20
Platform Support
© Copyright EnterpriseDB Corporation, 2019. All rights reserved.21
• Ubuntu 18.04
• Debian 9
• Red Hat Enterprise
Linux 7
• CentOS 7
• Red Hat Enterprise
Linux 8 (WIP)
• CentOS 8 (WIP)
• SuSE Enterprise
Linux 12
• SuSE Enterprise
Linux 15 (TBC)
EnterpriseDB Repository
Access
© Copyright EnterpriseDB Corporation, 2019. All rights reserved.22
EDB Repository Access
● EnterpriseDB RPM and DEB repositories require username/password
● You can obtain it from EnterpriseDB.com
● Login to website, click “Access repository” link in here:
○ https://www.enterprisedb.com/advanced-downloads
● Go to “My account” page to find username/password
● Demo time:
© Copyright EnterpriseDB Corporation, 2019. All rights reserved.23
EDB Repository Access
● Please do not forget to note the username/password down.
● You will need them in next steps.
© Copyright EnterpriseDB Corporation, 2019. All rights reserved.24
Step by step demo
Installing on CentOS/RHEL
© Copyright EnterpriseDB Corporation, 2019. All rights reserved.25
>> Key Concepts <<
● EDB: Username/password required (the ones we noted down in the
previous step)
● Password-less install with PostgreSQL
● Repo RPM
● EDB Postgres Advanced Server Installation
● PostgreSQL installation
● How to proceed if you can’t access the EDB YUM repo from the DB
Server
© Copyright EnterpriseDB Corporation, 2019. All rights reserved.26
Repository RPM: EDB
● https://yum.enterprisedb.com/
● Copy the “edb-repo” link
● Install the repo RPM to access EnterpriseDB RPM repos
● It includes URLs, and username/password information as well.
● Now, let’s run this:
© Copyright EnterpriseDB Corporation, 2019. All rights reserved.27
Repository RPM: PostgreSQL
● https://yum.postgresql.org/repopackages.php
● Find the right operating system/architecture
● Let’s try!
© Copyright EnterpriseDB Corporation, 2019. All rights reserved.28
Repository configuration: EDB
● As mentioned, we installed the repo RPMS.
● Contents go to /etc/yum.repos.d/edb.repo
● Now, let’s edit this file:
© Copyright EnterpriseDB Corporation, 2019. All rights reserved.29
Repository configuration:
PostgreSQL
● One single repo RPM for all supported PostgreSQL releases
● EPEL dependency for GIS packages
● Contents go to /etc/yum.repos.d/pgdg-redhat-all.repo
● No need to edit this file for production usage.
○ Testing repositories exist.
© Copyright EnterpriseDB Corporation, 2019. All rights reserved.30
Package installation: EDB
● Repositories are now configured.
● GIS packages require EPEL repo:
○ https://fedoraproject.org/wiki/EPEL#Quickstart
● Now, let’s install EPAS:
© Copyright EnterpriseDB Corporation, 2019. All rights reserved.31
Package installation:
PostgreSQL
● GIS packages require EPEL repo:
○ https://fedoraproject.org/wiki/EPEL#Quickstart
● Now, let’s install PostgreSQL 11:
© Copyright EnterpriseDB Corporation, 2019. All rights reserved.32
Post-installation
● RHEL/CentOS requires initdb
● RPMs provide scripts for this
○ EDB RPMs: /usr/edb/as11/bin/edb-as-11-setup initdb
○ PostgreSQL RPMs: /usr/pgsql-11/bin/postgresql-11-setup initdb
● After running initdb, we need to enable and start the service.
● Let’s do these:
© Copyright EnterpriseDB Corporation, 2019. All rights reserved.33
Installing multiple major
versions
● EDB: Repo must be enabled.
● PostgreSQL: Already enabled.
● Same procedure, just version number changes.
● Port numbers must be different.
● Let’s do these:
© Copyright EnterpriseDB Corporation, 2019. All rights reserved.34
Installing without network
access
● Tarballs available at EDB repositories
● Community repository has rsync support
● Dependencies must also be downloaded
© Copyright EnterpriseDB Corporation, 2019. All rights reserved.35
Step by step demo
Installing on Debian/Ubuntu
© Copyright EnterpriseDB Corporation, 2019. All rights reserved.36
● EDB: Username/password (the ones we noted down in the beginning)
● Password-less install with PostgreSQL
● Setting up the repository
● EDB Postgres Advanced Server installation
● PostgreSQL installation
>> Key Concepts <<
© Copyright EnterpriseDB Corporation, 2019. All rights reserved.37
Repository configuration
● EnterpriseDB: A few commands, as noted in
https://apt.enterprisedb.com
● PostgreSQL: Similar commands, as instructed in
https://apt.enterprisedb.com
● Demo:
© Copyright EnterpriseDB Corporation, 2019. All rights reserved.38
Package installation: EDB
● Repositories are now configured.
● We can now install EPAS:
© Copyright EnterpriseDB Corporation, 2019. All rights reserved.39
Package installation:
PostgreSQL
● Repositories are now configured.
● We can now install EPAS:
© Copyright EnterpriseDB Corporation, 2019. All rights reserved.40
Post-installation
● .deb packages take care of everything
○ Ports, directories
● Command line tools available to control the cluster:
○ pg_createcluster, pg_lsclusters, pg_ctlcluster, etc.
○ epas_createcluster, epas_lsclusters, epas_ctlcluster, etc.
© Copyright EnterpriseDB Corporation, 2019. All rights reserved.41
Installing multiple major
versions
● Just run
○ apt-get install edb-as10
● Debian/Ubuntu packages does everything automagically
© Copyright EnterpriseDB Corporation, 2019. All rights reserved.42
Q & A
© Copyright EnterpriseDB Corporation, 2019. All rights reserved.43
Upcoming events
Pulse of
Postgres
Installing Postgres in
Docker Containers
Sept 25
Installing Postgres on
Windows
Oct 9
Ad

Recommended

GKE に飛んでくるトラフィックを 自由自在に操る力 | 第 10 回 Google Cloud INSIDE Games & Apps Online
GKE に飛んでくるトラフィックを 自由自在に操る力 | 第 10 回 Google Cloud INSIDE Games & Apps Online
Google Cloud Platform - Japan
 
PostgreSQLをKubernetes上で活用するためのOperator紹介!(Cloud Native Database Meetup #3 発表資料)
PostgreSQLをKubernetes上で活用するためのOperator紹介!(Cloud Native Database Meetup #3 発表資料)
NTT DATA Technology & Innovation
 
Infrastructure as Code with Terraform and Ansible
Infrastructure as Code with Terraform and Ansible
DevOps Meetup Bern
 
Monitoring Kubernetes with Prometheus
Monitoring Kubernetes with Prometheus
Grafana Labs
 
YOW2021 Computing Performance
YOW2021 Computing Performance
Brendan Gregg
 
PostgreSQLコミュニティに飛び込もう
PostgreSQLコミュニティに飛び込もう
NTT DATA OSS Professional Services
 
Linux-HA Japanプロジェクトのこれまでとこれから
Linux-HA Japanプロジェクトのこれまでとこれから
ksk_ha
 
コンテナを突き破れ!! ~コンテナセキュリティ入門基礎の基礎~(Kubernetes Novice Tokyo #11 発表資料)
コンテナを突き破れ!! ~コンテナセキュリティ入門基礎の基礎~(Kubernetes Novice Tokyo #11 発表資料)
NTT DATA Technology & Innovation
 
TEE (Trusted Execution Environment)は第二の仮想化技術になるか?
TEE (Trusted Execution Environment)は第二の仮想化技術になるか?
Kuniyasu Suzaki
 
Temel Linux Kullanımı ve Komutları
Temel Linux Kullanımı ve Komutları
Ahmet Gürel
 
How Netflix Tunes EC2 Instances for Performance
How Netflix Tunes EC2 Instances for Performance
Brendan Gregg
 
Linux sunum
Linux sunum
Oğuzhan TAŞ Akademi
 
Presto on YARNの導入・運用
Presto on YARNの導入・運用
cyberagent
 
超実践 Cloud Spanner 設計講座
超実践 Cloud Spanner 設計講座
Samir Hammoudi
 
PostgreSQLのfull_page_writesについて(第24回PostgreSQLアンカンファレンス@オンライン 発表資料)
PostgreSQLのfull_page_writesについて(第24回PostgreSQLアンカンファレンス@オンライン 発表資料)
NTT DATA Technology & Innovation
 
SSH Tünelleme ile İçerik Filtreleyicileri Atlatmak
SSH Tünelleme ile İçerik Filtreleyicileri Atlatmak
BGA Cyber Security
 
NVIDIA vGPU - Introduction to NVIDIA Virtual GPU
NVIDIA vGPU - Introduction to NVIDIA Virtual GPU
Lee Bushen
 
Pacemaker + PostgreSQL レプリケーション構成(PG-REX)のフェイルオーバー高速化
Pacemaker + PostgreSQL レプリケーション構成(PG-REX)のフェイルオーバー高速化
kazuhcurry
 
ElasticSearch Basic Introduction
ElasticSearch Basic Introduction
Mayur Rathod
 
How to run P4 BMv2
How to run P4 BMv2
Kentaro Ebisawa
 
インフラ野郎 Azureチーム at クラウド boost
インフラ野郎 Azureチーム at クラウド boost
Toru Makabe
 
マイクロサービスバックエンドAPIのためのRESTとgRPC
マイクロサービスバックエンドAPIのためのRESTとgRPC
disc99_
 
PostgreSQLのトラブルシューティング@第5回中国地方DB勉強会
PostgreSQLのトラブルシューティング@第5回中国地方DB勉強会
Shigeru Hanada
 
Docker Networking Deep Dive
Docker Networking Deep Dive
Docker, Inc.
 
Kubernetes Cluster vs Nodes vs Pods vs Containers Comparison
Kubernetes Cluster vs Nodes vs Pods vs Containers Comparison
jeetendra mandal
 
PostgreSQL 15 開発最新情報
PostgreSQL 15 開発最新情報
Masahiko Sawada
 
Optimizing Performance and Security with Platform Native Packaging
Optimizing Performance and Security with Platform Native Packaging
EDB
 
Why you should use native packages to install PostgreSQL on Linux
Why you should use native packages to install PostgreSQL on Linux
EDB
 

More Related Content

What's hot (20)

TEE (Trusted Execution Environment)は第二の仮想化技術になるか?
TEE (Trusted Execution Environment)は第二の仮想化技術になるか?
Kuniyasu Suzaki
 
Temel Linux Kullanımı ve Komutları
Temel Linux Kullanımı ve Komutları
Ahmet Gürel
 
How Netflix Tunes EC2 Instances for Performance
How Netflix Tunes EC2 Instances for Performance
Brendan Gregg
 
Linux sunum
Linux sunum
Oğuzhan TAŞ Akademi
 
Presto on YARNの導入・運用
Presto on YARNの導入・運用
cyberagent
 
超実践 Cloud Spanner 設計講座
超実践 Cloud Spanner 設計講座
Samir Hammoudi
 
PostgreSQLのfull_page_writesについて(第24回PostgreSQLアンカンファレンス@オンライン 発表資料)
PostgreSQLのfull_page_writesについて(第24回PostgreSQLアンカンファレンス@オンライン 発表資料)
NTT DATA Technology & Innovation
 
SSH Tünelleme ile İçerik Filtreleyicileri Atlatmak
SSH Tünelleme ile İçerik Filtreleyicileri Atlatmak
BGA Cyber Security
 
NVIDIA vGPU - Introduction to NVIDIA Virtual GPU
NVIDIA vGPU - Introduction to NVIDIA Virtual GPU
Lee Bushen
 
Pacemaker + PostgreSQL レプリケーション構成(PG-REX)のフェイルオーバー高速化
Pacemaker + PostgreSQL レプリケーション構成(PG-REX)のフェイルオーバー高速化
kazuhcurry
 
ElasticSearch Basic Introduction
ElasticSearch Basic Introduction
Mayur Rathod
 
How to run P4 BMv2
How to run P4 BMv2
Kentaro Ebisawa
 
インフラ野郎 Azureチーム at クラウド boost
インフラ野郎 Azureチーム at クラウド boost
Toru Makabe
 
マイクロサービスバックエンドAPIのためのRESTとgRPC
マイクロサービスバックエンドAPIのためのRESTとgRPC
disc99_
 
PostgreSQLのトラブルシューティング@第5回中国地方DB勉強会
PostgreSQLのトラブルシューティング@第5回中国地方DB勉強会
Shigeru Hanada
 
Docker Networking Deep Dive
Docker Networking Deep Dive
Docker, Inc.
 
Kubernetes Cluster vs Nodes vs Pods vs Containers Comparison
Kubernetes Cluster vs Nodes vs Pods vs Containers Comparison
jeetendra mandal
 
PostgreSQL 15 開発最新情報
PostgreSQL 15 開発最新情報
Masahiko Sawada
 
TEE (Trusted Execution Environment)は第二の仮想化技術になるか?
TEE (Trusted Execution Environment)は第二の仮想化技術になるか?
Kuniyasu Suzaki
 
Temel Linux Kullanımı ve Komutları
Temel Linux Kullanımı ve Komutları
Ahmet Gürel
 
How Netflix Tunes EC2 Instances for Performance
How Netflix Tunes EC2 Instances for Performance
Brendan Gregg
 
Presto on YARNの導入・運用
Presto on YARNの導入・運用
cyberagent
 
超実践 Cloud Spanner 設計講座
超実践 Cloud Spanner 設計講座
Samir Hammoudi
 
PostgreSQLのfull_page_writesについて(第24回PostgreSQLアンカンファレンス@オンライン 発表資料)
PostgreSQLのfull_page_writesについて(第24回PostgreSQLアンカンファレンス@オンライン 発表資料)
NTT DATA Technology & Innovation
 
SSH Tünelleme ile İçerik Filtreleyicileri Atlatmak
SSH Tünelleme ile İçerik Filtreleyicileri Atlatmak
BGA Cyber Security
 
NVIDIA vGPU - Introduction to NVIDIA Virtual GPU
NVIDIA vGPU - Introduction to NVIDIA Virtual GPU
Lee Bushen
 
Pacemaker + PostgreSQL レプリケーション構成(PG-REX)のフェイルオーバー高速化
Pacemaker + PostgreSQL レプリケーション構成(PG-REX)のフェイルオーバー高速化
kazuhcurry
 
ElasticSearch Basic Introduction
ElasticSearch Basic Introduction
Mayur Rathod
 
インフラ野郎 Azureチーム at クラウド boost
インフラ野郎 Azureチーム at クラウド boost
Toru Makabe
 
マイクロサービスバックエンドAPIのためのRESTとgRPC
マイクロサービスバックエンドAPIのためのRESTとgRPC
disc99_
 
PostgreSQLのトラブルシューティング@第5回中国地方DB勉強会
PostgreSQLのトラブルシューティング@第5回中国地方DB勉強会
Shigeru Hanada
 
Docker Networking Deep Dive
Docker Networking Deep Dive
Docker, Inc.
 
Kubernetes Cluster vs Nodes vs Pods vs Containers Comparison
Kubernetes Cluster vs Nodes vs Pods vs Containers Comparison
jeetendra mandal
 
PostgreSQL 15 開発最新情報
PostgreSQL 15 開発最新情報
Masahiko Sawada
 

Similar to Installing Postgres on Linux (20)

Optimizing Performance and Security with Platform Native Packaging
Optimizing Performance and Security with Platform Native Packaging
EDB
 
Why you should use native packages to install PostgreSQL on Linux
Why you should use native packages to install PostgreSQL on Linux
EDB
 
Which PostgreSQL is right for your multi cloud strategy? P2
Which PostgreSQL is right for your multi cloud strategy? P2
Ashnikbiz
 
Hello World with EDB Postgres
Hello World with EDB Postgres
EDB
 
EDB Postgres Platform 11 Webinar
EDB Postgres Platform 11 Webinar
EDB
 
PostgreSQL to Accelerate Innovation
PostgreSQL to Accelerate Innovation
EDB
 
Installing Postgres on Windows
Installing Postgres on Windows
EDB
 
Neuerungen in EDB Postgres 11
Neuerungen in EDB Postgres 11
EDB
 
Les nouveautés d'EDB Postgres 11
Les nouveautés d'EDB Postgres 11
EDB
 
A Comparison of EDB Postgres to Self-Supported PostgreSQL
A Comparison of EDB Postgres to Self-Supported PostgreSQL
EDB
 
EDB: Power to Postgres
EDB: Power to Postgres
Ashnikbiz
 
Postgres Deployment Automation with Terraform and Ansible
Postgres Deployment Automation with Terraform and Ansible
EDB
 
Deploy, move and manage Postgres across cloud platforms
Deploy, move and manage Postgres across cloud platforms
Ashnikbiz
 
Install PostgreSQL on CentOS
Install PostgreSQL on CentOS
Rangson Sangboonruang
 
linux installation.pdf
linux installation.pdf
MuhammadShoaibHussai2
 
Enterprise-class security with PostgreSQL - 2
Enterprise-class security with PostgreSQL - 2
Ashnikbiz
 
Which Postgres is Right for You?
Which Postgres is Right for You?
EDB
 
Easy Installation and Setup of PostgreSQL on Linux, OSX, & Windows
Easy Installation and Setup of PostgreSQL on Linux, OSX, & Windows
haroonm
 
Preview of the EDB Postgres Roadmap
Preview of the EDB Postgres Roadmap
EDB
 
EDB Database Servers and Tools
EDB Database Servers and Tools
Ashnikbiz
 
Optimizing Performance and Security with Platform Native Packaging
Optimizing Performance and Security with Platform Native Packaging
EDB
 
Why you should use native packages to install PostgreSQL on Linux
Why you should use native packages to install PostgreSQL on Linux
EDB
 
Which PostgreSQL is right for your multi cloud strategy? P2
Which PostgreSQL is right for your multi cloud strategy? P2
Ashnikbiz
 
Hello World with EDB Postgres
Hello World with EDB Postgres
EDB
 
EDB Postgres Platform 11 Webinar
EDB Postgres Platform 11 Webinar
EDB
 
PostgreSQL to Accelerate Innovation
PostgreSQL to Accelerate Innovation
EDB
 
Installing Postgres on Windows
Installing Postgres on Windows
EDB
 
Neuerungen in EDB Postgres 11
Neuerungen in EDB Postgres 11
EDB
 
Les nouveautés d'EDB Postgres 11
Les nouveautés d'EDB Postgres 11
EDB
 
A Comparison of EDB Postgres to Self-Supported PostgreSQL
A Comparison of EDB Postgres to Self-Supported PostgreSQL
EDB
 
EDB: Power to Postgres
EDB: Power to Postgres
Ashnikbiz
 
Postgres Deployment Automation with Terraform and Ansible
Postgres Deployment Automation with Terraform and Ansible
EDB
 
Deploy, move and manage Postgres across cloud platforms
Deploy, move and manage Postgres across cloud platforms
Ashnikbiz
 
Enterprise-class security with PostgreSQL - 2
Enterprise-class security with PostgreSQL - 2
Ashnikbiz
 
Which Postgres is Right for You?
Which Postgres is Right for You?
EDB
 
Easy Installation and Setup of PostgreSQL on Linux, OSX, & Windows
Easy Installation and Setup of PostgreSQL on Linux, OSX, & Windows
haroonm
 
Preview of the EDB Postgres Roadmap
Preview of the EDB Postgres Roadmap
EDB
 
EDB Database Servers and Tools
EDB Database Servers and Tools
Ashnikbiz
 
Ad

More from EDB (20)

Cloud Migration Paths: Kubernetes, IaaS, or DBaaS
Cloud Migration Paths: Kubernetes, IaaS, or DBaaS
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
 
NoSQL and Spatial Database Capabilities using PostgreSQL
NoSQL and Spatial Database Capabilities using 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
 
New enhancements for security and usability in EDB 13
New enhancements for security and usability in EDB 13
EDB
 
Best Practices in Security with PostgreSQL
Best Practices in Security with PostgreSQL
EDB
 
Cloud Native PostgreSQL - APJ
Cloud Native PostgreSQL - APJ
EDB
 
Cloud Migration Paths: Kubernetes, IaaS, or DBaaS
Cloud Migration Paths: Kubernetes, IaaS, or DBaaS
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
 
NoSQL and Spatial Database Capabilities using PostgreSQL
NoSQL and Spatial Database Capabilities using 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
 
New enhancements for security and usability in EDB 13
New enhancements for security and usability in EDB 13
EDB
 
Best Practices in Security with PostgreSQL
Best Practices in Security with PostgreSQL
EDB
 
Cloud Native PostgreSQL - APJ
Cloud Native PostgreSQL - APJ
EDB
 
Ad

Recently uploaded (20)

FME as an Orchestration Tool - Peak of Data & AI 2025
FME as an Orchestration Tool - Peak of Data & AI 2025
Safe Software
 
OpenTelemetry 101 Cloud Native Barcelona
OpenTelemetry 101 Cloud Native Barcelona
Imma Valls Bernaus
 
UPDASP a project coordination unit ......
UPDASP a project coordination unit ......
withrj1
 
Step by step guide to install Flutter and Dart
Step by step guide to install Flutter and Dart
S Pranav (Deepu)
 
Women in Tech: Marketo Engage User Group - June 2025 - AJO with AWS
Women in Tech: Marketo Engage User Group - June 2025 - AJO with AWS
BradBedford3
 
Integrating Survey123 and R&H Data Using FME
Integrating Survey123 and R&H Data Using FME
Safe Software
 
Meet You in the Middle: 1000x Performance for Parquet Queries on PB-Scale Dat...
Meet You in the Middle: 1000x Performance for Parquet Queries on PB-Scale Dat...
Alluxio, Inc.
 
SAP Datasphere Catalog L2 (2024-02-07).pptx
SAP Datasphere Catalog L2 (2024-02-07).pptx
HimanshuSachdeva46
 
Folding Cheat Sheet # 9 - List Unfolding 𝑢𝑛𝑓𝑜𝑙𝑑 as the Computational Dual of ...
Folding Cheat Sheet # 9 - List Unfolding 𝑢𝑛𝑓𝑜𝑙𝑑 as the Computational Dual of ...
Philip Schwarz
 
dp-700 exam questions sample docume .pdf
dp-700 exam questions sample docume .pdf
pravkumarbiz
 
Microsoft Business-230T01A-ENU-PowerPoint_01.pptx
Microsoft Business-230T01A-ENU-PowerPoint_01.pptx
soulamaabdoulaye128
 
Automated Migration of ESRI Geodatabases Using XML Control Files and FME
Automated Migration of ESRI Geodatabases Using XML Control Files and FME
Safe Software
 
Who will create the languages of the future?
Who will create the languages of the future?
Jordi Cabot
 
What is data visualization and how data visualization tool can help.pdf
What is data visualization and how data visualization tool can help.pdf
Varsha Nayak
 
Decipher SEO Solutions for your startup needs.
Decipher SEO Solutions for your startup needs.
mathai2
 
Zoneranker’s Digital marketing solutions
Zoneranker’s Digital marketing solutions
reenashriee
 
Shell Skill Tree - LabEx Certification (LabEx)
Shell Skill Tree - LabEx Certification (LabEx)
VICTOR MAESTRE RAMIREZ
 
MOVIE RECOMMENDATION SYSTEM, UDUMULA GOPI REDDY, Y24MC13085.pptx
MOVIE RECOMMENDATION SYSTEM, UDUMULA GOPI REDDY, Y24MC13085.pptx
Maharshi Mallela
 
GDG Douglas - Google AI Agents: Your Next Intern?
GDG Douglas - Google AI Agents: Your Next Intern?
felipeceotto
 
Porting Qt 5 QML Modules to Qt 6 Webinar
Porting Qt 5 QML Modules to Qt 6 Webinar
ICS
 
FME as an Orchestration Tool - Peak of Data & AI 2025
FME as an Orchestration Tool - Peak of Data & AI 2025
Safe Software
 
OpenTelemetry 101 Cloud Native Barcelona
OpenTelemetry 101 Cloud Native Barcelona
Imma Valls Bernaus
 
UPDASP a project coordination unit ......
UPDASP a project coordination unit ......
withrj1
 
Step by step guide to install Flutter and Dart
Step by step guide to install Flutter and Dart
S Pranav (Deepu)
 
Women in Tech: Marketo Engage User Group - June 2025 - AJO with AWS
Women in Tech: Marketo Engage User Group - June 2025 - AJO with AWS
BradBedford3
 
Integrating Survey123 and R&H Data Using FME
Integrating Survey123 and R&H Data Using FME
Safe Software
 
Meet You in the Middle: 1000x Performance for Parquet Queries on PB-Scale Dat...
Meet You in the Middle: 1000x Performance for Parquet Queries on PB-Scale Dat...
Alluxio, Inc.
 
SAP Datasphere Catalog L2 (2024-02-07).pptx
SAP Datasphere Catalog L2 (2024-02-07).pptx
HimanshuSachdeva46
 
Folding Cheat Sheet # 9 - List Unfolding 𝑢𝑛𝑓𝑜𝑙𝑑 as the Computational Dual of ...
Folding Cheat Sheet # 9 - List Unfolding 𝑢𝑛𝑓𝑜𝑙𝑑 as the Computational Dual of ...
Philip Schwarz
 
dp-700 exam questions sample docume .pdf
dp-700 exam questions sample docume .pdf
pravkumarbiz
 
Microsoft Business-230T01A-ENU-PowerPoint_01.pptx
Microsoft Business-230T01A-ENU-PowerPoint_01.pptx
soulamaabdoulaye128
 
Automated Migration of ESRI Geodatabases Using XML Control Files and FME
Automated Migration of ESRI Geodatabases Using XML Control Files and FME
Safe Software
 
Who will create the languages of the future?
Who will create the languages of the future?
Jordi Cabot
 
What is data visualization and how data visualization tool can help.pdf
What is data visualization and how data visualization tool can help.pdf
Varsha Nayak
 
Decipher SEO Solutions for your startup needs.
Decipher SEO Solutions for your startup needs.
mathai2
 
Zoneranker’s Digital marketing solutions
Zoneranker’s Digital marketing solutions
reenashriee
 
Shell Skill Tree - LabEx Certification (LabEx)
Shell Skill Tree - LabEx Certification (LabEx)
VICTOR MAESTRE RAMIREZ
 
MOVIE RECOMMENDATION SYSTEM, UDUMULA GOPI REDDY, Y24MC13085.pptx
MOVIE RECOMMENDATION SYSTEM, UDUMULA GOPI REDDY, Y24MC13085.pptx
Maharshi Mallela
 
GDG Douglas - Google AI Agents: Your Next Intern?
GDG Douglas - Google AI Agents: Your Next Intern?
felipeceotto
 
Porting Qt 5 QML Modules to Qt 6 Webinar
Porting Qt 5 QML Modules to Qt 6 Webinar
ICS
 

Installing Postgres on Linux

  • 1. © Copyright EnterpriseDB Corporation, 2019. All rights reserved.1
  • 2. Installing Postgres on Linux A step-by-step approach Devrim Gündüz Marc Linster © Copyright EnterpriseDB Corporation, 2019. All rights reserved.2
  • 3. Agenda ● Who is EDB? ● Why did we switch from one-click installers to native packages? ● Installing PostgreSQL and EDB Postgres Advanced Server on CentOS or RHEL ● Installing PostgreSQL and EDB Postgres Advanced Server on Debian/Ubuntu ● Q & A ● What’s next in Pulse on Postgres? © Copyright EnterpriseDB Corporation, 2019. All rights reserved.3
  • 4. WHO IS EDB? The world leader in open-source based Postgres software and services 4 • Founded in 2004 • Recognized RDBMS leader by: • Gartner • Forrester • Customer base > 4000 • 300+ employees • Offices worldwide • Largest PostgreSQL community leader
  • 5. ONLY OPEN SOURCE BASED RDBMS IN GARTNER MQ EDB Recognized 6 Years In A Row on Gartner’s Magic Quadrant 5
  • 6. 6 Customers working SMARTER, reducing RISK and being more PRODUCTIVE with EDB. OVER 4,000 CUSTOMERS U.S Customers EMEA Customers APAC Customers 102 of the Fortune 500 337 of the Forbes Global 2000
  • 7. EDB OPEN SOURCE LEADERSHIP NAMED EDB OPEN SOURCE COMMITTERS AND CONTRIBUTORS 7 • CORE TEAM • • • • MAJOR CONTRIBUTORS • CONTRIBUTORS Akshay Joshi Amul Sul Ashesh Vashi Dilip Kumar Jeevan Ladhe Mithun Cy Andres Freund Devrim Gündüz Thomas Munro Amit Kapila Bruce Momjian Dave Page Robert Haas Ashutos h Sharma Rushabh Lathia - designates committers
  • 8. EDB Postgres Advanced Server Super set of PostgreSQL All PostgreSQL features are available in EDB Postgres Advanced Server Managed fork, continuously synchronized with PostgreSQL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.8 When would you pick EDB Postgres Advanced Server? ● Native PL/SQL compatibility, key Oracle packages, pragma autonomous transaction, query hints, etc. ● Resource Manager manages CPU and I/O resources ● Session/System Wait Diagnostics ● EDB Loader for fast bulk loads ● Enhanced security features ○ Separate audit log ○ Native data redaction ○ Password policy management
  • 9. Why did EDB and the Postgres community switch from one-click installers to native packages? Why Native Packages? © Copyright EnterpriseDB Corporation, 2019. All rights reserved.9
  • 10. Issues with the installers: Maintenance ● Common libraries for all platforms ● OpenSSL, LDAP, etc. ● They don’t match the OS libraries ● Updating OS is not sufficient. ● Must update EPAS via installer, even for an SSL update! ● Compatibility issues while building software ● Linking libpq will be an issue ● Security updates! © Copyright EnterpriseDB Corporation, 2019. All rights reserved.10
  • 11. Issues with the installers: Integration ● Does not integrate with the OS package management systems (dnf, yum, apt, zypper) − Separate update techniques − Separate monitoring for updates © Copyright EnterpriseDB Corporation, 2019. All rights reserved.11
  • 12. Issues with the installers: Performance ● “The lowest common denominator” − Oldest libc library − Older compiler versions © Copyright EnterpriseDB Corporation, 2019. All rights reserved.12
  • 13. Target ● Be as close as possible to packaging guidelines ● Be as close to community packaging, and their behaviour. ● Make things as consistent as possible between RPMs and DEB packages ● Ease of use © Copyright EnterpriseDB Corporation, 2019. All rights reserved.13
  • 14. Benefits of native packaging: Maintenance ● Uses the OS libraries ● No separate update requirements ● Easily compile programs against EPAS ● Better linking with libpq © Copyright EnterpriseDB Corporation, 2019. All rights reserved.14
  • 15. Benefits of native packaging: Maintenance ● Uses OS package management tools ● One monitoring platform for all packages ● Integration with Puppet, Chef, Satellite, Ansible, etc. ● Create feasible SELinux policies © Copyright EnterpriseDB Corporation, 2019. All rights reserved.15
  • 16. Benefits of native packaging: Ease of use ● Works pretty much the same with the community packages ● Same tools, with EDB prefixes: ● Ubuntu/Debian: − pg_lsclusters → epas_lsclusters − pg_createcluster → epas_createcluster ● Red Hat Enterprise Linux / CentOS: − postgresql-11-setup → edb-as-11-setup ● Easy adoption to EDB packaages © Copyright EnterpriseDB Corporation, 2019. All rights reserved.16
  • 17. Benefits of native packaging: Ease of update ● Use the OS package manager to update EPAS: ● dnf/yum/apt/zypper … ● Easier than ever! © Copyright EnterpriseDB Corporation, 2019. All rights reserved.17
  • 18. Benefits of native packaging: Tools ● EDB tools, like PEM, BART and EFM are already packages as RPMs. ● Now Ubuntu/Debian! ● EDB native packages integrate with these tools! © Copyright EnterpriseDB Corporation, 2019. All rights reserved.18
  • 19. Benefits of native packaging: Performance ● OS-supplied libc ● OS-supplied compiler © Copyright EnterpriseDB Corporation, 2019. All rights reserved.19
  • 20. Benefits of native packaging: Community PostgreSQL ● Users of Windows/Mac still will use 1-click installers ● Community PostgreSQL repos have hundreds of thousands of users already ● Community APT repos have 100+ packages ● Community RPM repos have 235+ packages ● https://www.PostgreSQL.org/download © Copyright EnterpriseDB Corporation, 2019. All rights reserved.20
  • 21. Platform Support © Copyright EnterpriseDB Corporation, 2019. All rights reserved.21 • Ubuntu 18.04 • Debian 9 • Red Hat Enterprise Linux 7 • CentOS 7 • Red Hat Enterprise Linux 8 (WIP) • CentOS 8 (WIP) • SuSE Enterprise Linux 12 • SuSE Enterprise Linux 15 (TBC)
  • 22. EnterpriseDB Repository Access © Copyright EnterpriseDB Corporation, 2019. All rights reserved.22
  • 23. EDB Repository Access ● EnterpriseDB RPM and DEB repositories require username/password ● You can obtain it from EnterpriseDB.com ● Login to website, click “Access repository” link in here: ○ https://www.enterprisedb.com/advanced-downloads ● Go to “My account” page to find username/password ● Demo time: © Copyright EnterpriseDB Corporation, 2019. All rights reserved.23
  • 24. EDB Repository Access ● Please do not forget to note the username/password down. ● You will need them in next steps. © Copyright EnterpriseDB Corporation, 2019. All rights reserved.24
  • 25. Step by step demo Installing on CentOS/RHEL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.25
  • 26. >> Key Concepts << ● EDB: Username/password required (the ones we noted down in the previous step) ● Password-less install with PostgreSQL ● Repo RPM ● EDB Postgres Advanced Server Installation ● PostgreSQL installation ● How to proceed if you can’t access the EDB YUM repo from the DB Server © Copyright EnterpriseDB Corporation, 2019. All rights reserved.26
  • 27. Repository RPM: EDB ● https://yum.enterprisedb.com/ ● Copy the “edb-repo” link ● Install the repo RPM to access EnterpriseDB RPM repos ● It includes URLs, and username/password information as well. ● Now, let’s run this: © Copyright EnterpriseDB Corporation, 2019. All rights reserved.27
  • 28. Repository RPM: PostgreSQL ● https://yum.postgresql.org/repopackages.php ● Find the right operating system/architecture ● Let’s try! © Copyright EnterpriseDB Corporation, 2019. All rights reserved.28
  • 29. Repository configuration: EDB ● As mentioned, we installed the repo RPMS. ● Contents go to /etc/yum.repos.d/edb.repo ● Now, let’s edit this file: © Copyright EnterpriseDB Corporation, 2019. All rights reserved.29
  • 30. Repository configuration: PostgreSQL ● One single repo RPM for all supported PostgreSQL releases ● EPEL dependency for GIS packages ● Contents go to /etc/yum.repos.d/pgdg-redhat-all.repo ● No need to edit this file for production usage. ○ Testing repositories exist. © Copyright EnterpriseDB Corporation, 2019. All rights reserved.30
  • 31. Package installation: EDB ● Repositories are now configured. ● GIS packages require EPEL repo: ○ https://fedoraproject.org/wiki/EPEL#Quickstart ● Now, let’s install EPAS: © Copyright EnterpriseDB Corporation, 2019. All rights reserved.31
  • 32. Package installation: PostgreSQL ● GIS packages require EPEL repo: ○ https://fedoraproject.org/wiki/EPEL#Quickstart ● Now, let’s install PostgreSQL 11: © Copyright EnterpriseDB Corporation, 2019. All rights reserved.32
  • 33. Post-installation ● RHEL/CentOS requires initdb ● RPMs provide scripts for this ○ EDB RPMs: /usr/edb/as11/bin/edb-as-11-setup initdb ○ PostgreSQL RPMs: /usr/pgsql-11/bin/postgresql-11-setup initdb ● After running initdb, we need to enable and start the service. ● Let’s do these: © Copyright EnterpriseDB Corporation, 2019. All rights reserved.33
  • 34. Installing multiple major versions ● EDB: Repo must be enabled. ● PostgreSQL: Already enabled. ● Same procedure, just version number changes. ● Port numbers must be different. ● Let’s do these: © Copyright EnterpriseDB Corporation, 2019. All rights reserved.34
  • 35. Installing without network access ● Tarballs available at EDB repositories ● Community repository has rsync support ● Dependencies must also be downloaded © Copyright EnterpriseDB Corporation, 2019. All rights reserved.35
  • 36. Step by step demo Installing on Debian/Ubuntu © Copyright EnterpriseDB Corporation, 2019. All rights reserved.36
  • 37. ● EDB: Username/password (the ones we noted down in the beginning) ● Password-less install with PostgreSQL ● Setting up the repository ● EDB Postgres Advanced Server installation ● PostgreSQL installation >> Key Concepts << © Copyright EnterpriseDB Corporation, 2019. All rights reserved.37
  • 38. Repository configuration ● EnterpriseDB: A few commands, as noted in https://apt.enterprisedb.com ● PostgreSQL: Similar commands, as instructed in https://apt.enterprisedb.com ● Demo: © Copyright EnterpriseDB Corporation, 2019. All rights reserved.38
  • 39. Package installation: EDB ● Repositories are now configured. ● We can now install EPAS: © Copyright EnterpriseDB Corporation, 2019. All rights reserved.39
  • 40. Package installation: PostgreSQL ● Repositories are now configured. ● We can now install EPAS: © Copyright EnterpriseDB Corporation, 2019. All rights reserved.40
  • 41. Post-installation ● .deb packages take care of everything ○ Ports, directories ● Command line tools available to control the cluster: ○ pg_createcluster, pg_lsclusters, pg_ctlcluster, etc. ○ epas_createcluster, epas_lsclusters, epas_ctlcluster, etc. © Copyright EnterpriseDB Corporation, 2019. All rights reserved.41
  • 42. Installing multiple major versions ● Just run ○ apt-get install edb-as10 ● Debian/Ubuntu packages does everything automagically © Copyright EnterpriseDB Corporation, 2019. All rights reserved.42
  • 43. Q & A © Copyright EnterpriseDB Corporation, 2019. All rights reserved.43
  • 44. Upcoming events Pulse of Postgres Installing Postgres in Docker Containers Sept 25 Installing Postgres on Windows Oct 9