| From: | "Xiao Meng" <mx(dot)cogito(at)gmail(dot)com> |
|---|---|
| To: | pgsql-hackers(at)postgresql(dot)org |
| Cc: | "Jonah H(dot) Harris" <jonah(dot)harris(at)gmail(dot)com> |
| Subject: | Is there anyway to create a TupleDesc with uint32 attribute easily? |
| Date: | 2008-07-15 09:56:19 |
| Message-ID: | ded849dd0807150256j40438db9occ96f32e2fe59c68@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi, hackers.
I'm working on my gsoc project - improving hash index.
I need to create a TupldeDesc with uint32 attribute.
Here is the reason why I need it -
If we store hash code only in the tuple, then the TupleDesc's
attribute should be uint32.
In this way, we can use index_form_tuple() 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,
Xiao Meng
DKERC, Harbin Institute of Technology, China
Gtalk: mx(dot)cogito(at)gmail(dot)com
MSN: cnEnder(at)live(dot)com
http://xiaomeng.yo2.cn
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Abhijit Menon-Sen | 2008-07-15 11:38:20 | [PATCH] "\ef <function>" in psql |
| Previous Message | Teodor Sigaev | 2008-07-15 09:29:54 | Re: [GENERAL] Fragments in tsearch2 headline |