Determine index's attribute number by scankey - Mailing list pgsql-hackers

From Victor Yegorov
Subject Determine index's attribute number by scankey
Date
Msg-id 20050713203352.GA2753@mits.lv
Whole thread Raw
Responses Re: Determine index's attribute number by scankey  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hello.

Is it possible to somehow determine index's attribute number that is target
one for given scankey?


I've checked nbtree AM code and found no evidence of such an ability. I need
that, because I'm storing each indexed value only once in a form of index
tuple, consisting of only 1 attribute.

If that's not possible now, I'd like to add sk_index_attnum entry to the
ScanKeyData structure.


-- 

Victor Y. Yegorov


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: checkpoint_segments 32 megs?
Next
From: Tom Lane
Date:
Subject: Re: windows regression failure - prepared xacts