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

Поиск
Список
Период
Сортировка
От Mattias Kregert
Тема Re: [HACKERS] PostgreSQL and DBI/DBD...vs Pg.pm
Дата
Msg-id 34FFD6D6.198B2E1B@algonet.se
обсуждение исходный текст
Ответ на PostgreSQL and DBI/DBD...vs Pg.pm  ("D. Dante Lorenso" <dlorenso@afai.com>)
Список 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 */

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Mattias Kregert
Дата:
Сообщение: Re: [HACKERS] Execution time
Следующее
От: "Vadim B. Mikheev"
Дата:
Сообщение: Re: [HACKERS] Re: [PATCHES] Changes to sequence.c