Re: FK type mismatches?

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: FK type mismatches?
Дата
Msg-id Pine.LNX.4.44.0309052301290.1173-100000@peter.localdomain
обсуждение исходный текст
Ответ на FK type mismatches?  (Neil Conway <neilc@samurai.com>)
Ответы Re: FK type mismatches?  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: FK type mismatches?  (Robert Treat <xzilla@users.sourceforge.net>)
Список 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 по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: 64-bit pgsql
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [PATCHES] Warning for missing createlang