pgsql/src/backend/parser analyze.c

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql/src/backend/parser analyze.c
Дата
Msg-id 200107041736.f64HatW61878@hub.org
обсуждение исходный текст
Список pgsql-committers
CVSROOT:    /home/projects/pgsql/cvsroot
Module name:    pgsql
Changes by:    tgl@hub.org    01/07/04 13:36:55

Modified files:
    src/backend/parser: analyze.c

Log message:
    Prohibit a column from appearing twice in a PRIMARY KEY or UNIQUE
    constraint.  This case (a) is useless, (b) violates SQL92, and
    (c) is certain to cause a failure downstream when we try to create
    an index with duplicated column names.  So give an appropriate error
    message instead of letting the index failure occur.  Per report from
    Colin Strickland.  NOTE: currently, CREATE INDEX fooi ON foo(f1,f1)
    still fails with 'cannot insert duplicate key' error.  Should we
    change that too?  What about functional indexes?


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

Предыдущее
От: Bruce Momjian - CVS
Дата:
Сообщение: pgsql/src/interfaces/jdbc/org/postgresql/core ...
Следующее
От: Jan Wieck
Дата:
Сообщение: pgsql/src backend/postmaster/pgstat.c backend/ ...