From: Ferdinand Smit <ferdinand@telegraafnet.nl>
To: pgsql-admin@postgresql.org
Subject: Creating a new type
Date: Mon, 16 Sep 2002 12:37:49 +0200
Message-ID: <200209161237.49806.ferdinand@telegraafnet.nl> (raw)
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
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: ferdinand@telegraafnet.nl
Subject: Re: Creating a new type
In-Reply-To: <200209161237.49806.ferdinand@telegraafnet.nl>
References: <200209161237.49806.ferdinand@telegraafnet.nl>
* 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