A method and apparatus are provided for handling within a database system data
items that are associated with data types whose native structure is not known to
the database system. The data items are stored within the database system in their
native structure, even though it is not understood by the database system. To store
the data items, the database system calls a pickling routine that is provided by
the user, or by the runtime subsystem of the programming environment that is native
to the data item. To retrieve the routine from storage, the database system calls
an unpickling routine, also provided by the user or the appropriate runtime subsystem.
Because the database maintains the data items in their native format, no conversions
are required as the data items are passed between the database system and external
routines that manipulate the data items.