Re: schemas and paths with the alter statement

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: schemas and paths with the alter statement
Дата
Msg-id 11540.1109099765@sss.pgh.pa.us
обсуждение исходный текст
Ответ на schemas and paths with the alter statement  (Theodore Petrosky <tedpet5@yahoo.com>)
Ответы Re: schemas and paths with the alter statement  (Theodore Petrosky <tedpet5@yahoo.com>)
Список pgsql-sql
Theodore Petrosky <tedpet5@yahoo.com> writes:
> ALTER TABLE public.test ADD CONSTRAINT public.test_PK
> PRIMARY KEY (test);

Constraints don't have schema-qualified names.  Try

ALTER TABLE public.test ADD CONSTRAINT test_PK PRIMARY KEY (test);

The error message was pointing to the correct place BTW.
        regards, tom lane


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

Предыдущее
От: Theodore Petrosky
Дата:
Сообщение: schemas and paths with the alter statement
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: schemas and paths with the alter statement