pgsql: Add some sanity checks to CREATE CAST ...

From: heikki(at)postgresql(dot)org (Heikki Linnakangas)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add some sanity checks to CREATE CAST ...
Date: 2009-03-04 11:53:53
Message-ID: 20090304115353.E7F7F755AA5@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
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.

Modified Files:
--------------
pgsql/src/backend/commands:
functioncmds.c (r1.108 -> r1.109)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/commands/functioncmds.c?r1=1.108&r2=1.109)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2009-03-04 11:57:00 pgsql: Provide some proper minimal documentation for the pg_dump(all)
Previous Message Peter Eisentraut 2009-03-04 10:55:00 pgsql: Add new SQL:2008 error codes for invalid LIMIT and OFFSET values.