Skip site navigation (1) Skip section navigation (2)

Re: [Dbdpg-general] benchmarking old Pg and DBD::Pg

From: "Greg Sabino Mullane" <greg(at)turnstep(dot)com>
To: dbdpg-general(at)gborg(dot)postgresql(dot)org
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: [Dbdpg-general] benchmarking old Pg and DBD::Pg
Date: 2005-04-08 22:17:26
Message-ID: 7faf5fa48d5bef0dbd507740522747bf@biglumber.com (view raw or flat)
Thread:
Lists: pgsql-interfaces
-----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(at)turnstep(dot)com
PGP Key: 0x14964AC8 200504081815
http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8
-----BEGIN PGP SIGNATURE-----

iD8DBQFCVwLNvJuQZxSWSsgRAtmwAKC4e2bPApAYXj7cz2M2fOwtmPEk1ACgzz9C
AqwZr6PYj+/sUmomA7dKlqE=
=MdcS
-----END PGP SIGNATURE-----



In response to

Responses

pgsql-interfaces by date

Next:From: VladDate: 2005-04-08 23:38:11
Subject: Re: [Dbdpg-general] benchmarking old Pg and DBD::Pg
Previous:From: VladDate: 2005-04-08 20:56:13
Subject: Re: [Dbdpg-general] benchmarking old Pg and DBD::Pg

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group