https://store-images.s-microsoft.com/image/apps.54733.a992d6ad-4f4f-49de-aa3f-3296a9346758.26a2b436-30b9-487f-9686-e6706f5f2b2e.d0a7598a-2fd7-461f-b294-a252de33bb67

PostgreSQL on CentOS 7.9

Ntegral Inc.

PostgreSQL on CentOS 7.9

Ntegral Inc.

PostgreSQL on CentOS 7.9 by Ntegral Inc.

PostgreSQL is a relational database management system. It is a database specifically targeted for enterprise-scale applications on Azure.

It can handle workloads ranging from small single-machine applications to large Internet-facing applications with many concurrent users. It handles complex SQL queries using many indexing methods that are not available in other databases. PostgreSQL is cross-platform and runs on many operating systems.

In order to use Postgres, log into postgres account.,

You can do that by typing: sudo -i -u postgres

You will be asked for your normal user password and then will be given a shell prompt for the postgres user.

You can get a Postgres prompt immediately by typing: psql

Default ports:

  1. SSH: TCP 22
  2. DB: TCP 5432

To get started please create a user and database on psql cli as given in the sample below:

EXAMPLE ONLY

CREATE USER myuser SUPERUSER;

ALTER USER myuser WITH PASSWORD 'mypassword';

CREATE DATABASE mydatabase WITH OWNER myuser;

Note: The TCP port the server listens on 5432 by default. It is not opened on Public interface