Add some sanity checks to CREATE CAST ... WITHOUT FUNCTION. Disallow

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 45a10b2531acf7eb8ebd6624735c03465e603ccc
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2009-03-04T11:53:53Z
Releases: 8.4.0
Add some sanity checks to CREATE CAST ... WITHOUT FUNCTION. Disallow
composite, enum and array types, as those are surely not binary-compatible
with anything else because of the embedded OIDs.

Inspired by bug report by Oleg Serov.

Files

PathChange+/−
src/backend/commands/functioncmds.c modified +34 −3