Re: FK type mismatches? - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: FK type mismatches?
Date
Msg-id Pine.LNX.4.44.0309052301290.1173-100000@peter.localdomain
Whole thread Raw
In response to FK type mismatches?  (Neil Conway <neilc@samurai.com>)
Responses Re: FK type mismatches?  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: FK type mismatches?  (Robert Treat <xzilla@users.sourceforge.net>)
List pgsql-hackers
Neil Conway writes:

> Should this produce a warning?
>
> nconway=# create table a (b int4 unique);
> NOTICE:  CREATE TABLE / UNIQUE will create implicit index "a_b_key" for
> table "a"
> CREATE TABLE
> nconway=# create table c (d int8 references a (b));
> NOTICE:  CREATE TABLE will create implicit trigger(s) for FOREIGN KEY
> check(s)
> CREATE TABLE

I don't think so.  We don't produce warnings in other cases of potential
index mismatches either.

-- 
Peter Eisentraut   peter_e@gmx.net



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: 64-bit pgsql
Next
From: Tom Lane
Date:
Subject: Re: [PATCHES] Warning for missing createlang