Require superuser privilege to create a binary-compatible cast, per
Tom Lane <tgl@sss.pgh.pa.us>
Require superuser privilege to create a binary-compatible cast, per discussion some weeks ago. Also, add a check that two types to be binary-equivalenced match as to typlen, typbyval, and typalign; if they don't then it's surely a mistake to equivalence them.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/create_cast.sgml | modified | +5 −4 |
| src/backend/commands/functioncmds.c | modified | +28 −1 |