Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Developing Modern Database Applications with PostgreSQL
  • Table Of Contents Toc
  • Feedback & Rating feedback
Developing Modern Database Applications with PostgreSQL

Developing Modern Database Applications with PostgreSQL

By : Le, Diaz
3.8 (8)
close
close
Developing Modern Database Applications with PostgreSQL

Developing Modern Database Applications with PostgreSQL

3.8 (8)
By: Le, Diaz

Overview of this book

PostgreSQL is an open-source object-relational database management system (DBMS) that provides enterprise-level services, including high performance and scalability. This book is a collection of unique projects providing you with a wealth of information relating to administering, monitoring, and testing PostgreSQL. The focus of each project is on both the development and the administrative aspects of PostgreSQL. Starting by exploring development aspects such as database design and its implementation, you’ll then cover PostgreSQL administration by understanding PostgreSQL architecture, PostgreSQL performance, and high-availability clusters. Various PostgreSQL projects are explained through current technologies such as DevOps and cloud platforms using programming languages like Python and Node.js. Later, you’ll get to grips with the well-known database API tool, PostgREST, before learning how to use popular PostgreSQL database testing frameworks. The book is also packed with essential tips and tricks and common patterns for working seamlessly in a production environment. All the chapters will be explained with the help of a real-world case study on a small banking application for managing ATM locations in a city. By the end of this DBMS book, you’ll be proficient in building reliable database solutions as per your organization's needs.
Table of Contents (17 chapters)
close
close
1
Section 1 - Introducing PostgreSQL Development and Administration
3
Section 2 - Development in PostgreSQL
9
Section 3 - Administration in PostgreSQL

Creating the Puppet module for PostgreSQL

Ubuntu includes PostgreSQL on its repositories by default. To install PostgreSQL on Ubuntu, we can use the apt-get (or other apt-driving) command, but instead of that, we will modify the Vagrant file to include the shell commands to initialize PostgreSQL through Puppet.

Puppet is a software configuration management tool, but I like to say that it is a powerful infrastructure automation and delivery tool. In the following steps, we will see how to deploy PostgreSQL and how it can be configured easily with the help of this extraordinary tool:

  1. Log out of the current vagrant ssh session and then destroy your Vagrant environment:
vagrant destroy

Answer y (=yes) to any questions if prompted:

Figure 7.19 – Destroying a VM

2. Change the vagrant file, C:\Projects\Vagrant\PostgreSQL-Master\Vagrantfile, and change the commented-out lines (near the bottom of the file) that read as follows:

# config.vm.provision...
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Developing Modern Database Applications with PostgreSQL
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon