[PgPy] [ python-Bugs-1000297 ] Make PyPgTupleDesc_Type inherit from
PyType_Type
noreply at pgfoundry.org
noreply at pgfoundry.org
Thu Apr 28 07:58:28 GMT 2005
Bugs item #1000297, was opened at 2005-04-28 00:58
You can respond by visiting:
http://pgfoundry.org/tracker/?func=detail&atid=442&aid=1000297&group_id=1000094
Category: Backend
Group: To do
Status: Open
Resolution: None
Priority: 5
Submitted By: James Pye (jwp)
Assigned to: James Pye (jwp)
Summary: Make PyPgTupleDesc_Type inherit from PyType_Type
Initial Comment:
Currently, HeapTuples are created using an "old-style classes" style pair of type objects, Postgres.TupleDesc and Postgres.HeapTuple.
This change shouldn't necessarily rid the repo of the heaptuple.c file, rather the newly, dynamically created type should probably inherit from PyPgHeapTuple_Type and have a TupleDesc member added to it's C structure, which would be filled in upon instantiation so that htup_* routines would know where the TupleDesc was, so as to provide it without some weird object protocol to fetch it from the type.
----------------------------------------------------------------------
You can respond by visiting:
http://pgfoundry.org/tracker/?func=detail&atid=442&aid=1000297&group_id=1000094
More information about the Python-general
mailing list