From: Ameen - Etemady <eetemadi@ce.sharif.edu>
To: pgsql-sql@postgresql.org
Subject: CREATE TYPE
Date: Wed, 3 Nov 2004 19:26:28 +0330 (IRST)
Message-ID: <34544.62.220.101.165.1099497388.squirrel@ce.sharif.edu> (raw)
I want to create a data type that have tow arguments in the defenition,
like the varchar type:
create table mytmp(name varchar(10));
I like to do it like this:
create table mytmp(name myvarchar(10,"en_US"));
whow can it be done by "CREATE TYPE"
I want to implement the internal functions (compare, ...).
I faunded the documentation but I can't see any thing that help me to
create a type same as varchar( with argument)
Notice: I don't mean using "CREATE TYPE myvarchar AS( lenght integer,
collate char(10))
Thanks
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: eetemadi@ce.sharif.edu
Subject: Re: CREATE TYPE
In-Reply-To: <34544.62.220.101.165.1099497388.squirrel@ce.sharif.edu>
* 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