CREATE TYPE VARCHAR2 - Mailing list pgsql-sql

From Sascha Ziemann
Subject CREATE TYPE VARCHAR2
Date
Msg-id m33c2dkcjw.fsf_-_@sn-e0310.ek.secunet.de
Whole thread Raw
In response to Re: UNIQUE constraint  (Sascha Ziemann <ziemann@secunet.de>)
Responses Re: CREATE TYPE VARCHAR2  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
Hi,

I try to emulate with PostgreSQL an Oracle database.  My problem is
that PostgreSQL does not support any Oracle specific types.
PostgreSQL provides the TEXT and Oracle uses the CLOB or VARCHAR2
type.  I would like to use the CREATE TYPE statement to tell
PostgreSQL about the Oracle types, but the documentation does not
describe how to define a simple alias type.  I would like to define a
new type VARCHAR2 which should behave exactly like VARCHAR.  Is this
possible with PostgreSQL?  By this it would be possible to run the
Oracle create table scripts without modification.

cu Sascha

-- 
secunet Security Networks AG, Im Teelbruch 116, 45219 Essen
Tel: +49-2054-123-408   Fax: +49-2054-123-123
PGP: FBE2 A49B 6526 C1B4 7F10  24E4 5004 7C27 6E9A 9698

Besuchen Sie uns auf der DMS-Expo vom 07. - 09. September 2004 in
Essen, Halle 2, Stand 2435 c/d (Consulting Corner).



pgsql-sql by date:

Previous
From: "Kathrine S"
Date:
Subject: ERROR: Invalid regular expression: parentheses ( ) not balanced
Next
From: Bruno Mueller
Date:
Subject: refer to computed columns