-2

What's the difference between the two PostgreSQL perl client implementations DBD::Pg and DBD::PgPP?

Kalle Richter
  • 8,008
  • 26
  • 77
  • 177

3 Answers3

1

According to CPAN, DBD::PgPP is a pure Perl implementation of the PostgreSQL driver. DBD:pg has some low-level c implementation. If you need only Perl as a dependency, DBD::PgPP is worth looking at.

0

Use DBD::Pg if it's available, it will be faster than DBD::PgPP because some parts are implemented in C, whereas DBD::PgPP is pure perl (which is what PP stands for).

neuhaus
  • 3,886
  • 1
  • 10
  • 27
0

Summing up http://www.perlmonks.org/?node_id=457530:

DBD::PgPP pros:

  • easier to install than DBD::Pg because it doesn't depend on the external dependency
  • more up-to-date (see below)
  • pure perl implementation

DBD::Pg pros:

Kalle Richter
  • 8,008
  • 26
  • 77
  • 177