I need to get access to all of the foreign keys in a database, but I am not sure where postgres stores them. Does anyone know it they are stored in a table or not, and if so which table? Thanks.
You can get the information out of pg_trigger. Each references relationship will create three triggers in pg_trigger. It's not in a particularly friendly format though. There should be messages in the archives of either -general or -hackers about the details. (Or if you can't find it, I can go through the entire thing again). Stephan Szabo sszabo@bigpanda.com On Mon, 21 Aug 2000, Jessica Engblom wrote: > I need to get access to all of the foreign keys in a database, but I am > not sure where postgres stores them. Does anyone know it they are > stored in a table or not, and if so which table? > > Thanks. >
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера