X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id D03CA3A4473 for ; Wed, 3 Nov 2004 15:55:38 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 92802-02 for ; Wed, 3 Nov 2004 15:55:29 +0000 (GMT) Received: from sina.sharif.ir (Homa.Sharif.EDU [81.31.160.34]) by svr1.postgresql.org (Postfix) with ESMTP id 854D73A44B8 for ; Wed, 3 Nov 2004 15:55:29 +0000 (GMT) Received: from ce.sharif.edu (ce.sharif.ac.ir [81.31.164.3] (may be forged)) by sina.sharif.ir (8.12.8/8.12.8) with ESMTP id iA3FtMFX015217 for ; Wed, 3 Nov 2004 19:25:22 +0330 Received: from ce.sharif.edu (localhost [127.0.0.1]) by ce.sharif.edu (8.12.10/8.12.10) with SMTP id iA3FuSba023055 for ; Wed, 3 Nov 2004 19:26:28 +0330 Received: from 62.220.101.165 (SquirrelMail authenticated user eetemadi) by ce.sharif.edu with HTTP; Wed, 3 Nov 2004 19:26:28 +0330 (IRST) Message-ID: <34544.62.220.101.165.1099497388.squirrel@ce.sharif.edu> Date: Wed, 3 Nov 2004 19:26:28 +0330 (IRST) Subject: CREATE TYPE From: "Ameen - Etemady" To: pgsql-sql@postgresql.org User-Agent: SquirrelMail/1.4.2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal X-Virus-Scanned: clamd / ClamAV version 0.75.1, clamav-milter version 0.75c on localhost X-Virus-Status: Clean X-sina.sharif.edu-MailScanner-Information: Please contact the ISP for more information X-sina.sharif.edu-MailScanner: Found to be clean X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.4 tagged_above=0.0 required=5.0 tests=PRIORITY_NO_NAME, SUBJ_ALL_CAPS X-Spam-Level: * X-Archive-Number: 200411/28 X-Sequence-Number: 19347 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