Re: Memory Allocation Error

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Memory Allocation Error
Дата
Msg-id 13873.1190645384@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Memory Allocation Error  (Gregory Stark <stark@enterprisedb.com>)
Список pgsql-bugs
Gregory Stark <stark@enterprisedb.com> writes:
> "zhuge xiao" <zhuge@Rinaix.cn> writes:
>> I wrote and compiled and linked a C function, add_float, which returns
>> float in C like following:

> float8 and float aren't the same thing. "float" is a C data type which is not
> wide enough to hold a float8. The first line actually works by shortening it
> but the return doesn't work because it returns a pointer to the float and
> claims it's a pointer to the float8.

I don't think that's the problem, because PG_RETURN_FLOAT8 doesn't
actually do that.  More likely is confusion between float4 and
float8 in the SQL declaration of the function.

            regards, tom lane

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

Предыдущее
От: Dave Page
Дата:
Сообщение: Re: BUG #3616: PgAdminIII crashes on copy operation
Следующее
От: Pedro Gimeno
Дата:
Сообщение: Re: BUG #3628: Wrong schema picked