foreign key constraint not being respected with type created by CREATE TYPE

From: H Hale <hhale21(at)yahoo(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: foreign key constraint not being respected with type created by CREATE TYPE
Date: 2005-06-10 16:47:42
Message-ID: 20050610164742.6779.qmail@web52310.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

I have created a new data type using CREATE TYPE.
Foreign keys constaints are not being respected with
columns using the new type. As far as I can tell the
new type is working correctly except for foreign keys.
May be I have missed something when defining the new
type. Is there something specific that needs to be
done so that columns using the new type can be used as
foreign keys?
Thanks

CREATE TYPE X (
INTERNALLENGTH = 16,
INPUT = X_in,
OUTPUT = X_out,
RECEIVE = X_recv,
SEND = X_send,
alignment = CHAR
);

CREATE OPERATOR CLASS X_ops
DEFAULT FOR TYPE uuid USING btree
AS
OPERATOR 1 < ,
OPERATOR 2 <= ,
OPERATOR 3 = ,
OPERATOR 4 >= ,
OPERATOR 5 > ,
FUNCTION 1 X_cmp(X, X);


__________________________________
Discover Yahoo!
Find restaurants, movies, travel and more fun for the weekend. Check it out!
http://discover.yahoo.com/weekend.html

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2005-06-10 17:13:04 Re: foreign key constraint not being respected with type created by CREATE TYPE
Previous Message Sean Davis 2005-06-10 16:40:00 Re: postgres and xml