Q about InsertIndexResult - Mailing list pgsql-hackers

From Teodor Sigaev
Subject Q about InsertIndexResult
Date
Msg-id 3E4A7301.1080306@stack.net
Whole thread Raw
Responses Re: Q about InsertIndexResult  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: GB Clark
Date:
Subject: Re: Options for growth
Next
From: Jean-Michel POURE
Date:
Subject: Re: PostgreSQL Windows port strategy