Tuesday, September 16, 2008

[HACKERS] How to get Agg attribute

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
07 Alumni
Bachelor of Eng, BUPT

No comments: