Re: [HACKERS] PostgreSQL and DBI/DBD...vs Pg.pm

From: Mattias Kregert <matti(at)algonet(dot)se>
To: "D(dot) Dante Lorenso" <dlorenso(at)afai(dot)com>
Cc: psql-guestions(at)postgreSQL(dot)org, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] PostgreSQL and DBI/DBD...vs Pg.pm
Date: 1998-03-06 10:58:30
Message-ID: 34FFD6D6.198B2E1B@algonet.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

D. Dante Lorenso wrote:
>
> I'm getting confused between the methods of connectivity with PERL.
> Right now I'm accessing several MySQL tables using DBI/DBD. However,
> I'd like to convert these programs into PostgreSQL apps. So, I'm
> assuming that since I used DBI (a common database connection format)
> that I'd only have to change the connect string to point to the
> PostgreSQL source rather than MySQL and all should be good.

Since DBI uses a different DBD for every database, you should get
the DBD for PostgreSQL (DBD:Pg) from your local perl archive...

This DBD really should be in the distribution.

> So, what is Pg.pm? and how is that connected (if at all) to DBI?

Pg.pm is not in any way connected to DBI. It is marginally faster
than DBI, but you loose the ability to choose between different
databases.

/* m */

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Vadim B. Mikheev 1998-03-06 12:39:58 Re: [HACKERS] Re: [PATCHES] Changes to sequence.c
Previous Message Mattias Kregert 1998-03-06 10:47:23 Re: [HACKERS] Execution time