Tuesday, September 16, 2008

[HACKERS] How to get Agg attribute

Hi,
I am implementing a new feature of postgres. The problem is
how to get the attribute of Aggregation.  In /src/backend/commands/explain.c,
I want to add a function after  "case AGG_HASHED" to get the name
of this aggregation attribute in the table. How can I get it.

I tried to see (Agg *) plan)->grpColIdx, which just is a integer number.

 
Best Regards,
Zhe HE
TEL: (001) 646-789-3008
Address:965 Amsterdam Avenue,
New York, NY 10025

Master Student, CS Dept.
Columbia University
www.columbia.edu/~zh2132
-------------------------------------------
07 Alumni
Bachelor of Eng, BUPT
www.bupt.edu.cn

No comments: