Обсуждение: pgsql: Add some sanity checks to CREATE CAST ...

Поиск
Список
Период
Сортировка

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

От
heikki@postgresql.org (Heikki Linnakangas)
Дата:
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)