Re: GiST on 64-bit box

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: GiST on 64-bit box
Дата
Msg-id 24697.1013191622@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: GiST on 64-bit box  (Teodor Sigaev <teodor@stack.net>)
Ответы Re: GiST on 64-bit box  (Oleg Bartunov <oleg@sai.msu.su>)
Список pgsql-hackers
Actually, there is a third possibility, which would fix the problem
without requiring any changes in the picksplit functions.  You could
do this:
   char *storage;
   storage = palloc(MAXALIGN(VARHDRSZ) + (*len + 1) * sizeof(GISTENTRY));   entryvec = (bytea *) (storage +
MAXALIGN(VARHDRSZ)- VARHDRSZ);
 
   use entryvec as before, except final pfree is pfree(storage)

Grotty as heck, but probably the right answer for 7.2.1 to avoid the
initdb issues.

For 7.3 we could do it the other, cleaner way.
        regards, tom lane


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

Предыдущее
От:
Дата:
Сообщение: Re: Threaded PosgreSQL server
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Maintaining the list of release changes