Re: BUG #2236: extremely slow to get unescaped bytea data

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: BUG #2236: extremely slow to get unescaped bytea data
Дата
Msg-id 20060209155857.GA38265@winnie.fuhr.org
обсуждение исходный текст
Ответ на Re: BUG #2236: extremely slow to get unescaped bytea data  (Alvaro Herrera <alvherre@commandprompt.com>)
Ответы Re: BUG #2236: extremely slow to get unescaped bytea data  (Kalador Tech Support <support@kalador.com>)
Список pgsql-bugs
On Thu, Feb 09, 2006 at 12:46:46PM -0300, Alvaro Herrera wrote:
> I note in the PHP 4 sources that the PQunescapeBytea function seems to
> have been copied there, "for the benefit of PostgreSQL 7.2 users".  It
> says that it comes from 7.3 but I don't see any sscanf call.
>
> There is no PQunescapeBytea call in the whole source that I can see, so
> my guess is that the libpq function is not called at all.  So this may
> be a PHP bug rather than a Postgres bug.

The OP claimed to be using PHP 5.1.2, which does have a call to
PQunescapeBytea(), although it also has the old code you're seeing
and a HAVE_PQUNESCAPEBYTEA macro that determines which to use.

Interesting that the command line php and the Apache module behave
differently.  I wonder if ldd would show the php executable and
libphp5.so linked against different versions of libpq; that would
add weight to Tom's suggestion that an old libpq might be responsible.

--
Michael Fuhr

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

Предыдущее
От: "Magnus Hagander"
Дата:
Сообщение: Re: BUG #2248: Fix for terminal server
Следующее
От: Kalador Tech Support
Дата:
Сообщение: Re: BUG #2236: extremely slow to get unescaped bytea data