Thread: pgsql: Tighten up the sanity checks in TypeCreate(): pass-by-value types

pgsql: Tighten up the sanity checks in TypeCreate(): pass-by-value types

From
tgl@postgresql.org (Tom Lane)
Date:
Log Message:
-----------
Tighten up the sanity checks in TypeCreate(): pass-by-value types must have
a size that is one of the supported values, not just anything <= sizeof(Datum).
Cross-check the alignment specification against size as well.

Modified Files:
--------------
    pgsql/src/backend/catalog:
        pg_type.c (r1.120 -> r1.121)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/catalog/pg_type.c?r1=1.120&r2=1.121)