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

Поиск
Список
Период
Сортировка
От Greg Sabino Mullane
Тема Re: [Dbdpg-general] benchmarking old Pg and DBD::Pg
Дата
Msg-id 7faf5fa48d5bef0dbd507740522747bf@biglumber.com
обсуждение исходный текст
Ответ на Re: [Dbdpg-general] benchmarking old Pg and DBD::Pg  (Vlad <marchenko@gmail.com>)
Ответы Re: [Dbdpg-general] benchmarking old Pg and DBD::Pg
Re: [Dbdpg-general] benchmarking old Pg and DBD::Pg
Список 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@turnstep.com
PGP Key: 0x14964AC8 200504081815
http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8
-----BEGIN PGP SIGNATURE-----

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




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

Предыдущее
От: Vlad
Дата:
Сообщение: Re: [Dbdpg-general] benchmarking old Pg and DBD::Pg
Следующее
От: Vlad
Дата:
Сообщение: Re: [Dbdpg-general] benchmarking old Pg and DBD::Pg