Pg seems to be a more specific module, something specific tailored for Postgres

Sure, DBI is not "specifically tailored" for PostgreSQL, but DBD::PgPP is. The DBI simply specifies the interface; the DBD is where the rubber meets the road. The only thing that Pg could have is a more PostreSQL-friendly interface. Though it's been my experience that the interface enforced by DBI is quite flexible, and very nice. I've never had a problem using it with PostgreSQL.

As far as specific things that Pg does behind the scenes that PgPP does not, I don't know. As davidrw indicated, Pg is significantly older. It probably hasn't seen much maintenance, and likely doesn't have any significant advantages in terms of implementation, but if it does, it would be possible to move those bits into DBD::Pg and DBD::PgPP, where applicable.

So, my reply can be boiled down to: Pg might do some things better than DBD::PgPP, but there's no inherent reason that it should.


In reply to Re: DBI / DBD::PgPP vs. Pg by revdiablo
in thread DBI / DBD::PgPP vs. Pg by DaWolf

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.