Bug?? -- Alter table drop constraint doesn't seem to work on a primary key constraint in 7.2beta2
В списке pgsql-hackers по дате отправления:
| От | Barry Lind |
|---|---|
| Тема | Bug?? -- Alter table drop constraint doesn't seem to work on a primary key constraint in 7.2beta2 |
| Дата | |
| Msg-id | 3BEC6263.4080806@xythos.com обсуждение исходный текст |
| Ответы |
Re: Bug?? -- Alter table drop constraint doesn't seem to work on a primary key constraint in 7.2beta2
|
| Список | pgsql-hackers |
I am trying to use the new 'alter table drop constraint' syntax to drop a primary key constraint (or foreign key constraint) on the 7.2beta2 code. It gives me the following error: files31=# select version(); version ------------------------------------------------------------- PostgreSQL 7.2b2 on i686-pc-linux-gnu, compiled by GCC 2.96 (1 row) files31=# alter table XYF_FILES DROP CONSTRAINT XYF_FILES_PK; ERROR: parser: parse error at or near ";" When I look at the definition on the table through psql \d I can see that this constraint does indeed exist. What am I doing wrong? I am assuming that this syntax should work because it is documented in the 7.2 docs. thanks, --Barry PS I also notice that 'alter table drop constraint' doesn't appear to be tested at all in the alter_table regression test. 'alter table add constraint' is tested however.
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера