PostgreSQL Installation Guide for Adempiere Retail

VERSION 9.4.4

Introduction :

Here we will discuss about PostgreSQL and methodology to setup the server and post-server configuration

along with PostgreSQL configuration will understand the connection between Database and the terminologies

User Access :

Bellow users can have an option to access the installation steps

  • IT – Admin
  • system administrator
  • Tenth Planet Technologies system administrator

Pre – Requisite :

System Requirements (recommended) :

Pre installed Ubuntu version

8 GB of RAM

500 GB of HDD

1 GHz processor

Business Rule :

Step – 1 : Cautious about PostgreSQL version

Step – 2 : Cautious about PostgreSQL environment

Step – 3 : Need to provide Required information while setting PostgreSQL environment

Step – 4 : Ensure PostgreSQL client and server working fine

Installation steps :

Steps to be followed

Step – 1 : Download PostgreSQL server

Step – 2 : Extract PostgreSQL as Executable format

Step – 3 : Configure Required information

Step – 4 : pg_hba.conf configuration

Step – 5 : Modify PostgreSQL.conf file

Step – 6 : Verify PostgreSQL configuration

Step – 7 : PG-Admin installation

Step – 1 : Download PostgreSQL server

Tenthplanet ADempiere-Installation Guide-PostgreSQL

Picture for “selecting packages for configuration “

Tenthplanet ADempiere-Installation Guide-PostgreSQL-1

Need to copy the package Repository and configuration

  • Create the file repository configuration:

( sudo sh -c ‘echo “deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)

-pgdg main” >/etc/apt/sources.list.d/pgdg.list’ ) — single line command

  • Import the repository signing key:

( wget –quiet -O – https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add – )

  • Update the Packages list :

( sudo apt-get update )

picture for ” execute PostgreSQL – 9.4.4-1 “

Tenthplanet-ADempiere-Installation Guide-PostgreSQL-2

Step – 2 : Extract PostgreSQL as Executable format

picture for ” execute PostgreSQL – 9.4.4-1

Tenthplanet ADempiere Installation Guide-PostgreSQL-3

Step – 3 : Configure Required information

picture for ” configure PostgreSQL – 9.4.4-1 “

Tenthplanet-ADempiere-Installation Guide-PostgreSQL-4

picture for ” configure PostgreSQL – 9.4.4-1 “

Tenthplanet-ADempiere-Installation Guide-PostgreSQL-5

picture for ” configure PostgreSQL -9.4.4-1 “

Tenthplanet-ADempiere-Installation Guide-PostgreSQL-6

picture for ” configure PostgreSQL -9.4.4-1 “

Tenthplanet-ADempiere-Installation Guide-PostgreSQL-7

picture for ” configure PostgreSQL -9.4.4-1 “

Tenthplanet ADempiere-Installation Guide-PostgreSQL-8

picture for ” configure PostgreSQL -9.4.4-1 “

Tenthplanet-ADempiere-Installation Guide-PostgreSQL-9

picture for ” configure PostgreSQL -9.4.4-1 “

Tenthplanet-ADempiere-Installation Guide-PostgreSQL-10

picture for ” configure PostgreSQL -9.4.4-1 “

Tenthplanet-ADempiere-Installation Guide-PostgreSQL-11

picture for ” configure PostgreSQL -9.4.4-1 “

Tenthplanet-ADempiere-Installation Guide-PostgreSQL-12

Step – 4 : pg_hba.conf configuration

picture for ” configure PostgreSQL – 9.4.4-1 “

Need to set the PostgreSQL environment with ROOT ACCESS USING NAUTILUS

Tenthplanet-ADempiere-Installation Guide-PostgreSQL-13

Need to OPEN /opt/PostgreSQL/9.4/data then double click open on pg_hba.conf

picture for ” moved PostgreSQL into OPT Directory “

Tenthplanet-ADempiere-Installation Guide-PostgreSQL-14

picture for ” pg_hba.conf configuration “

Tenthplanet-ADempiere-Installation Guide-PostgreSQL-15

picture for ” modify the IPV4 connection”

Tenthplanet-ADempiere-Installation Guide-PostgreSQL-16

picture for ” modified ipv4 connection for local host “

Tenthplanet-ADempiere-Installation Guide-PostgreSQL-17

Step – 5 : Modify PostgreSQL.conf file

picture for ” Modify PostgreSQL.conf file “

Tenthplanet-ADempiere-Installation Guide-PostgreSQL-18

picture for ” verified max connection in PostgreSQL.conf file “

Tenthplanet-ADempiere-Installation Guide-PostgreSQL-19

picture for ” configured max connection in PostgreSQL.conf file ”

Tenthplanet-ADempiere-Installation Guide-PostgreSQL-20

picture for ” verified shared buffer memory ( it should be above 100)

Tenthplanet-ADempiere-Installation Guide-PostgreSQL-21
Tenthplanet-ADempiere-Installation Guide-PostgreSQL-22

picture for ” Restarted PostgreSQL after made a configuration “

Tenthplanet-ADempiere-Installation Guide-PostgreSQL-23

In Ubuntu 16.04 , when system gets booted PostgreSQL Doesn’t start automatically .

Need to set PostgreSQL , to Do start automatically when system gets booted !

Hence we added rc.local file for PostgreSQL automation

Picture for ” selected rc.local file “

Tenthplanet-ADempiere-Installation Guide-PostgreSQL-24

picture for ” provided privileges to rc.local file “

Tenthplanet-ADempiere-Installation Guide-PostgreSQL-25

picture for ” rc.local file moved into etc directory “

Tenthplanet-ADempiere-Installation Guide-PostgreSQL-26

step – 6 : Verify PostgreSQL configuration

picture for ” verified PostgreSQL version “

Need to open rc.local file go to – ” /etc/init.d/PostgreSQL – version “

Tenthplanet-ADempiere-Installation Guide-PostgreSQL-27

NOTE : Need to Restart the system

Step – 7 : PG-Admin installation

picture for ” install pg-admin 3″

Tenthplanet-ADempiere-Installation Guide-PostgreSQL-28

Picture for verified ” Pg-admin installation “

Tenthplanet-ADempiere-Installation Guide-PostgreSQL-29

picture for verified ” pg-admin 3 in desktop “

Tenthplanet-ADempiere-Installation Guide-PostgreSQL-30

Standard operating Procedure (SOP) :

  • Need to Follow the installation Guide if anything has to do
  • Follow the structure format of PostgreSQL Installation
  • Have a Communication with TPT Administrator for clarification
  • Should Prohibit others to modify ” PostgreSQL Installation “
  • Keep confidential of system configurations

FAQ :

  1. what if pg-admin not installed properly ?

verify the ” path location of pg-admin ” – /usr/lib/pg-admin.