Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 29D8B476A6F; Thu, 24 Oct 2002 16:11:56 -0400 (EDT) Received: from charon.simplot.com (jrsmailhub.simplot.com [12.18.144.212]) by postgresql.org (Postfix) with ESMTP id 40483476652; Thu, 24 Oct 2002 16:11:52 -0400 (EDT) Received: from xanadu.simplot.COM (151.113.0.132) by charon.simplot.com (MX V5.3 AnGp) with SMTP; Thu, 24 Oct 2002 14:11:50 -0600 Received: from NPA01ZZ001.simplot.com by xanadu.simplot.COM; (5.65v4.0/1.1.8.2/20Aug97-1116AM) id AA18127; Thu, 24 Oct 2002 14:11:48 -0600 Received: from jearl by npa01zz001 with local (Exim 3.36 #1 (Debian)) id 184oKZ-0000Q1-00; Thu, 24 Oct 2002 14:11:47 -0600 To: "Williams, Travis L, NPONS" Cc: "Devinder K Rajput" , , Subject: Re: [NOVICE] pg or DBI References: From: Jason Earl Date: 24 Oct 2002 14:11:47 -0600 In-Reply-To: Message-ID: <87d6pzy4u4.fsf@npa01zz001.simplot.com> Lines: 51 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/243 X-Sequence-Number: 6101 Actually there are two PostgreSQL Perl interfaces the DBI based one and Pg. It has been a while since I have used Perl (and it has been even longer since I used the Pg interface), but I can tell you that most people use the DBI version. The two interfaces are very similar, but the Pg interface is PostgreSQL specific. In other words, if you want to migrate to another database in the future then you should use DBI. DBI is also likely to be more familiar to Perl hackers that have worked with another database. Jason "Williams, Travis L, NPONS" writes: > Unless I am mistaken (which actually happens quite often) DBI is the > base modue that perl uses.. the extension of that DBI::Pg (which is > called in the script) is postgres specific. That is what I am using and > I am new to postgres but have been working with perl for 3-4 years and I > have found it very easy to use. > > Travis > > -----Original Message----- > From: Devinder K Rajput [mailto:Devinder.Rajput@ipaper.com] > Sent: Thursday, October 24, 2002 12:05 PM > To: pgsql-novice@postgresql.org; pgsql-admin@postgresql.org > Subject: [NOVICE] pg or DBI > > > Hi all, > > I have used pg to connect to postgres. However, I have seen a lot of > people use DBI. Are there any advantages/disadvantages in using one or > the > other for connecting to postgres via perl. Also, which one is more > widely > used? Thanks for your input. > > Devinder Rajput > Stores Division Corporate Offices > Chicago, IL > (773) 442-6474 > > > > ---------------------------(end of broadcast)--------------------------- > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org > > ---------------------------(end of broadcast)--------------------------- > TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)