You can install ‘tablefunc' extension and for that you have to follow below steps:
To install 'tablefunc' extension you have to install 'postgresql-contrib' package:
yum install postgresql-contrib
First you have to login into PostgreSQL with commands.
psql -U postgres
After login connect to...