Re: [GENERAL] Can I create a TYPE (or DOMAIN) with arguments?

2008-01-16 Thread R.A.
I think the function-trigger approach will be useful to me to bypass this problem. Thanks to all again for your suggestions! -- Free pop3 email with a spam filter. http://www.bluebottle.com/tag/5 ---(en

[GENERAL] Can I create a TYPE (or DOMAIN) with arguments?

2008-01-10 Thread R.A.
Hello, I'm trying to create a composite type with an argument, to create one field of this type like character varying(x), but I don't know if this can be done with PostgreSQL. I want something like: CREATE TYPE mytype AS ( tx character varying(x), t2nd integer ); I need to l