CREATE TYPE with two args

From: "Ameen - Etemady" <eetemadi(at)ce(dot)sharif(dot)edu>
To: pgsql-hackers(at)postgresql(dot)org
Subject: CREATE TYPE with two args
Date: 2004-11-07 11:46:06
Message-ID: 9008.62.220.101.165.1099827966.squirrel@ce.sharif.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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"));

how 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2004-11-07 12:55:42 Re: Documentation on PITR still scarce
Previous Message Magnus Hagander 2004-11-07 11:36:17 Re: [PATCHES] pgxs under Win32 for PL/Java