From: | Merlin Moncure <mmoncure(at)gmail(dot)com> |
---|---|
To: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
Cc: | Peter Eisentraut <peter_e(at)gmx(dot)net>, Andrew Chernow <ac(at)esilo(dot)com>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Typed tables |
Date: | 2010-01-12 14:54:24 |
Message-ID: | b42b73151001120654k5d6f8bcci7a3c3a95cdb65524@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, Jan 12, 2010 at 9:00 AM, Andrew Dunstan <andrew(at)dunslane(dot)net> wrote:
> What is the point of this discussion? We're not going to remove the facility
> for composite types, regardless of whether or not some people regard them as
> unnecessary. And "a name that better suits the task" is not to be sneered at
> anyway.
nobody is arguing to remove the create type syntax. I suppose in
hindsight more thought might have been given to the overlap w/create
table. Also you have to admit that having both 'create type' and
'create type as' which do completely different things is pretty
awkward. in addition, we have 'create table' which gives us three
different methods of creating types, each with their own nuance and
advantages. please understand, I'm not griping: the postgresql type
system is wonderful...there's nothing else quite like it out there.
The questions I am posing are this:
*) should 'create type as' get an 'alter'? ( I think most would think so)
*) if so, how do you distinguish between the composite and non
composite version? How would this command look?
*) should we be able to define check constraints on composite types
(presumably, enforced on a cast)?
*) should 'create type as' should be walled off with 'create table'
handling most cases of type creation? (previously would have said yes,
but with typed table enhancement, probably not)
merlin
merlin
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2010-01-12 14:59:18 | Re: pg_dump sort order for functions |
Previous Message | Magnus Hagander | 2010-01-12 14:53:38 | Re: pg_dump sort order for functions |