Re: References not being checked while creating tables?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: References not being checked while creating tables?
Дата
Msg-id 25896.984772944@sss.pgh.pa.us
обсуждение исходный текст
Ответ на References not being checked while creating tables?  (Bas van der Linden <bas@mike.amaze.nl>)
Список pgsql-novice
Bas van der Linden <bas@mike.amaze.nl> writes:
> CREATE TABLE test (
> id        serial
> );

> CREATE TABLE test2 (
> another_id    text REFERENCES test(id)
> );

> This is accepted by the database, however, it obviously is of no use
> whatsoever as the data types are incompatible.

Yes, the type mismatch should be detected sooner.  I thought we had
fixed this for 7.1, but I see it still doesn't notice the problem
until runtime.  Oh well, another TODO item for 7.2 ...

            regards, tom lane

В списке pgsql-novice по дате отправления:

Предыдущее
От: Laurel Williams
Дата:
Сообщение: installing/running ODBC
Следующее
От: Randy Hall
Дата:
Сообщение: Re: pg_dump & BLOBs ?