Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Learning PostgreSQL 10
Learning PostgreSQL 10

Learning PostgreSQL 10: A beginner's guide to building high-performance PostgreSQL database solutions , Second Edition

eBook
€15.99 €23.99
Paperback
€29.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
Table of content icon View table of contents Preview book icon Preview Book

Learning PostgreSQL 10

PostgreSQL in Action

PostgreSQL (pronounced Post-Gres-Q-L) or postgres for short is an open source object relational database management system. It emphasizes extensibility and creativity as well as compatibility. It competes with the major relational database vendors such as Oracle, MySQL, SQL servers, and others. It is used by different sectors including government agencies and the public and private sectors. It is a cross-platform DBMS, and runs on most modern operating systems including Windows, macOS, and Linux flavors. It conforms to SQL and is ACID-compliant.

In this chapter, we will explore several topics including:

  • PostgreSQL history.
  • Selected PostgreSQL forks. 
  • Companies utilizing PostgreSQL and success stories
  • PostgreSQL usage pattern.
  • PostgreSQL architecture, capabilities and features.
  • PostgreSQL installation on Linux as well as windows.
  • PostgreSQL client...

An overview of PostgreSQL

PostgreSQL (http://www.PostgreSQL.org/) has many rich features. It provides enterprise-level services including performance, unique features, and scalability. It has a very supportive community and very good documentation.

PostgreSQL history

PostgreSQL has started as a research project in the University of California at Berkeley (UCB), then it has been developed by the community in 1996, up till now PostgreSQL is actively developed by the PostgreSQL community as well as universities. The following time frames shows the history of PostgreSQL development:

  • 1977-1985, the Ingres project: Michael Stonebraker created an RDBMS based on the formal relational model
  • 1986-1994, postgres: Michael Stonebraker...

PostgreSQL capabilities

PostgreSQL provides enterprise-level services that guarantee the continuation of the business. For example, PostgreSQL supports replication, this enables the developers to provide high availability (HA) solutions. PostgreSQL can integrate data form different data sources , this makes it easy for developer to use it for extract , transform, and load (ETL) jobs .In addition to that PostgreSQL security is treated as a first class citizen and not as a good to have feature, security updates are shipped in minor releases. Finally, the features of PostgreSQL is uncountable, PostgreSQL provides advanced SQL statements, very rich extensions, and interactive tools. 

Replication

Replication allows data from...

Installing PostgreSQL

PostgreSQL can be installed on almost all modern operating systems. It can be installed on all recent Linux distributions, Windows 2000 SP4 and later, FreeBSD, OpenBSD, macOS, AIX, and Solaris. Also, PostgreSQL can work on various CPU architectures including x86, x86_64, IA64, and others. One can check whether a platform (operating system and CPU architecture combination) is supported by exploring the PostgreSQL Build farm (http://buildfarm.PostgreSQL.org/). One can compile and install PostgreSQL from the source code or download its binary and install it.

In order to automate PostgreSQL installation and to reduce server administrative tasks, it is recommended to use PostgreSQL binaries, which come with the operating system packaging system. This approach normally has one drawback: not up-to-date binaries. However, the PostgreSQL official website maintains...

Summary

PostgreSQL is an open source, object-oriented relational database system. It supports many advanced features and complies with the ANSI-SQL standard. It has won industry recognition and user appreciation. The PostgreSQL slogan The world's most advanced open source database reflects the sophistication of the PostgreSQL features. It is a result of many years of research and collaboration between academia and industry. Start-up companies often favor PostgreSQL due to licensing costs and it can aid profitable business models. PostgreSQL is also favored by many developers because of its capabilities and advantages.

PostgreSQL can be used for OLTP and OLAP applications. It is ACID compliant; thus, it can be used out of the box for OLTP applications. For OLAP applications, PostgreSQL supports the Windows functions, FDW, and table inheritance. Also, there are many external...

Left arrow icon Right arrow icon

Key benefits

  • • Be introduced to the concept of relational databases and PostgreSQL, one of the fastest growing open source databases in the world
  • • Learn client-side and server-side programming in PostgreSQL, and how to administer PostgreSQL databases
  • • Discover tips on implementing efficient database solutions with PostgreSQL 10

Description

PostgreSQL is one of the most popular open source databases in the world, supporting the most advanced features included in SQL standards. This book will familiarize you with the latest features released in PostgreSQL 10. We’ll start with a thorough introduction to PostgreSQL and the new features introduced in PostgreSQL 10. We’ll cover the Data Definition Language (DDL) with an emphasis on PostgreSQL, and the common DDL commands supported by ANSI SQL. You’ll learn to create tables, define integrity constraints, build indexes, and set up views and other schema objects. Moving on, we’ll cover the concepts of Data Manipulation Language (DML) and PostgreSQL server-side programming capabilities using PL/pgSQL. We’ll also explore the NoSQL capabilities of PostgreSQL and connect to your PostgreSQL database to manipulate data objects. By the end of this book, you’ll have a thorough understanding of the basics of PostgreSQL 10 and will have the necessary skills to build efficient database solutions.

Who is this book for?

If you're interested in learning more about PostgreSQL, one of the most popular relational databases in the world, then this book is for you. Those looking to build solid database or data warehousing applications with PostgreSQL 10 will also find this book a useful resource. No prior knowledge of database programming or administration is required to get started with this book.

What you will learn

  • Understand the fundamentals of relational databases, relational algebra, and data modeling
  • Install a PostgreSQL cluster, create a database, and implement your data model
  • Create tables and views, define indexes, and implement triggers, stored procedures, and other schema objects
  • Use the Structured Query Language (SQL) to manipulate data in the database
  • Implement business logic on the server side with triggers and stored procedures using PL/pgSQL
  • Make use of advanced data types supported by PostgreSQL 10: arrays, hstore, JSONB, and others
  • Develop OLAP database solutions using the most recent features of PostgreSQL 10
  • Connect your Python applications to a PostgreSQL database and work with data efficiently
  • Test your database code, find bottlenecks, improve performance, and enhance the reliability of database applications

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Dec 01, 2017
Length: 488 pages
Edition : 2nd
Language : English
ISBN-13 : 9781788392013
Category :
Languages :
Tools :

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

Publication date : Dec 01, 2017
Length: 488 pages
Edition : 2nd
Language : English
ISBN-13 : 9781788392013
Category :
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 112.97
Mastering PostgreSQL 10
€32.99
Learning PostgreSQL 10
€29.99
PostgreSQL Administration Cookbook, 9.5/9.6 Edition
€49.99
Total 112.97 Stars icon

Table of Contents

16 Chapters
Relational Databases Chevron down icon Chevron up icon
PostgreSQL in Action Chevron down icon Chevron up icon
PostgreSQL Basic Building Blocks Chevron down icon Chevron up icon
PostgreSQL Advanced Building Blocks Chevron down icon Chevron up icon
SQL Language Chevron down icon Chevron up icon
Advanced Query Writing Chevron down icon Chevron up icon
Server-Side Programming with PL/pgSQL Chevron down icon Chevron up icon
OLAP and Data Warehousing Chevron down icon Chevron up icon
Beyond Conventional Data Types Chevron down icon Chevron up icon
Transactions and Concurrency Control Chevron down icon Chevron up icon
PostgreSQL Security Chevron down icon Chevron up icon
The PostgreSQL Catalog Chevron down icon Chevron up icon
Optimizing Database Performance Chevron down icon Chevron up icon
Testing Chevron down icon Chevron up icon
Using PostgreSQL in Python Applications Chevron down icon Chevron up icon
Scalability Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Half star icon Empty star icon Empty star icon 2.3
(6 Ratings)
5 star 33.3%
4 star 0%
3 star 0%
2 star 0%
1 star 66.7%
Filter icon Filter
Top Reviews

Filter reviews by




Amazon Customer Oct 29, 2018
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Very good bookStep by step approach
Amazon Verified review Amazon
Amazon Customer Nov 20, 2018
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Great for explaining posgreSQL for a beginner
Amazon Verified review Amazon
PK Feb 27, 2019
Full star icon Empty star icon Empty star icon Empty star icon Empty star icon 1
As with all Packt Publishing books, this is rough. The index is useless (it doesn't even include obvious words such as 'varchar'), so the book isn't useful as a reference. It *might* be of some value to somebody who already knows quite a bit of Postgres, and who wants yet another book full of tips.It's certainly not appropriate for a learner. Obscure commands are introduced before the basics have been explained. Code is thrown in without explanation. Concepts are explained badly, in broken English. Even the diagrams look like a rough draft. And, like all Packt Books, there's at least one typo in every paragraph.Why does Packt claim to have technical editors and proof-readers, when they are so obviously incompetent? Why does the indexer even want her name printed in the book? I would be ashamed to have been responsible for a book like this. (Although, to be fair, her name, Rehka, is appropriate.)Packt goes for volume rather than quality. I have six Packt books on Postgres, most of which are valueless. They are produced in India, presumably for a much less demanding market, using the cheapest editors they can find in the back-streets. What is particularly galling is the dishonest claim at the beginning of the book that 'quality is at the heart of our editorial process'. You don't get 'quality' from non-native proof-readers, inexperienced indexers and unsupervised first-time authors.
Amazon Verified review Amazon
Amazon Customer Jun 25, 2023
Full star icon Empty star icon Empty star icon Empty star icon Empty star icon 1
I completely agree with the sentiment of the reviewer with initials PK. This book is way over complicated and is too technical for leaning a new concept. Examples are obscure and don't provide enough simplicity for understanding. Like PK pointed out, the index is a complete after thought, or perhaps, no thought at all. I would give this book zero stars if permitted.
Amazon Verified review Amazon
EJM & ASM May 17, 2021
Full star icon Empty star icon Empty star icon Empty star icon Empty star icon 1
I know it's a 4 year old book and PostgreSQL10 is about the same age but to declare it's a Second Edition is just embarrassing. I'm not sure what was changed but there is no way in the world that editorial changes were made. If you can get through a single page without finding a punctuation misplacement, spelling error, or grammatical mistake, you aren't actually reading this book. The class I'm taking is using this as a textbook and I'll read the code they present but I can't be sure if there's a mistake or I'm just not smart enough to understand the code. It is so poorly written that it is actually preventing me from learning the concepts. Needless to say, avoid this book.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.