Re: [HACKERS] Need some help on code

Поиск
Список
Период
Сортировка
От Maarten Boekhold
Тема Re: [HACKERS] Need some help on code
Дата
Msg-id Pine.SUN.3.91.980609101600.22336A-100000@dutepp0.et.tudelft.nl
обсуждение исходный текст
Ответ на Re: [HACKERS] Need some help on code  (dg@illustra.com (David Gould))
Список pgsql-hackers
> >             HeapTid = &ScanResult->heap_iptr;
> >             pfree(ScanResult);
>                         ^^^^^^^^^^^^^^^^^^
> Hmmm, at this point, HeapTid is a pointer to what?

I have no idea :) I think I missed the '&' in front of ScanResult, and
thus figured that HeapTid would still be valid after the pfree().

> >                 heap_insert(LocalNewHeap, LocalHeapTuple);
> >             ReleaseBuffer(LocalBuffer[count]);
>
> So here we ReleaseBuffer(LocalBuffer[count]) which if there are more than
> one LocalBuffer[] that are in fact the same buffer will release the buffer
> multiple times.

Well, I don't even know what 'LocalBuffer' is. It would be nice if there
would be some documentation describing the access methods with all
structs and types etc. that they use.

Thanx for trying to explain things,

Maarten

_____________________________________________________________________________
| TU Delft, The Netherlands, Faculty of Information Technology and Systems  |
|                   Department of Electrical Engineering                    |
|           Computer Architecture and Digital Technique section             |
|                          M.Boekhold@et.tudelft.nl                         |
-----------------------------------------------------------------------------


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

Предыдущее
От: dg@illustra.com (David Gould)
Дата:
Сообщение: Re: [HACKERS] Need some help on code
Следующее
От: "Jose' Soares Da Silva"
Дата:
Сообщение: Re: [HACKERS] v6.4 - What is planned...?