Skip to main content

Install PostgreSQL 12 on BOSS8 (Bharat Operating System Solutions)

Bharat Operating System Solutions (BOSS GNU/Linux) is an Indian Linux distribution derived from Debian. BOSS Linux is officially released in four editions: BOSS Desktop (for personal use, home and office), EduBOSS (for schools and education community), BOSS Advanced Server and BOSS MOOL. The latest stable version 8.0 ("Unnati"), was released on 15 October 2019.

It is developed by Centre for Development of Advanced Computing (C-DAC) in order for enhancing and gain benefit from the usage of Free and Open Source Software throughout India. BOSS Linux is a key deliverable of National Resource Centre for Free and Open Source Software (NRC-FOSS). It has enhanced desktop environment integrated with Indian language support and other software.
https://en.wikipedia.org/wiki/Bharat_Operating_System_Solutions
PostgreSQL is included in the official BOSS repositories, but not in version 12 but in version 11.
Install PostgreSQL 12 on BOSS8
Step1: Update System
BOSS8 derived from Debian. So first we find DEBIAN VERSION with below commands
cat /etc/debian_version
Its show BOSS8 DEBIAN version 10.5
It is recommended to update current system packages if it is a new server instance.
sudo apt update
sudo apt -y upgrade
sudo shutdown -r now
Step 2: Add PostgreSQL 12 repository
First, open a terminal session or connect to your server using SSH. Then, install some necessary packages:
sudo apt install gnupg gnupg2
At the end, the PostgreSQL 12 repository should be added to the list of BOSS software sources. To do this, create the following file:
sudo nano /etc/apt/sources.list.d/pgdg.list
And in it please adds the following:
deb http://apt.postgresql.org/pub/repos/apt/ buster-pgdg main
It looks like below:
Then save the changes by pressing CTRL + O and close the file by pressing CTRL + X.
For the repository to be accepted by the system, we need to add the gpg key to it. To do this, use
the following command:
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add –
Once the process has been completed, simply update the APT cache.
sudo apt update
Check Postgresql package
Sudo apt list postgresql-12 
It looks like below
Step 3: Install PostgreSQL 12 on BOSS8
sudo apt install postgresql-12
sudo systemctl status postgresql
sudo systemctl enable postgresql
Step 4: Test PostgreSQL Connection
sudo su - postgres
psql

Change postgres user password

Alter user postgres with password ‘abc’;

 


Comments

  1. It's a very useful information.

    ReplyDelete
  2. Very useful Blog.. Thanks Prakash sir

    ReplyDelete
  3. Very informative blog. Please keep on blogging.

    ReplyDelete
  4. It is very good information sir, Nice to read your blogs, Keep updating us.

    ReplyDelete
  5. It is very good information sir, Nice to read your blogs, Keep updating us.

    ReplyDelete
  6. very informative. keep posting.

    ReplyDelete
  7. This comment has been removed by the author.

    ReplyDelete

Post a Comment

Popular posts from this blog

SSL configuration in PostgreSQL for PgAdmin

SSL configuration in PostgreSQL for PgAdmin This document describes how to set up SSL to enable ssl connections from PgAdmin on some client machine to postgresql on a server machine. In my example, I am using Centos 7 for PostgreSql-9.5 server and Windows for PgAdmin.The assumption is that Postgresql (compiled with ssl support) and openssl are already installed on the server (Linux Centos7). PgAdmin is already installed on the client (either Windows or Linux). On the server, three certificates are required in the data directory. root.crt (trusted root certificate) server.crt (server certificate) server.key (private key)  On CentOS7 default Data directory is / var/lib/pgsql/9.5/data/ : Now, connect your system with user root. Step 1 Su – Go to data directory [root@localhost ~]# cd /var/lib/pgsql/9.5/data/ Out put [root@ localhost data]# Step 2 : Generate a private key (you must provide a passphrase). [root@ localhost data]# ope...

Partition and Subpartition in PostgreSQL12

Partitioning refers to splitting what is logically one large table into smaller physical pieces. Partitioning can provide several benefits: • Query performance can be improved dramatically in certain situations, particularly when most of the heavily accessed rows of the table are in a single partition or a small number of partitions.  • When queries or updates access a large percentage of a single partition, performance can be improved by taking advantage of sequential scan of that partition instead of using an index and random access reads scattered across the whole table. • Bulk loads and deletes can be accomplished by adding or removing partitions, if that requirement is planned into the partitioning design. Doing ALTER TABLE DETACH PARTITION or dropping an individual partition using DROP TABLE is far faster than a bulk operation. These commands also entirely avoid the VACUUM overhead caused by a bulk DELETE. • Seldom-used data can be migrated to cheaper and slower...

PostgreSQL Foreign Data Wrapper for Oracle on Windows OS

The foreign data wrapper is responsible for fetching data from the remote data source and returning it to the PostgreSQL executor. If wrapper must support in updating foreign tables. In this post, I'll demonstrate, how you may connect PostgreSQL database to Oracle database using oracle_fdw . Before going ahead kindly ensure that PostgreSQL is installed in your system . Let’s begin: Step-1 Software’s used in demo - Windows, PostgreSQL 9.5, 9.6   instantclient-basic-win-x86-64-11.2.0.1.0 instantclient-jdbc-win-x86-64-11.2.0.1.0   instantclient-odbc-win-x86-64-11.2.0.1.0 instantclient-sqlplus-win-x86-64-11.2.0.1.0 & Oracle_FDW as per version ( http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html   , https://pgxn.org/dist/oracle_fdw/ or version wise)   Download all the files mentioned above, in a single folder and unzip entire files to this single folder. Suppose, we create a folder Oracle in c: drive ...