Q about InsertIndexResult

From: Teodor Sigaev <teodor(at)stack(dot)net>
To: Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Q about InsertIndexResult
Date: 2003-02-12 16:14:57
Message-ID: 3E4A7301.1080306@stack.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)stack(dot)net

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jean-Michel POURE 2003-02-12 16:26:22 Re: PostgreSQL Windows port strategy
Previous Message GB Clark 2003-02-12 15:41:38 Re: Options for growth