Re: Issue is changing _bt_compare function and - Mailing list pgsql-hackers

From sandeep satpal
Subject Re: Issue is changing _bt_compare function and
Date
Msg-id Pine.LNX.4.63.0510081238570.4363@akash.it.iitb.ac.in
Whole thread Raw
In response to Re: Issue is changing _bt_compare function and  (Neil Conway <neilc@samurai.com>)
Responses Re: Issue is changing _bt_compare function and
Re: Issue is changing _bt_compare function and
List pgsql-hackers
Hello,
Sorry for last mail.
I hope this time I will explain my doubt more clearly.

The _bt_compare function in "nbtree.c" file calls "FunctionCall2" and it 
passes two arguments , one is the scankey which we want to search on and 
other  key is on current b-tree node.

My problem is I want to pass three parameter and the third argument will 
be used for taking decision during comparision that whether I want 
case-sensitive comparision or case-insensitive.

But "initdb" also uses the same _bt_compare function for creating its own 
indexes.
For eg. when we write /usr/pgsql/bin/initdb -D /usr/local/data
And my modification may create problems.
How I solve this ??
Hope this time I had explained in more clear way...
thanx,

-- 
------------------
| Sandeep Satpal |
| M.Tech Student |
| Lab 212 KReSIT |
------------------


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Reuse the dead item on unique index.
Next
From: Christopher Kings-Lynne
Date:
Subject: Re: [GENERAL] Shell script to extract a table from a plain text dump