From: | "Maurice Gittens" <mgittens(at)gits(dot)nl> |
---|---|
To: | "PostgreSQL-development" <hackers(at)postgreSQL(dot)org> |
Subject: | Adding a field to each tuple |
Date: | 1998-02-25 15:27:38 |
Message-ID: | 010601bd4201$e8348b00$fcf3b2c2@caleb..gits.nl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Ok,
I decided to learn more about postgresql.
My challenge:
Given an oid, efficiently determine the most derived class the instance
belongs to.
My intended solution is to add an extra attribute to each tuple
which contains the oid of the most derived class it belongs to.
On inserting a tuple I set this field to the value of the table/class used
for the
insert.
Using with a negative index I can allways retreive the oid of
the most derived class.
How to proceed?
Step: 1
Add the new field to the HeapTupleData struct in htup.h.
Step: 2
Modify inserting function to add the oid of the class into which
the insertion takes place.
Step 3
???
Step 4
Can anyone give clues as whatelse I will have to do to get this to work?
Thanks,
Maurice
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 1998-02-25 15:36:36 | Re: [HACKERS] Views on aggregates - need assistence |
Previous Message | Bruce Momjian | 1998-02-25 15:22:45 | Open 6.3 issues |