Learning PostgreSQL

Create, develop and manage relational databases in real world applications using PostgreSQL

Learning PostgreSQL

This ebook is included in a Mapt subscription
Salahaldin Juba, Achim Vannahme, Andrey Volkov

1 customer reviews
Create, develop and manage relational databases in real world applications using PostgreSQL
$0.00
$22.00
$54.99
$29.99p/m after trial
RRP $43.99
RRP $54.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781783989188
Paperback464 pages

Book Description

PostgreSQL is one of the most powerful and easy to use database management systems. It has strong support from the community and is being actively developed with a new release every year. PostgreSQL supports the most advanced features included in SQL standards. Also it provides NoSQL capabilities, and very rich data types and extensions. All that makes PostgreSQL a very attractive solution in various kinds of software systems.

The book starts with the introduction of relational databases with PostegreSQL. It then moves on to covering data definition language (DDL) with emphasis on PostgreSQL and common DDL commands supported by ANSI SQL. You will then learn the data manipulation language (DML), and advanced topics like locking and multi version concurrency control (MVCC). This will give you a very robust background to tune and troubleshoot your application. The book then covers the implementation of data models in the database such as creating tables, setting up integrity constraints, building indexes, defining views and other schema objects. Next, it will give you an overview about the NoSQL capabilities of PostgreSQL along with Hstore, XML, Json and arrays. Finally by the end of the book, you'll learn to use the JDBC driver and manipulate data objects in the Hibernate framework.

Table of Contents

Chapter 1: Relational Databases
Database management systems
Relational algebra
Data modeling
Summary
Chapter 2: PostgreSQL in Action
An overview of PostgreSQL
PostgreSQL capabilities
Installing PostgreSQL
Summary
Chapter 3: PostgreSQL Basic Building Blocks
Database coding
PostgreSQL objects hierarchy
PostgreSQL high-level object interaction
PostgreSQL database components
Summary
Chapter 4: PostgreSQL Advanced Building Blocks
Views
Indexes
Functions
PostgreSQL user-defined data types
Triggers and rule systems
Summary
Chapter 5: SQL Language
SQL fundamentals
Querying the data with the SELECT statement
Changing the data in the database
Summary
Chapter 6: Advanced Query Writing
Common table expressions
Window functions
Advanced SQL
Transaction isolation and multiversion concurrency control
Summary
Chapter 7: Server-Side Programming with PL/pgSQL
Introduction
PostgreSQL function parameters
The PostgreSQL PL/pgSQL control statements
Exception handling
Dynamic SQL
Summary
Chapter 8: PostgreSQL Security
Authentication in PostgreSQL
PostgreSQL default access privileges
PostgreSQL security levels
Encrypting data
Summary
Chapter 9: The PostgreSQL System Catalog and System Administration Functions
The system catalog
Getting the database cluster and client tools version
Terminating and canceling user sessions
Setting and getting database cluster settings
Getting the database and database object size
Cleaning up the database
Cleaning up data in the database
Managing database locks
Adding missing indexes on foreign keys and altering the default statistic
Getting the views dependency tree
Summary
Chapter 10: Optimizing Database Performance
PostgreSQL configuration tuning
Tuning PostgreSQL queries
Cross column correlation
Table partitioning
Summary
Chapter 11: Beyond Conventional Data types
PostgreSQL arrays
Hash store
The PostgreSQL JSON data type
A PostgreSQL full text search
Summary
Chapter 12: Testing
Unit testing
Schema difference
The interfaces test
PostgreSQL benchmarks
Summary
Chapter 13: PostgreSQL JDBC
Introduction to JDBC
Connecting to a PostgreSQL database
Issuing a query and processing the results
Function handling
Design considerations
Summary
Chapter 14: PostgreSQL and Hibernate
Introduction to ORM and Hibernate
Installation and configuration
Working with entities
Summary

What You Will Learn

  • Learn concepts of data modelling and relation algebra
  • Install and set up PostgreSQL database server and client software
  • Implement data structures in PostgreSQL
  • Manipulate data in the database using SQL
  • Implement data processing logic in the database with stored functions, triggers and views
  • Test database solutions and assess the performance
  • Integrate database with Java applications
  • Detailed knowledge of the main PostgreSQL building objects, most used extensions
  • Practice database development life cycle including analysis, modelling, (documentation), testing, bug fixes and refactoring

Authors

Table of Contents

Chapter 1: Relational Databases
Database management systems
Relational algebra
Data modeling
Summary
Chapter 2: PostgreSQL in Action
An overview of PostgreSQL
PostgreSQL capabilities
Installing PostgreSQL
Summary
Chapter 3: PostgreSQL Basic Building Blocks
Database coding
PostgreSQL objects hierarchy
PostgreSQL high-level object interaction
PostgreSQL database components
Summary
Chapter 4: PostgreSQL Advanced Building Blocks
Views
Indexes
Functions
PostgreSQL user-defined data types
Triggers and rule systems
Summary
Chapter 5: SQL Language
SQL fundamentals
Querying the data with the SELECT statement
Changing the data in the database
Summary
Chapter 6: Advanced Query Writing
Common table expressions
Window functions
Advanced SQL
Transaction isolation and multiversion concurrency control
Summary
Chapter 7: Server-Side Programming with PL/pgSQL
Introduction
PostgreSQL function parameters
The PostgreSQL PL/pgSQL control statements
Exception handling
Dynamic SQL
Summary
Chapter 8: PostgreSQL Security
Authentication in PostgreSQL
PostgreSQL default access privileges
PostgreSQL security levels
Encrypting data
Summary
Chapter 9: The PostgreSQL System Catalog and System Administration Functions
The system catalog
Getting the database cluster and client tools version
Terminating and canceling user sessions
Setting and getting database cluster settings
Getting the database and database object size
Cleaning up the database
Cleaning up data in the database
Managing database locks
Adding missing indexes on foreign keys and altering the default statistic
Getting the views dependency tree
Summary
Chapter 10: Optimizing Database Performance
PostgreSQL configuration tuning
Tuning PostgreSQL queries
Cross column correlation
Table partitioning
Summary
Chapter 11: Beyond Conventional Data types
PostgreSQL arrays
Hash store
The PostgreSQL JSON data type
A PostgreSQL full text search
Summary
Chapter 12: Testing
Unit testing
Schema difference
The interfaces test
PostgreSQL benchmarks
Summary
Chapter 13: PostgreSQL JDBC
Introduction to JDBC
Connecting to a PostgreSQL database
Issuing a query and processing the results
Function handling
Design considerations
Summary
Chapter 14: PostgreSQL and Hibernate
Introduction to ORM and Hibernate
Installation and configuration
Working with entities
Summary

Book Details

ISBN 139781783989188
Paperback464 pages
Read More
From 1 reviews

Read More Reviews