Install libdbd-pg-perl by entering the following commands in the terminal:
sudo apt update sudo apt install libdbd-pg-perl
Description:
Perl DBI driver for the PostgreSQL database server
DBD::Pg is a Perl DBI Database Driver module that works with the DBI module to provide access to PostgreSQL databases. It enables you to control a PostgreSQL database in a Perl script.
Homepage: https://metacpan.org/release/DBD-Pg
Version: 3.7.0-1
Section: universe/perl