Postgres 10 setup and testrun on Redhat Linux 7

This is just a quick guide to get up and running with Postgres 10 on redhat linux 7

As of the writing of this quick guide, yum install postgresql-server does not allow you to install version 10.

Instead, we do

As root:

yum install -y https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-redhat10-10-2.noarch.rpm


Install Client Package

yum install -y postgresql10


Install Server Package

yum install -y postgresql10-server


I always seem to have to initialize the database manually, so here it is.

/usr/pgsql-10/bin/postgresql-10-setup initdb


We need to now switch to os user postgres

su - postgres

Run psql command line console, aka PostgreSQL interactive terminal

-bash-4.2$ psql
psql (10.5)
Type "help" for help.

postgres=


Comments

Popular posts from this blog

MongoDB Tips: Kill long running processes

Oracle Goldengate Extract, Pump, and Replicat

MongoDB Ops Manager Basic Installation and Configuration