Location via proxy:
[ UP ]
[Report a bug]
[Manage cookies]
No cookies
No scripts
No ads
No referrer
Show this form
projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54f24ab
)
Make TupleDescInitBuiltinEntry throw error for unsupported types.
author
Tom Lane
<tgl@sss.pgh.pa.us>
Mon, 10 Dec 2018 15:38:49 +0000
(10:38 -0500)
committer
Tom Lane
<tgl@sss.pgh.pa.us>
Mon, 10 Dec 2018 15:38:49 +0000
(10:38 -0500)
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
src/backend/access/common/tupdesc.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/access/common/tupdesc.c
b/src/backend/access/common/tupdesc.c
index 9fd7b4e019bbfdb6198951ebcb30dc5b5e2f623a..129176f6b71743f9a1fc7d60a7e233209bb42252 100644
(file)
--- a/
src/backend/access/common/tupdesc.c
+++ b/
src/backend/access/common/tupdesc.c
@@
-643,6
+643,9
@@
TupleDescInitBuiltinEntry(TupleDesc desc,
att->attstorage = 'p';
att->attcollation = InvalidOid;
break;
+
+ default:
+ elog(ERROR, "unsupported type %u", oidtypeid);
}
}