From: Tom Lane <tgl@sss.pgh.pa.us>
To: Sascha Ziemann <ziemann@secunet.de>
Cc: pgsql-sql@postgresql.org
Subject: Re: CREATE TYPE VARCHAR2
Date: Wed, 25 Aug 2004 22:07:43 -0400
Message-ID: <11065.1093486063@sss.pgh.pa.us> (raw)
In-Reply-To: <m33c2dkcjw.fsf_-_@sn-e0310.ek.secunet.de>
References: <m33c2dkcjw.fsf_-_@sn-e0310.ek.secunet.de>
Sascha Ziemann <ziemann@secunet.de> writes:
> I would like to define a
> new type VARCHAR2 which should behave exactly like VARCHAR.
You could get about halfway there with
CREATE DOMAIN varchar2 AS varchar;
But it's only halfway because the domain will not accept length
decorations; that is "varchar2(100)" will not work.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, ziemann@secunet.de
Subject: Re: CREATE TYPE VARCHAR2
In-Reply-To: <11065.1093486063@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox