Re: libpq PQexecPrepared returns NULL

Поиск
Список
Период
Сортировка
От Gergely Czuczy
Тема Re: libpq PQexecPrepared returns NULL
Дата
Msg-id Pine.LNX.4.44.0403041602100.69-100000@localhost
обсуждение исходный текст
Ответ на Re: libpq PQexecPrepared returns NULL  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: libpq PQexecPrepared returns NULL  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-interfaces
hello

the strange thing is -- what i've forgot to mention -- is that
PQerrorMessage returns an empty string, so from this i don't know the
source of the error.

how can I check if it is _really_ out of memory?
i have 1G RAM in the box, and shm values are set:
kernel.shmmax = 536870912
kernel.shmall = 536870912

Bye,

Gergely Czuczy
mailto: phoemix@harmless.hu
PGP: http://phoemix.harmless.hu/phoemix.pgp

The point is, that geeks are not necessarily the outcasts
society often believes they are. The fact is that society
isn't cool enough to be included in our activities.

On Thu, 4 Mar 2004, Tom Lane wrote:

> Gergely Czuczy <phoemix@harmless.hu> writes:
> > i've got a very strange problem, PQexecPrepared returns NULL, but if i
> > immadietly rerun the query it will run normally, returning the query
> > result. what can be the problem, and how could I track it down, solve it?
>
> Check PQerrorMessage().
>
> AFAIR the only reasons for a null result (instead of a possibly-error
> PGresult) would be out-of-memory or connection failure.
>
>             regards, tom lane
>



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: libpq PQexecPrepared returns NULL
Следующее
От: Tom Lane
Дата:
Сообщение: Re: libpq PQexecPrepared returns NULL