Re: repalloc bug

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: repalloc bug
Дата
Msg-id 21462.1061494382@sss.pgh.pa.us
обсуждение исходный текст
Ответ на repalloc bug  (Giacomo Cariello <jwk@bug.it>)
Список pgsql-bugs
Giacomo Cariello <jwk@bug.it> writes:
> void repalloc_bubble(u_int8_t *buf, u_int32_t s)
> {
>          buf = repalloc(buf, s);
>          bzero(buf, s);
> }

>          repalloc_bubble(d->buf, d->size);

This doesn't update d->buf in the calling function; the result of
repalloc is only assigned to repalloc_bubble's local variable buf.

            regards, tom lane

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

Предыдущее
От: Jonathan Gardner
Дата:
Сообщение: Renaming table doesn't rename primary key index or serial sequences
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: postgresql 7.3.2 bug on date '1901-12-13' and '1901-12