Determine index's attribute number by scankey

From: Victor Yegorov <viy(at)mits(dot)lv>
To: Postgres Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Determine index's attribute number by scankey
Date: 2005-07-13 20:33:52
Message-ID: 20050713203352.GA2753@mits.lv
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Hannu Krosing 2005-07-13 21:13:19 Re: [Bizgres-general] A Guide to Constraint Exclusion
Previous Message Hannu Krosing 2005-07-13 20:31:54 Re: [Bizgres-general] Re: A Guide to Constraint