Re: [HACKERS] [PATCHES] hash index improving v3

2008-09-04 Thread Xiao Meng
cpp $./a.out > /tmp/words -- Best Regards, Xiao Meng DKERC, Harbin Institute of Technology, China Gtalk: [EMAIL PROTECTED] MSN: [EMAIL PROTECTED] http://xiaomeng.yo2.cn //-- // // // FILE NAME : X937out.cpp // // DESC

Re: [HACKERS] [patch] gsoc, improving hash index v2

2008-08-05 Thread Xiao Meng
sorry, I made some mistake here. The time of the script on two indexes should be btree: 1/0.174700=5.724098s hash-patch: 1/0.199900=5.00250125s On Wed, Aug 6, 2008 at 9:33 AM, Xiao Meng <[EMAIL PROTECTED]> wrote: > Hi, hackers. Here is some test I run on a bigger set. > > Use

Re: [HACKERS] [patch] gsoc, improving hash index v2

2008-08-05 Thread Xiao Meng
= 0.199900 (excluding connections establishing) -- Best Regards, Xiao Meng DKERC, Harbin Institute of Technology, China Gtalk: [EMAIL PROTECTED] MSN: [EMAIL PROTECTED] http://xiaomeng.yo2.cn

[HACKERS] [patch] gsoc, improving hash index v2

2008-07-25 Thread Xiao Meng
if (isNull) return false; if (key->sk_flags & SK_ISNULL) return false; test = FunctionCall2(&key->sk_func, datum, key->sk_argument); if (!DatumGetBool(test)) return false; key++; scanKeySize--;

Re: [HACKERS] [PATCH]-hash index improving

2008-07-22 Thread Xiao Meng
t; 10^6 > 10^7 > 10^8 > > -- > Simon Riggs www.2ndQuadrant.com > PostgreSQL Training, Services and Support > > -- Best Regards, Xiao Meng DKERC, Harbin Institute of Technology, China Gtalk: [EMAIL PROTECTED] MSN: [EMAIL PROTECTED] http://xiaomeng.yo2.cn --

Re: [HACKERS] [PATCH]-hash index improving

2008-07-22 Thread Xiao Meng
Currently, I've made some optimization Tom advised and removed the macro HASHVALUE_ONLY. And I'm working on fixing the problem that it crashed in large data set. I'll post a new patch later. Thank you for all your advice and test. -- Best Regards, Xiao Meng DKERC, Harbin Institute

[HACKERS] [PATCH]-hash index improving

2008-07-17 Thread Xiao Meng
h.h to get the original implementation. It's a preliminary implementation and I'm looking for input here. Hope to hear from you. -- Best Regards, Xiao Meng DKERC, Harbin Institute of Technology, China Gtalk: [EMAIL PROTECTED] MSN: [EMAIL PROTECTED] http://xiaomeng.yo2.cn diff --git a/src

Re: [HACKERS] gsoc, store hash index tuple with hash code only

2008-07-16 Thread Xiao Meng
pdesc = CreateTemplateTupleDesc(1, false); TupleDescInitEntry(tupdesc, 1, "hashcode", INT4OID, -1, 0); } firstcall = false; return tupdesc; } but it failed because tupdesc is free later, IMHO. Any advice? -- Best Regards, Xiao Meng DKERC, Harbin Institute of Technology, Chin

Re: [HACKERS] gsoc, store hash index tuple with hash code only

2008-07-16 Thread Xiao Meng
maxbucket, uint32 highmask, uint32 lowmask); extern uint32 _hash_log2(uint32 num); extern void _hash_checkpage(Relation rel, Buffer buf, int flags); +extern TupleDesc _create_hash_desc(); +extern IndexTuple _hash_form_tuple(Relation rel, Datum* values, bool*

[HACKERS] gsoc, store hash index tuple with hash code only

2008-07-15 Thread Xiao Meng
SHVALUE_ONLY /* public routines */ @@ -330,6 +336,8 @@ extern Bucket _hash_hashkey2bucket(uint32 hashkey, uint32 maxbucket, uint32 highmask, uint32 lowmask); extern uint32 _hash_log2(uint32 num); extern void _hash_checkpage(Relation rel, Buffer buf, int flags); +extern TupleDesc _create_hash_desc(); +e

Re: [HACKERS] Is there anyway to create a TupleDesc with uint32 attribute easily?

2008-07-15 Thread Xiao Meng
structure HashItem to store it again;-) On Tue, Jul 15, 2008 at 8:04 PM, Heikki Linnakangas <[EMAIL PROTECTED]> wrote: > Xiao Meng wrote: >> >> Hi, hackers. >> I'm working on my gsoc project - improving hash index. >> I need to create a TupldeDesc with uint32 attri

[HACKERS] Is there anyway to create a TupleDesc with uint32 attribute easily?

2008-07-15 Thread Xiao Meng
to create a tuple and needn't write a function for hash specially. I've tried lookup_rowtype_tupdesc() with INT4OID, but it dosen't work since int is not composite type. Is there any easy way to do it or I should change my design? Hope to hear from you. Thanks! -- Best Regards,

[HACKERS] [GSoC08]some detail plan of improving hash index

2008-05-15 Thread Xiao Meng
seems extremely easy. I'm trying to do it first. Additionally, I need a benchmark to test the performance. It seems there's some tools list in http://wiki.postgresql.org/wiki/Performances_QA_testing . Any advice? -- Have a good day;-) Best Regards, Xiao Meng ━━━ Da

[HACKERS] [GSoC] Need for advice on improving hash index performance

2008-03-26 Thread Xiao Meng
ment or advices? Hope to hear from you,thanks! And I think I should finish my proposal as soon as possible now, since the deadline of application is coming. Have a good day;-) -- Best Regards, Xiao Meng ━ Data and Knowledge Engineering Research Center,CS&T Harbin Inst