Alice Lottini <alice_lottini@yahoo.it> writes:
> /* DUMMY_TUPLE is a tuple of our newly-defined type
> (whose creation is successful) */
> tupdesc=RelationNameGetTupleDesc(DUMMY_TUPLE);
> ...
> reloid=heap_create_with_catalog(namestring,relnamespace,tupdesc,RELKIND_RELATION,false,allowSystemTableMods);
I have a vague recollection that heap_create_with_catalog modifies the
passed-in tupdesc. You may need to copy the tupdesc rather than just
passing the one that belongs to the DUMMY_TUPLE relation.
regards, tom lane