Q about InsertIndexResult

Поиск
Список
Период
Сортировка
От Teodor Sigaev
Тема Q about InsertIndexResult
Дата
Msg-id 3E4A7301.1080306@stack.net
обсуждение исходный текст
Ответы Re: Q about InsertIndexResult  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi!

Insert function of any type of index must returns palloced InsertIndexResult 
(contains blkno and offset).
This result is returned by index_insert (backend/access/indexam/indexam.c).
This function is called in 3 places:
./access/heap/tuptoaster.c
./catalog/indexing.c
./executor/execUtils.c

But in all this places returned value doesn't used, just pfree'ed (except 
./access/heap/tuptoaster.c
where it's checked with NULL).

Q: why? why isn't it a bool value?
Is there some idea which I havn't see?

-- 
Teodor Sigaev
teodor@stack.net




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

Предыдущее
От: GB Clark
Дата:
Сообщение: Re: Options for growth
Следующее
От: Jean-Michel POURE
Дата:
Сообщение: Re: PostgreSQL Windows port strategy