Re: libpq and prepared statements progress for 8.0

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: libpq and prepared statements progress for 8.0
Дата
Msg-id 24492.1095453170@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: libpq and prepared statements progress for 8.0  (David Wheeler <david@kineticode.com>)
Ответы Re: libpq and prepared statements progress for 8.0  (David Wheeler <david@kineticode.com>)
Re: libpq and prepared statements progress for 8.0  (Oliver Jowett <oliver@opencloud.com>)
Список pgsql-hackers
David Wheeler <david@kineticode.com> writes:
> To get initial PREPARE support, I don't think that the other DBD::Pg 
> developers mind sending strings to the PostgreSQL server in a SQL 
> PREPARE statement.

> The question, in my mind, is it currently possible to do this without 
> specifying the type of every placeholder?

Well, that's the problem: you can't.  The SQL PREPARE command doesn't
have any provision for dealing with unspecified parameters.  I think
this is reasonable since if it could, it would still have no way to tell
you what it resolved the parameter types as.  The shortcoming here is
really in libpq and not in the backend: the protocol-level Parse
operation *is* designed to handle this scenario, but libpq isn't letting
you get at it.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Disabling bgwriter on my notebook
Следующее
От: David Wheeler
Дата:
Сообщение: Re: libpq and prepared statements progress for 8.0