X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (developer.postgresql.org [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 2BCDFF0107 for ; Sun, 8 Jun 2003 12:23:44 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 34972-08 for ; Sun, 8 Jun 2003 12:23:33 +0000 (GMT) Received: from mailav.tor1.inquent.com (mail.inquent.com [216.208.117.106]) by svr1.postgresql.org (Postfix) with ESMTP id D5389F0063 for ; Sun, 8 Jun 2003 12:23:32 +0000 (GMT) Received: from localhost (localhost [127.0.0.1]) by mailav.tor1.inquent.com (Postfix) with ESMTP id 926F010258; Sun, 8 Jun 2003 08:17:34 -0400 (EDT) Received: from [192.168.1.200] (HSE-Toronto-ppp116801.sympatico.ca [216.209.81.112]) by mailav.tor1.inquent.com (Postfix) with ESMTP id 1190D10248; Sun, 8 Jun 2003 08:17:32 -0400 (EDT) Subject: Re: Domains and Joins From: Rod Taylor To: chester c young Cc: pgsql-sql@postgresql.org In-Reply-To: <20030605213807.40591.qmail@web12701.mail.yahoo.com> References: <20030605213807.40591.qmail@web12701.mail.yahoo.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-Q+yrR2uCicFSi2/mvIFh" Organization: Message-Id: <1055075018.23997.43.camel@jester> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.4 Date: 08 Jun 2003 08:23:39 -0400 X-Virus-Scanned: by AMaViS perl-11 X-Archive-Number: 200306/58 X-Sequence-Number: 13816 --=-Q+yrR2uCicFSi2/mvIFh Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2003-06-05 at 17:38, chester c young wrote: > -- standard setup: > create table t1( c1 int primary key, data text ); > create domain dom_c1 int references t1 on delete cascade; This won't work. Domains support NOT NULL, and CHECK constraints. Foreign keys are not allowed on domains at this time in PostgreSQL or in the SQL99 spec. > create table t2( c2 int primary key, c1 dom_c1, moredata text ); > -- will not work with "using" > create view v1 as select t1.*, t2.moredata > from t1 join t2 using( c1 ); It appears to be a complaint about mis-matched datatypes, which is partially true. It's also a problem in 7.4. I'll see what I can do to fix it. --=20 Rod Taylor PGP Key: http://www.rbt.ca/rbtpub.asc --=-Q+yrR2uCicFSi2/mvIFh Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQA+4yrK6DETLow6vwwRAjKyAJ9dMn/XkQ2VhH/5DTpXOFuFB8w1EACdFYGt v3arPdBeDLIpUUyXshqxf/M= =XqHC -----END PGP SIGNATURE----- --=-Q+yrR2uCicFSi2/mvIFh--