Re: Create Table xtest (like xtype)

From: "TJ O'Donnell" <tjo(at)acm(dot)org>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "TJ O'Donnell" <tjo(at)acm(dot)org>, "PostgreSQL - SQL" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Create Table xtest (like xtype)
Date: 2008-02-07 00:37:16
Message-ID: 3783.70.166.88.111.1202344636.squirrel@www.gnova.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Considering how related Created Types and
Tables are (at least conceptually)
it seems like a good idea to allow
Created Types to be used in the Like clause.
At least it would help me and make maintaining
my db easier and cleaner.

TJ O'Donnell
http://www.gnova.com/

> "TJ O'Donnell" <tjo(at)acm(dot)org> writes:
>> Create Type xtype As (a Integer, b Text);
>> Create Table xtest (Like xtype);
>> ERROR: "xtype" is a composite type
>
> Hmmm ... as you see, that's disallowed, but offhand it seems like it
> wouldn't be very hard to allow it. It might be as simple as relaxing
> the relkind check.
>
> regards, tom lane
>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Medi Montaseri 2008-02-07 01:08:54 accounting schema
Previous Message Tom Lane 2008-02-06 23:37:22 Re: Information schema permissions