X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 6CFC652A11 for ; Tue, 9 Aug 2005 11:58:20 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 14076-10 for ; Tue, 9 Aug 2005 14:58:15 +0000 (GMT) Received: from mx5.net.nih.gov (mx5.net.nih.gov [165.112.130.36]) by svr1.postgresql.org (Postfix) with ESMTP id 10C235293D for ; Tue, 9 Aug 2005 11:58:14 -0300 (ADT) Received: from mx5.net.nih.gov (localhost [127.0.0.1]) by mx5.net.nih.gov (8.12.10/8.11.6) with ESMTP id j79EwJQ7006020 for ; Tue, 9 Aug 2005 10:58:19 -0400 Received: from [128.231.145.14] (holmes.nhgri.nih.gov [128.231.145.14]) by mx5.net.nih.gov (8.12.10/8.11.6) with ESMTP id j79EwJIJ006016; Tue, 9 Aug 2005 10:58:19 -0400 User-Agent: Microsoft-Entourage/10.1.4.030702.0 Date: Tue, 09 Aug 2005 10:57:41 -0400 Subject: Re: pgperl vs dbd-perl From: Sean Davis To: David , Message-ID: In-Reply-To: <20050809144539.GB1756@localhost.localdomain> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200508/4 X-Sequence-Number: 5675 On 8/9/05 10:45 AM, "David" wrote: > I'm wondering which of the two is considered the best. I have both > installed on my system and actually have done some work with PgPerl > because it looked a bit less complicated, and at first, I thought that > this might be a more postgres-specific interface. > > However, in researching the mailing lists, etc, it seems that DBD:: is > getting the most attention - in fact, I see little mention of PgPerl, > and the PgPerl list seems rather quiet. > > In addition, it appears that DBD can do things that PgPerl can't. For > example, I haven't been able to find an escape-string function in > PgPerl, which I'm now looking to implement. Would one need to write his > own escape-string for PgPerl? > > Is PgPerl still viable or is DBD the way to go? DBD::Pg is the way to go, for numerous reasons. DBI is very well supported. More importantly, almost all database-related work is done by building on DBI. Interfacing your own code with those of others is then relatively straightforward. See, for some examples, DBIx::RecordSet or Class::DBI. Finally, if you every need to port to another database product (GASP!), DBI is fairly easy to adapt (depending on DB-specific SQL). Sean