Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 94589475AD7 for ; Mon, 16 Sep 2002 06:37:49 -0400 (EDT) Received: from smtp0.telegraaf.net (smtp0.telegraaf.net [217.196.45.130]) by postgresql.org (Postfix) with ESMTP id 51D47475AAC for ; Mon, 16 Sep 2002 06:37:48 -0400 (EDT) Received: from server9.telegraafnet.nl (server9.telegraafnet.nl [192.168.1.9]) by smtp0.telegraaf.net (Postfix) with ESMTP id 02C56439B3 for ; Mon, 16 Sep 2002 12:37:50 +0200 (CEST) Received: from c22601 (c22601.ws.tem.nl [192.168.1.61]) by server9.telegraafnet.nl (8.11.1/8.11.1/Debian 8.11.0-6) with ESMTP id g8GAbnK06724 for ; Mon, 16 Sep 2002 12:37:49 +0200 X-Authentication-Warning: server9.telegraafnet.nl: Host c22601.ws.tem.nl [192.168.1.61] claimed to be c22601 Content-Type: text/plain; charset="us-ascii" From: Ferdinand Smit To: pgsql-admin@postgresql.org Subject: Creating a new type Date: Mon, 16 Sep 2002 12:37:49 +0200 User-Agent: KMail/1.4.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200209161237.49806.ferdinand@telegraafnet.nl> X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/166 X-Sequence-Number: 5705 Hi, How can a create a new type or alias? I want to create a alias for the text type. The alias name must be blob. (MySQL type). The documentation tells me how to create en new type, but don't tell me how to create the input and output functions. Type definition: CREATE TYPE blob (INPUT = blob_in, OUTPUT = blob_out, ELEMENT = text); Regards, Ferdinand