Re: [HACKERS] Source Code Help Needed

2005-06-03 Thread Tom Lane
Vikram Kalsi <[EMAIL PROTECTED]> writes: > ... > tpcd=# select s_suppkey from supplier where (s_suppkey>125 and > s_suppkey<128) or (s_suppkey>175 and s_suppkey<185) or (s_suppkey>200 and > s_suppkey<215); > ... > Actually, it seems all > the pointers in the List "indexinfo" or "infos" are point

Re: [HACKERS] Source Code Help Needed

2005-06-03 Thread Vikram Kalsi
Tom, Thanks a ton again, and, here's another problem that has me really puzzled-I'm starting with a fresh install of pgsql-8.0.1, and make 3 changes-1.) src/include/nodes/relation.h, Add a new Variable, hutz_idx_benefit to IndexOptInfo typedef struct IndexOptInfo{../* Per IndexScan bene

Re: [HACKERS] Source Code Help Needed

2005-05-25 Thread Tom Lane
Vikram Kalsi <[EMAIL PROTECTED]> writes: > So, I suppose that during the query planning and optimization stage, > the value of the original variables in the plan are somehow copied to > the plan which is finally returned inside pg_plan_query(). Look in createplan.c --- there are a couple places in

Re: [HACKERS] Source Code Help Needed

2005-05-25 Thread Vikram Kalsi
Thanks Tom, that solved it...I added the new variables one at a time and did do a "make clean" on the first occasion but I must have forgotten to do it the second time... I have another question- The new variables that I've added to Plan and Path i.e. hutz_tbl_benefit and hutz_idx_benefit are bein

Re: [HACKERS] Source Code Help Needed

2005-05-25 Thread Tom Lane
Vikram Kalsi <[EMAIL PROTECTED]> writes: > 1.) New Variables ADDED to src/include/nodes/plannodes.h > 2.) New Variables ADDED to src/include/nodes/relation.h > ... > However, after these modifications the server process crashes on > running a Join query like > "select s_suppkey,c_custkey from supp

[HACKERS] Source Code Help Needed

2005-05-25 Thread Vikram Kalsi
Hello, I've been using Postgresql-8.0.1 (Release date: 2005-01-31) for my research work and I guess I finally need some help with it... I'm not trying to modify the existing functionality, but I want to add few things. In particular, I'm calculating two new Cost values and I need to use them whil