| От | Stephan Szabo |
|---|---|
| Тема | Re: Deleting foreign key constraints |
| Дата | |
| Msg-id | 20020829065343.Q96596-100000@megazone23.bigpanda.com обсуждение исходный текст |
| Ответ на | Deleting foreign key constraints ("Nikhil G. Daddikar" <ngd@celoxis.com>) |
| Список | pgsql-general |
On Thu, 29 Aug 2002, Nikhil G. Daddikar wrote: > Is there a way to delete all foreign key constraints for a table? Not a particularly good one. You'll probably need to drop the triggers manually (from both that table and the table it references) and you'll need to match up the arguments to do that. There's some info on techdocs.postgresql.org about the triggers that you might find useful. > Also, is there a way to programmatically find all tables (excluding > system created) in a database? Check the query generated by psql for a \d (use psql -E to get the the query). It'll be something with pg_class. > > I am using 7.1.3
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера