General question about DBI/DBD - Mailing list pgsql-general

From Paul Tomblin
Subject General question about DBI/DBD
Date
Msg-id 20011109110244.A25375@allhats.xcski.com
Whole thread Raw
In response to Re: problem connecting client to a postgresSQL server  (Gurudutt <guru@indvalley.com>)
List pgsql-general
I've got a very big program that I wrote using Pg.pm, and now I'd like to
convert it to using DBD:Pg.  Can anybody give me any general tips on how
to do that?  Just convert all the $conn->exec to $DBH->do, or is it more
complicated than that?

Also, the big program does a whole bunch of
  $conn->exec("SELECT * FROM tablename WHERE indexed_column = '$key'");
and things like that.  Is there a way in DBD:Pg I can re-parse those
queries with "...indexed_column = :1" and then supply a different key each
time?  I remember when I used to write C programs that accessed Oracle
(about 8 years ago, so the details are hazy), that was a major performance
improvement.

--
Paul Tomblin <ptomblin@xcski.com>, not speaking for anybody
"I had to kill him -- he was starting to make sense."

pgsql-general by date:

Previous
From: Gabriel Fernandez
Date:
Subject: Precision problems with float8
Next
From: Tom Lane
Date:
Subject: Re: PSQL anc compile errors