From: Greg Sabino Mullane <greg@turnstep.com>
To: dbdpg-general@gborg.postgresql.org
Cc: pgsql-interfaces@postgresql.org
Subject: Re: [Dbdpg-general] benchmarking old Pg and DBD::Pg
Date: Fri, 8 Apr 2005 22:17:26 -0000
Message-ID: <7faf5fa48d5bef0dbd507740522747bf@biglumber.com> (raw)
In-Reply-To: <cd70c68105040813566f6c9c5f@mail.gmail.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Let's slow down and back up a bit. First, what version of
PostgreSQL are you using to compile DBD::Pg, and what version
are you connecting to? Many of the things being discussed
have already been solved if you are running a modern version
of PG (e.g. 7.4 or greater).
The binding is already handled quite well: we use PQprepare
whenever possible. The default of type "VARCHAROID" is mostly
cosmetic, so that some other things work: we actually send
a type "unknown" (0) if no type is specified for a placeholder
via bind_param. (see the "defaultval" of the placeholder
struct). Older servers may benefit from the VARCHAROID change
however, so I will see about making that change.
The stuff in types.c could certainly use some cleaning up, but
it is also not really used anymore - we let the server do all
the quoting for us now via PQexecPrepared and PQexecParams.
- --
Greg Sabino Mullane greg@turnstep.com
PGP Key: 0x14964AC8 200504081815
http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8
-----BEGIN PGP SIGNATURE-----
iD8DBQFCVwLNvJuQZxSWSsgRAtmwAKC4e2bPApAYXj7cz2M2fOwtmPEk1ACgzz9C
AqwZr6PYj+/sUmomA7dKlqE=
=MdcS
-----END PGP SIGNATURE-----
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: greg@turnstep.com, dbdpg-general@gborg.postgresql.org
Subject: Re: [Dbdpg-general] benchmarking old Pg and DBD::Pg
In-Reply-To: <7faf5fa48d5bef0dbd507740522747bf@biglumber.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox