Re: Can I create a TYPE (or DOMAIN) with arguments? - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: Can I create a TYPE (or DOMAIN) with arguments?
Date
Msg-id 20080110155743.GE29714@svana.org
Whole thread Raw
In response to Re: Can I create a TYPE (or DOMAIN) with arguments?  (Erik Jones <erik@myemma.com>)
Responses Re: Can I create a TYPE (or DOMAIN) with arguments?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Thu, Jan 10, 2008 at 08:58:07AM -0600, Erik Jones wrote:
> Postgres doesn't support parameterized type declarations directly
> (that I've ever heard of), but you could probably write a function
> that uses EXECUTE to do this.

IIRC 8.3 will include the user-defined typmod which will allow such
constructs...

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Those who make peaceful revolution impossible will make violent revolution inevitable.
>  -- John F Kennedy

Attachment

pgsql-general by date:

Previous
From: "Isak Hansen"
Date:
Subject: Re: 8.2.4 serious slowdown
Next
From: "Scott Marlowe"
Date:
Subject: Re: Setting variables equal to elements from an Array