| От | Alexey Borzov |
|---|---|
| Тема | how do I DROP this CONSTRAINT? |
| Дата | |
| Msg-id | 12919206621.20010220154931@rdw.ru обсуждение |
| Ответы |
Re: how do I DROP this CONSTRAINT?
|
| Список | pgsql-general |
Greetings! Well, here is the problem: A "production" table has a CHECK left from "development" days and I need to delete it. It is not a foreign key, just a silly limit on a field's value. Of course, I can perform a CREATE/DROP/RENAME ritual, but would rather not, as the table is large and it is referenced by other tables. I browsed the manual and found that CHECK's are kept in pg_relcheck and their count in pg_class. So, the question: Can I just delete the record in pg_relcheck, decrement the counter in pg_class and enjoy the results or will it have undesirable side-effects? -- Yours, Alexey V. Borzov, Webmaster of RDW.ru
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера