From: | tgl(at)postgresql(dot)org (Tom Lane) |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Add a "LIKE = typename" clause to CREATE TYPE for base types. |
Date: | 2008-11-30 19:01:29 |
Message-ID: | 20081130190129.40A9B7545A4@cvs.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Log Message:
-----------
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.
Modified Files:
--------------
pgsql/contrib/isn:
isn.sql.in (r1.8 -> r1.9)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/contrib/isn/isn.sql.in?r1=1.8&r2=1.9)
pgsql/doc/src/sgml/ref:
create_type.sgml (r1.78 -> r1.79)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/doc/src/sgml/ref/create_type.sgml?r1=1.78&r2=1.79)
pgsql/src/backend/commands:
typecmds.c (r1.126 -> r1.127)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/commands/typecmds.c?r1=1.126&r2=1.127)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2008-11-30 20:51:25 | pgsql: Clean up the API for DestReceiver objects by eliminating the |
Previous Message | Tom Lane | 2008-11-30 18:49:48 | pgsql: Remove inappropriate memory context switch in |