I've made a little headway -- it can't find the mkoidname function
because the attributes that it looks up for the argument types have a
atttypid of 0 (see the following example):
also, other information that should be in there is not, so it makes me
suspect something wrong with insertion of attributes? I don't know
enough to be able to see if this is affecting all attributes or just
some of them.
Does anyone have any pointers to where to check this problem out?
$4 = {attrelid = 1249, attname = {
data = "\000\000\000\000attrelid", '\000' <repeats 19 times>},
atttypid = 0, attdisbursion = 6.89648632e-314, attlen = 0, attnum = 0,
attnelems = 65540, attcacheoff = 0, atttypmod = -1, attbyval = -1 ',
attisset = -1 ', attalign = -1 ', attnotnull = -1 ',
atthasdef = 1 '\001'}