Array like a foreign key

Поиск
Список
Период
Сортировка
От Cristian Custodio
Тема Array like a foreign key
Дата
Msg-id 001201c2e1c6$fe930f60$fb01a8c0@ttcristian
обсуждение исходный текст
Список pgsql-general
Hi,
 
I would like do build a select that could show me the constraints
and its columns.
 
I tried this way but it don't work.
select c.conname, c.contype, c.confkey,  a.attname
  from pg_constraint c inner join pg_attribute a on (a.attnum in c.confkey)
 
 
The problem is because the confkey is a array type.
 
How can I do that.
 
 Please,
 
Cristian

В списке pgsql-general по дате отправления:

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: almost there on a design
Следующее
От: Greg Copeland
Дата:
Сообщение: Re: [HACKERS] Postgresql performace question