Install apgdiff by entering the following commands in the terminal:
sudo apt update sudo apt install apgdiff
Another PostgreSQL Diff Tool
Another PostgreSQL Diff Tool is a simple PostgreSQL diff tool that is useful for schema upgrades. The tool compares two schema dump files and creates an SQL output file that is (after some hand-made modifications) suitable for upgrades of old schemata.