Re: invalid memory alloc after insert with c trigger function

Поиск
Список
Период
Сортировка
От Dudás József
Тема Re: invalid memory alloc after insert with c trigger function
Дата
Msg-id 465FB32B.2070900@freemail.hu
обсуждение исходный текст
Ответ на Re: invalid memory alloc after insert with c trigger function  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: invalid memory alloc after insert with c trigger function  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Thanks for your reply!
I was run gdb and errfinish but didn't get much help because I write to
list.
Yes the first datas ( datums[0-2] ) are char* / VARCHAR types and if I
call SPI_modifytuple( ( trigdata->tg_relation, tmptuple, 3, &attnum[0],
&datums[0], &isNull[0] ) than everything is OK.
Just have problem with this conversion from TEXT - double - Datum (
NUMERIC ) where in TEXT is a number value forexample now the value is 1.00
> =?ISO-8859-2?Q?Dud=E1s_J=F3zsef?= <dj1999@freemail.hu> writes:
>
>> I know that something doing wrong, but I can't find out what is it.
>>
>
> Getting a stack trace from the point of the errfinish call would
> probably help narrow it down.  One thing that's not clear is whether
> SPI_modifytuple itself is failing (have you checked all the *other*
> arguments you're passing it?) or whether it happens later.
>
>             regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>
>
>


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

Предыдущее
От: "Pavel Stehule"
Дата:
Сообщение: Re: how to use array with "holes" ?
Следующее
От: "Ashish Karalkar"
Дата:
Сообщение: user restriction