| От | Tom Lane |
|---|---|
| Тема | Re: Quick question |
| Дата | |
| Msg-id | 18401.1065189574@sss.pgh.pa.us обсуждение |
| Ответ на | Quick question (Christopher Kings-Lynne <chriskl@familyhealth.com.au>) |
| Ответы |
Re: Quick question
|
| Список | pgsql-hackers |
Christopher Kings-Lynne <chriskl@familyhealth.com.au> writes:
> If someone could help me with this, it would be cool. How do I query
> the catalogs to find the underlying index for a constraint? (Assuming
> the constraint is primary or unique)
A first approximation is that the constraint and the index have the same
name, but I suppose someone could break that association by renaming the
index. Look in pg_depend for an internal dependency entry from the
index to the constraint if you want to be sure.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера