Providing practical examples since 1998

Things look quiet here. But I've been doing a lot of blogging at
dan.langille.org because I prefer WordPress now.
Not all my posts there are FreeBSD related.
I am in the midst of migrating The FreeBSD Diary over to WordPress
(and you can read about that here).
Once the migration is completed, I'll move the FreeBSD posts into the
new FreeBSD Diary website.

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.

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: