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)
commit9943c0e10996bdf9fe96e6bd0051123c6a52cb92
treeb87f00fae023bad81b0a15e251fd67be34f79e86
parent38970b5775cc93d51e97247646b50a0d045f3b6e
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