=?iso-8859-1?q?Alice=20Lottini?= <alice_lottini(at)yahoo(dot)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