PostgreSQL and Perl

Right after I started coding the new FreshPorts,
I started to write some Perl scripts to load data into tables. The first problem was
getting the Perl-PostgreSQL interface installed. I’d forgotten how I’d done this
with mySQL. This is also known as the PostgreSQL DBI or DBD::Pg.

The hard install

There is another way. And this is what I did. I now regret it. I should
have used the port above. Unfortunately, I didn’t look for one first. I was
told about it after I wrote this article. I suggest you use the port and don’t do
the following.

Don’t use the instructions in the rest of this section.
Use the port.

The solution is at the PostgreSQL Guide
webpage. At that site, you’ll find information about the Perl 5 interface for
PostgreSQL, DBD::Pg. That’s where I found the link to: