Re: Q about InsertIndexResult - Mailing list pgsql-hackers

From Teodor Sigaev
Subject Re: Q about InsertIndexResult
Date
Msg-id 3E4A7DCD.3000504@stack.net
Whole thread Raw
In response to Re: Q about InsertIndexResult  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Q about InsertIndexResult
List pgsql-hackers
> I can't offhand see a good reason to return the index tuple's tid.
One reason why existing interface is not good:
Who say, that for one heap tuple should exists only one index tuple?
For example, Oleg and Vadim Mikheev had discussian pair years ago about
indexing arrays by  B-tree: for each heap tuple stores one index tuple per
element of array.



> There isn't any legitimate reason for anything outside the index AM
> to be doing anything directly with the index tuple.
> I dunno if it's worth the trouble to change it just to save one palloc
> per insert, though.  If we ever decided that there was some other piece
> of information that the index AM should return, we'd have to change
> right back to returning a struct...
Agreed.


-- 
Teodor Sigaev
teodor@stack.net




pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Changing the default configuration
Next
From: "scott.marlowe"
Date:
Subject: Re: Options for growth