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
Developing Modern Database Applications with PostgreSQL

Developing Modern Database Applications with PostgreSQL

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

Developing Modern Database Applications with PostgreSQL

3.8 (8)
By: Quan Ha Le, Marcelo 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

pgbench 1 – Creating and initializing a benchmark database

We are going to use pgbench for the RDS on Amazon Web Services. We will set up pgbench from the Jenkins server at 192.168.0.200 that we set up with Vagrant in Chapter  7, PostgreSQL with DevOps for Continuous Delivery. We PuTTY into the Jenkins server: 

  1. First, open PowerShell as administrator:
PS C:\Windows\system32>
PS C:\Windows\system32> cd C:\Projects\Vagrant\Jenkins
PS C:\Projects\Vagrant\Jenkins> vagrant up --provider virtualbox
PS C:\Projects\Vagrant\Jenkins> vagrant ssh

vagrant@devopsubuntu1804:~$
  1. Execute the following script to install pgbench:
    vagrant@devopsubuntu1804:~$ wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -

    vagrant@devopsubuntu1804:~$ echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" |sudo tee /etc/apt/sources.list.d/pgdg.list

    vagrant@devopsubuntu1804:~$ sudo apt update
    vagrant...
    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