Content-Length: 259050 | pFad | http://github.com/postgrespro/postgres_cluster/commit/b7a29695f744c3140350a4f1bb8511e950acc086

D9 Make TupleDescInitBuiltinEntry throw error for unsupported types. · postgrespro/postgres_cluster@b7a2969 · GitHub
Skip to content

Commit b7a2969

Browse files
committed
Make TupleDescInitBuiltinEntry throw error for unsupported types.
Previously, it would just pass back a partially-uninitialized tupdesc, which doesn't seem like a safe or useful behavior. Backpatch to v10 where this code came in. Discussion: https://postgr.es/m/30830.1544384975@sss.pgh.pa.us
1 parent eeeb1df commit b7a2969

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/backend/access/common/tupdesc.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -744,6 +744,9 @@ TupleDescInitBuiltinEntry(TupleDesc desc,
744744
att->attstorage = 'p';
745745
att->attcollation = InvalidOid;
746746
break;
747+
748+
default:
749+
elog(ERROR, "unsupported type %u", oidtypeid);
747750
}
748751
}
749752

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/b7a29695f744c3140350a4f1bb8511e950acc086

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy