Обсуждение: out or memory error

Поиск
Список
Период
Сортировка

out or memory error

От
"Moginraj Mohandas"
Дата:
Hi
       Does anybody have any idea on "out of memory" error while inserting into a table in psql. I was trying to test the working of my C code which adds a new data type called expression to Postgres. When I try to insert into the table which has two columns (one integer and the other expression), it gives me this error.
Here's the error:

testdb=# insert into testt values(2, 't1=5ANDt2=6');
ERROR:  out of memory
DETAIL:  Failed on request of size 1073735751

If anyone has an idea, please reply
Thanks a million
Mogin

Re: out or memory error

От
Tom Lane
Дата:
"Moginraj Mohandas" <moginmo@gmail.com> writes:
>        Does anybody have any idea on "out of memory" error while inserting
> into a table in psql. I was trying to test the working of my C code which
> adds a new data type called expression to Postgres. When I try to insert
> into the table which has two columns (one integer and the other expression)=
> ,
> it gives me this error.

Sounds to me like a bug in your C code --- most likely, that you haven't
correctly set the length word of a variable-length value.

            regards, tom lane