pg_comparator command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
pg_comparator: command not found
or when using sudo you get the following error message
sudo: pg_comparator: command not found
Solutions to pg_comparator: command not found
How To Fix pg_comparator: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu pg_comparator is provided by postgresql-comparator package.
postgresql-comparator is:
This script performs a network and time efficient comparison or synchronization of two possibly large tables on two PostgreSQL database servers, so as to detect inserted, updated or deleted tuples between these tables.
To fix this problem, we can install more using the command below.
sudo apt-get -y install postgresql-comparator
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install postgresql-comparator.
sudo apt -y install postgresql-comparator
Or if you have aptitude installed you can use the following command.
sudo aptitude install postgresql-comparator
Summary
In this tutorial we learn how to fix pg_comparator command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.