SlideShare a Scribd company logo
4
Most read
5
Most read
12
Most read
Getting Started with
Postgresql
For Charlotte SQL Saturday on 10/20/2018
By Ramu Pulipati
Sponsors
About Me
Cofounder / CTO at Botsplash
Software-as-a-service omnichannel
messaging platform to engage businesses
and customers.
botsplash.com
About Postgresql
• Free – Open Source RDMS alternative to Microsoft SQL Server,
MySQL, Oracle, Mongo DB or any RDBMS and NoSQL databases
• Battle tested for over 30 years with continuous improvements to
support modern applications
• Rich ANSI/ISO Complaint SQL, JSON and Multiple Languages support
• Built-in and extensions for high scalability, geolocation and time series
based applications
• Hosted Providers and Commercial Support
• Used for embedded database, web applications and data warehouses
History & What’s new Version Major Feature
V11
10/18/2018
Partition & Index Improvements
Query Parallelism Improvements
Just-in-time compilation
V10
10/05/2017
Declarative Table Partitions
Logical Replication
Improved Monitoring and Control
V9.6
09/29/2016
Parallel Query
Foreign Data Wrappers
Replication
V9.5
07/01/2016
JSONB Modifying Operators
Row level security
UPSERT statement
V9.4
12/18/2014
Introduce JSONB
Materialized View Improvements
Source: Postgresql Releases
Capabilities
• Full featured Database
• ACID Transactions
• Mature Server Side Programming
• Hot Standby and High Availability
• Online backups
• Point-in-time recovery
• Native Table Partitioning
• Spatial Functionality
• Full Text Search
• JSON and HStore support
Source: Introduction to Postgresql Slideshare
80%
Commercial
Databases
Postgresql
Capabilities (contd …)
• Replication and Read Replicas
• Built-in pub-sub queue
• Multiple schemas with security
• Row level security
• Native SSL Support
• Data Level Encryption
• Extensions
• Database sharding
• Timeseries data
• Multi-tenancy
• Extensible and Customizable
Licensing & Community
• BSD License open for Open
Source, Private and
Commercial use
• No vendor Lock-in
• Predictable releases
• Faster Bug fixes
• Active Community
Source: postgresql.org
Compare to RDBMS
• MySQL
• Has better write performance but
Postgres is ACID compliant and has
better features, reliability and
consistency.
• SQL Server
• Featureful with recently introduced
JSON support. Postgres has
superset of features and scalable
with extensions.
• Oracle
• Most comprehensive database but
very expensive.
• Mongo Db
• Postgresql outshines read/write for
unstructured with JSONB.
Source: NoSQL Performance Benchmark 02/27/2018
Getting started with postgresql
Features
• Affordability
• Technology
• Security
• Flexibility
• Stability
• Extensibility
• Reliability
• Predictability
• Community
• Auditability
Source: Introduction to Postgresql Slideshare
Getting Started
• Download and Install
• Windows packaged from EnterpriseDb
• Linux from apt or source
• Mac installations using homebrew.
• Production recommended on *nix
systems. Postgres 11 supports Windows
2012 R2 deployment.
• Cloud hosted databases from Compose,
Citus Data, AWS RDS, Goolge CloudSql,
Azure Databases are excellent choice.
• Be careful with Docker/Kubernetes
deployments.
Postgresql Client
• Instance accessed from
TCP/IP Port: 5432 default
• CLI/IDE Clients
• PSQL, PgAdmin 4, PGCLI,
TablePlus, Navicat
• Application Clients
• Python SqlAlchemy, NodeJs
Pg, C# Client, Golang pq
Sample Connection String: postgres://username:password@127.0.0.1:5432/northwind
Postgresql Architecture
• Multi-process
architecture
• Primary postmaster
• Per connection backend
process
• Background maintenance
processes
• Use pgBouncer to load
balance large number of
connections
Source: The Internals of Postgresql
Schema and SQL Support
• Basic and Complex data types
• Complex Queries
• Functions, Operators and Aggregate
functions
• Transactional Integrity
• Indexes
• Procedural Language
• Optimized for data storage
• Extend and create custom data types
• Error handling
Data Type Commonly Used Names
Number Smallint, integer, Bigint, decimal,
Money
Number
(auto)
Serial, BigSerial
Character Char, nchar, Text
Binary Bytea
Date Time Timestamp with timezone,
Timestamp without Timezone,
interval
Collections Array, JSON, JSONB
Misc Boolean, UUID, Geo Types, Network
Address Mac Address, Custom Types
Full Text
Search
TsVector, TsQuery
See details from tutorials point
Demo Sample Table and DDL functions
Table DDL
Sample Function
More SQL / NoSQL Support
• Case Sensitive Schema Names
• Case Sensitive Data Storage
• Type casting
• Date Time formatting
• Common Table Expressions
• Array Data Types
• Upserts
• Pivot Tables crosstab function
• Materialized Views
• HStore
• JSONB Structure
• Rich Functions Support
• EXPLAIN ANALYZE
• Pg_stat
Psql tricks and tips
Command Description
l List of all databases
c <db> Change database name
d Show all objects in database
d <item> Describe database item
x [auto] Show one record at a time
timing Turn on/off sql timing
e Edit in an editor (vi or preferred editor)
copy … Save results to CSV file
h Help with SQL
Ctrl + R Search previous SQL command
ir Reference SQL file
Source: pgdash.io
Concurrency - MVCC
• Postgres uses “Multi-version concurrency control”. More details from
postgres internals or interdb.
• All reads are from the snapshot of the database until committed.
• Advantage of this method is reading does not block writing and vice-
versa. Isolation at “read-committed” level
• This method supports table level and row level locking as well.
• Other databases that use this technique are Oracle, CouchDB, etc
Indexes
• Index Support
• Single Column
• Multi Column
• Unique
• Partial Indexes
• Expression Indexes
• Implicit Indexes (PK, UK)
• Index Types
• B-Tree: Balanced Trees used in most databases
• Generalized Inverted Index (GIN): Useful for full text search
• Generalized Search Tree (GIST): Useful for geometric and full text search
B-Tree
Disadvantages / Limits
• Database only solution
• Few available tools compared to
commercial. PgAdmin is catching
up but relatively new.
• CPU bound queries and table
inheritance based partitioning
before v10.
• Limited Talent pool
Source: https://www.youtube.com/watch?v=6p2TNPabt6M
Source: Postgres limits from sreenstepslive.com
Best Practices
• Performance Optimization
• Do not read from Database at all
• Use indexes efficiently
• Use pg_stats collector to monitor usage and performance
• Vacuum regularly to clean up storage
• Bench mark hardware and optimize pg parameters
• Always use SSL for connectivity in untrusted networks
References and Follow up
• Introduction to Postgresql slideshare
• The Internals of Postgresql
• Postgresql excercises
• Postgres Blogs: 2nd Quadrant, Percona and Citus Data, Citus - Craig
Kerstiens
Questions? Contact me at ramu@botsplash.com

More Related Content

What's hot (20)

ODP
Introduction to PostgreSQL
Jim Mlodgenski
 
PPTX
PostGreSQL Performance Tuning
Maven Logix
 
PDF
Upgrade from MySQL 5.7 to MySQL 8.0
Olivier DASINI
 
PPTX
PostgreSQL- An Introduction
Smita Prasad
 
PDF
Kevin Kempter PostgreSQL Backup and Recovery Methods @ Postgres Open
PostgresOpen
 
PDF
Deploying PostgreSQL on Kubernetes
Jimmy Angelakos
 
PPTX
Introduction to PostgreSQL
Joel Brewer
 
PDF
PostgreSQL Replication with Bucardo
Robertus M. S. E. Kusumaning Negoro
 
PDF
Linux tuning to improve PostgreSQL performance
PostgreSQL-Consulting
 
PPTX
MongoDB
nikhil2807
 
PDF
ProxySQL High Avalability and Configuration Management Overview
René Cannaò
 
PPTX
MySQL8.0_performance_schema.pptx
NeoClova
 
PDF
What is new in PostgreSQL 14?
Mydbops
 
PDF
The Full MySQL and MariaDB Parallel Replication Tutorial
Jean-François Gagné
 
PDF
Top 10 Mistakes When Migrating From Oracle to PostgreSQL
Jim Mlodgenski
 
PDF
InnoDB Internal
mysqlops
 
PDF
MySQL Load Balancers - Maxscale, ProxySQL, HAProxy, MySQL Router & nginx - A ...
Severalnines
 
ODP
PostgreSQL Administration for System Administrators
Command Prompt., Inc
 
PDF
PostgreSQL Deep Internal
EXEM
 
PDF
Postgresql database administration volume 1
Federico Campoli
 
Introduction to PostgreSQL
Jim Mlodgenski
 
PostGreSQL Performance Tuning
Maven Logix
 
Upgrade from MySQL 5.7 to MySQL 8.0
Olivier DASINI
 
PostgreSQL- An Introduction
Smita Prasad
 
Kevin Kempter PostgreSQL Backup and Recovery Methods @ Postgres Open
PostgresOpen
 
Deploying PostgreSQL on Kubernetes
Jimmy Angelakos
 
Introduction to PostgreSQL
Joel Brewer
 
PostgreSQL Replication with Bucardo
Robertus M. S. E. Kusumaning Negoro
 
Linux tuning to improve PostgreSQL performance
PostgreSQL-Consulting
 
MongoDB
nikhil2807
 
ProxySQL High Avalability and Configuration Management Overview
René Cannaò
 
MySQL8.0_performance_schema.pptx
NeoClova
 
What is new in PostgreSQL 14?
Mydbops
 
The Full MySQL and MariaDB Parallel Replication Tutorial
Jean-François Gagné
 
Top 10 Mistakes When Migrating From Oracle to PostgreSQL
Jim Mlodgenski
 
InnoDB Internal
mysqlops
 
MySQL Load Balancers - Maxscale, ProxySQL, HAProxy, MySQL Router & nginx - A ...
Severalnines
 
PostgreSQL Administration for System Administrators
Command Prompt., Inc
 
PostgreSQL Deep Internal
EXEM
 
Postgresql database administration volume 1
Federico Campoli
 

Similar to Getting started with postgresql (20)

PDF
Migrating to postgresql
botsplash.com
 
PDF
0292-introduction-postgresql.pdf
Mustafa Keskin
 
PDF
PostgreSQL 10; Long Awaited Enterprise Solutions
Julyanto SUTANDANG
 
PDF
An evening with Postgresql
Joshua Drake
 
PDF
PostgreSQL: present and near future
NaN-tic
 
PPTX
PostgreSQL as an Alternative to MSSQL
Alexei Krasner
 
PDF
Learning postgresql
DAVID RAUDALES
 
PDF
PostgreSQL Prologue
Md. Golam Hossain
 
PDF
Whats wrong with postgres | PGConf EU 2019 | Craig Kerstiens
Citus Data
 
PDF
Beyond Postgres: Interesting Projects, Tools and forks
Sameer Kumar
 
PDF
PostgreSQL - Case Study
S.Shayan Daneshvar
 
PPTX
PostgreSQL - Object Relational Database
Mubashar Iqbal
 
PDF
GSoC2014 - PGDay Ijui/RS Presentation October, 2016
Fabrízio Mello
 
PDF
Trivadis TechEvent 2017 PostgreSQL für die (Orakel) DBA by Ludovico Caldara
Trivadis
 
PDF
Bn 1016 demo postgre sql-online-training
conline training
 
PDF
PostgreSQL : Introduction
Open Source School
 
PPTX
Postgre sql best_practices
Jacques Kostic
 
PDF
PGConf.ASIA 2019 Bali - Keynote Speech 2 - Ivan Pachenko
Equnix Business Solutions
 
PDF
9.6_Course Material-Postgresql_002.pdf
sreedb2
 
PDF
Introduction to PostgreSQL for System Administrators
Jignesh Shah
 
Migrating to postgresql
botsplash.com
 
0292-introduction-postgresql.pdf
Mustafa Keskin
 
PostgreSQL 10; Long Awaited Enterprise Solutions
Julyanto SUTANDANG
 
An evening with Postgresql
Joshua Drake
 
PostgreSQL: present and near future
NaN-tic
 
PostgreSQL as an Alternative to MSSQL
Alexei Krasner
 
Learning postgresql
DAVID RAUDALES
 
PostgreSQL Prologue
Md. Golam Hossain
 
Whats wrong with postgres | PGConf EU 2019 | Craig Kerstiens
Citus Data
 
Beyond Postgres: Interesting Projects, Tools and forks
Sameer Kumar
 
PostgreSQL - Case Study
S.Shayan Daneshvar
 
PostgreSQL - Object Relational Database
Mubashar Iqbal
 
GSoC2014 - PGDay Ijui/RS Presentation October, 2016
Fabrízio Mello
 
Trivadis TechEvent 2017 PostgreSQL für die (Orakel) DBA by Ludovico Caldara
Trivadis
 
Bn 1016 demo postgre sql-online-training
conline training
 
PostgreSQL : Introduction
Open Source School
 
Postgre sql best_practices
Jacques Kostic
 
PGConf.ASIA 2019 Bali - Keynote Speech 2 - Ivan Pachenko
Equnix Business Solutions
 
9.6_Course Material-Postgresql_002.pdf
sreedb2
 
Introduction to PostgreSQL for System Administrators
Jignesh Shah
 
Ad

More from botsplash.com (14)

PPTX
Bootstrap SaaS startup using Open Source Tools
botsplash.com
 
PPTX
Devops Days, 2019 - Charlotte
botsplash.com
 
PPTX
Building NLP solutions for Davidson ML Group
botsplash.com
 
PPTX
Building NLP solutions using Python
botsplash.com
 
PPTX
Chat interfaces, Extension to Digital Marketing
botsplash.com
 
PPTX
Cloud computing options
botsplash.com
 
PPTX
Data Science meets Digital Marketing
botsplash.com
 
PPTX
botsplash deep dive
botsplash.com
 
PPTX
Building Twitter bot using Python
botsplash.com
 
PPTX
Python for data science
botsplash.com
 
PPTX
Live development & tools
botsplash.com
 
PPTX
AI Use Cases discussion
botsplash.com
 
PPTX
Career advice for beginner software engineers
botsplash.com
 
PPTX
Node.js Getting Started &amd Best Practices
botsplash.com
 
Bootstrap SaaS startup using Open Source Tools
botsplash.com
 
Devops Days, 2019 - Charlotte
botsplash.com
 
Building NLP solutions for Davidson ML Group
botsplash.com
 
Building NLP solutions using Python
botsplash.com
 
Chat interfaces, Extension to Digital Marketing
botsplash.com
 
Cloud computing options
botsplash.com
 
Data Science meets Digital Marketing
botsplash.com
 
botsplash deep dive
botsplash.com
 
Building Twitter bot using Python
botsplash.com
 
Python for data science
botsplash.com
 
Live development & tools
botsplash.com
 
AI Use Cases discussion
botsplash.com
 
Career advice for beginner software engineers
botsplash.com
 
Node.js Getting Started &amd Best Practices
botsplash.com
 
Ad

Recently uploaded (20)

PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
Learn Computer Forensics, Second Edition
AnuraShantha7
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PDF
Predicting the unpredictable: re-engineering recommendation algorithms for fr...
Speck&Tech
 
PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
PPT
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PDF
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PPTX
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
Learn Computer Forensics, Second Edition
AnuraShantha7
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
Predicting the unpredictable: re-engineering recommendation algorithms for fr...
Speck&Tech
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 

Getting started with postgresql

  • 1. Getting Started with Postgresql For Charlotte SQL Saturday on 10/20/2018 By Ramu Pulipati
  • 3. About Me Cofounder / CTO at Botsplash Software-as-a-service omnichannel messaging platform to engage businesses and customers. botsplash.com
  • 4. About Postgresql • Free – Open Source RDMS alternative to Microsoft SQL Server, MySQL, Oracle, Mongo DB or any RDBMS and NoSQL databases • Battle tested for over 30 years with continuous improvements to support modern applications • Rich ANSI/ISO Complaint SQL, JSON and Multiple Languages support • Built-in and extensions for high scalability, geolocation and time series based applications • Hosted Providers and Commercial Support • Used for embedded database, web applications and data warehouses
  • 5. History & What’s new Version Major Feature V11 10/18/2018 Partition & Index Improvements Query Parallelism Improvements Just-in-time compilation V10 10/05/2017 Declarative Table Partitions Logical Replication Improved Monitoring and Control V9.6 09/29/2016 Parallel Query Foreign Data Wrappers Replication V9.5 07/01/2016 JSONB Modifying Operators Row level security UPSERT statement V9.4 12/18/2014 Introduce JSONB Materialized View Improvements Source: Postgresql Releases
  • 6. Capabilities • Full featured Database • ACID Transactions • Mature Server Side Programming • Hot Standby and High Availability • Online backups • Point-in-time recovery • Native Table Partitioning • Spatial Functionality • Full Text Search • JSON and HStore support Source: Introduction to Postgresql Slideshare 80% Commercial Databases Postgresql
  • 7. Capabilities (contd …) • Replication and Read Replicas • Built-in pub-sub queue • Multiple schemas with security • Row level security • Native SSL Support • Data Level Encryption • Extensions • Database sharding • Timeseries data • Multi-tenancy • Extensible and Customizable
  • 8. Licensing & Community • BSD License open for Open Source, Private and Commercial use • No vendor Lock-in • Predictable releases • Faster Bug fixes • Active Community Source: postgresql.org
  • 9. Compare to RDBMS • MySQL • Has better write performance but Postgres is ACID compliant and has better features, reliability and consistency. • SQL Server • Featureful with recently introduced JSON support. Postgres has superset of features and scalable with extensions. • Oracle • Most comprehensive database but very expensive. • Mongo Db • Postgresql outshines read/write for unstructured with JSONB. Source: NoSQL Performance Benchmark 02/27/2018
  • 11. Features • Affordability • Technology • Security • Flexibility • Stability • Extensibility • Reliability • Predictability • Community • Auditability Source: Introduction to Postgresql Slideshare
  • 12. Getting Started • Download and Install • Windows packaged from EnterpriseDb • Linux from apt or source • Mac installations using homebrew. • Production recommended on *nix systems. Postgres 11 supports Windows 2012 R2 deployment. • Cloud hosted databases from Compose, Citus Data, AWS RDS, Goolge CloudSql, Azure Databases are excellent choice. • Be careful with Docker/Kubernetes deployments.
  • 13. Postgresql Client • Instance accessed from TCP/IP Port: 5432 default • CLI/IDE Clients • PSQL, PgAdmin 4, PGCLI, TablePlus, Navicat • Application Clients • Python SqlAlchemy, NodeJs Pg, C# Client, Golang pq Sample Connection String: postgres://username:[email protected]:5432/northwind
  • 14. Postgresql Architecture • Multi-process architecture • Primary postmaster • Per connection backend process • Background maintenance processes • Use pgBouncer to load balance large number of connections Source: The Internals of Postgresql
  • 15. Schema and SQL Support • Basic and Complex data types • Complex Queries • Functions, Operators and Aggregate functions • Transactional Integrity • Indexes • Procedural Language • Optimized for data storage • Extend and create custom data types • Error handling Data Type Commonly Used Names Number Smallint, integer, Bigint, decimal, Money Number (auto) Serial, BigSerial Character Char, nchar, Text Binary Bytea Date Time Timestamp with timezone, Timestamp without Timezone, interval Collections Array, JSON, JSONB Misc Boolean, UUID, Geo Types, Network Address Mac Address, Custom Types Full Text Search TsVector, TsQuery See details from tutorials point
  • 16. Demo Sample Table and DDL functions Table DDL Sample Function
  • 17. More SQL / NoSQL Support • Case Sensitive Schema Names • Case Sensitive Data Storage • Type casting • Date Time formatting • Common Table Expressions • Array Data Types • Upserts • Pivot Tables crosstab function • Materialized Views • HStore • JSONB Structure • Rich Functions Support • EXPLAIN ANALYZE • Pg_stat
  • 18. Psql tricks and tips Command Description l List of all databases c <db> Change database name d Show all objects in database d <item> Describe database item x [auto] Show one record at a time timing Turn on/off sql timing e Edit in an editor (vi or preferred editor) copy … Save results to CSV file h Help with SQL Ctrl + R Search previous SQL command ir Reference SQL file Source: pgdash.io
  • 19. Concurrency - MVCC • Postgres uses “Multi-version concurrency control”. More details from postgres internals or interdb. • All reads are from the snapshot of the database until committed. • Advantage of this method is reading does not block writing and vice- versa. Isolation at “read-committed” level • This method supports table level and row level locking as well. • Other databases that use this technique are Oracle, CouchDB, etc
  • 20. Indexes • Index Support • Single Column • Multi Column • Unique • Partial Indexes • Expression Indexes • Implicit Indexes (PK, UK) • Index Types • B-Tree: Balanced Trees used in most databases • Generalized Inverted Index (GIN): Useful for full text search • Generalized Search Tree (GIST): Useful for geometric and full text search B-Tree
  • 21. Disadvantages / Limits • Database only solution • Few available tools compared to commercial. PgAdmin is catching up but relatively new. • CPU bound queries and table inheritance based partitioning before v10. • Limited Talent pool Source: https://www.youtube.com/watch?v=6p2TNPabt6M Source: Postgres limits from sreenstepslive.com
  • 22. Best Practices • Performance Optimization • Do not read from Database at all • Use indexes efficiently • Use pg_stats collector to monitor usage and performance • Vacuum regularly to clean up storage • Bench mark hardware and optimize pg parameters • Always use SSL for connectivity in untrusted networks
  • 23. References and Follow up • Introduction to Postgresql slideshare • The Internals of Postgresql • Postgresql excercises • Postgres Blogs: 2nd Quadrant, Percona and Citus Data, Citus - Craig Kerstiens Questions? Contact me at [email protected]

Editor's Notes

  • #3: A quick comment about sponsors. SQL Saturdays cannot take place without the funding provided by sponsors. The speakers are not paid. The organizers and other folks running around making sure this event runs smoothly are all volunteers. However, his facility, the food, and other expenses that go into putting on an event of this magnitude requires money. Sponsors provide that money. So, show your appreciation by saying hi and thank you when you stop by the sponsor tables to stuff your raffle ticket into the box. You might even take a couple of minutes to ask about their product and services. You may learn something valuable that you can bring back to your work, or that might become a career opportunity. It's all part of the very important networking you should be doing while you are here.
  • #5: PostgreSQL is an object-relational database management system (ORDBMS) based on POSTGRES, Version 4.2, developed at the University of California at Berkeley Computer Science Department. POSTGRES pioneered many concepts that only became available in some commercial database systems much later.
  • #10: ACID (Atomicity, Consistency, Isolation, Durability) https://www.youtube.com/watch?v=6p2TNPabt6M
  • #24: https://www.slideshare.net/ScaleGrid/understanding-high-availability-options-in-postgresql?qid=d9d63ef4-7140-44a0-b9c6-5a5fafca02a0&v=&b=&from_search=18