[HACKERS] Get Date value from Datum

2008-11-03 Thread Zhe He
Hi,
I met some problem with get date type value
from a table. I have a Datum which stores this
value as an integer and I want to get its date
value. Is there anyway that I can print it out?

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


[HACKERS] How to parse Datum

2008-11-02 Thread Zhe He
I met a problem with parsing Datum,
is there any good way to parse this
kind of value? Because I want to get
the value in an attribute of a table.
In TupleTableSlot, there is a tts_values
which is Datum type. Does anyone know how
to parse it?

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


[HACKERS] Problem to get the tuple of a table

2008-10-14 Thread Zhe He
I'm currently implement a new operation in Postgres.
If I want to get all tuples of a single attribute table to
create an array defined by myself, how can I do that?


-Zhe


[HACKERS] Question about implementing a new operation

2008-10-14 Thread Zhe He
I'm currently implement a new operation in Postgres.
If I want to get all tuples of a single attribute table to
create an array defined by myself, how can I do that?


-Zhe

-- 
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


[HACKERS] Where is Aggregation Attribute

2008-09-17 Thread Zhe He
I want to get the attribute from an Aggregation node, where is it?

typedef struct Agg
{
Plan plan;
AggStrategy aggstrategy;
int numCols; /* number of grouping columns */
AttrNumber *grpColIdx; /* their indexes in the target list */
Oid   *grpOperators; /* equality operators to compare with */
long numGroups; /* estimated number of groups in input */
} Agg;

-- 
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


[HACKERS] How to get Agg attribute

2008-09-16 Thread Zhe He
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