]> granicus.if.org Git - postgresql/commit
Add a "LIKE = typename" clause to CREATE TYPE for base types. This allows
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 30 Nov 2008 19:01:29 +0000 (19:01 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 30 Nov 2008 19:01:29 +0000 (19:01 +0000)
commit3f936aacc057e4b391ab953fea2ffb689a12a8bc
tree481da44f2f1755e0405174a25d0145f1c80ac6d9
parent0ddede58e6e7a39438b83469ec74928900767a86
Add a "LIKE = typename" clause to CREATE TYPE for base types.  This allows
the basic representational details (typlen, typalign, typbyval, typstorage)
to be copied from an existing type rather than listed explicitly in the
CREATE TYPE command.  The immediate reason for this is to provide a simple
solution for add-on modules that want to define types represented as int8,
float4, or float8: as of 8.4 the appropriate PASSEDBYVALUE setting is
platform-specific and so it's hard for a SQL script to know what to do.

This patch fixes the contrib/isn breakage reported by Rushabh Lathia.
contrib/isn/isn.sql.in
doc/src/sgml/ref/create_type.sgml
src/backend/commands/typecmds.c