Re: [PATCH] Support for foreign keys with arrays
От | Kevin Grittner |
---|---|
Тема | Re: [PATCH] Support for foreign keys with arrays |
Дата | |
Msg-id | 4FDDAA39020000250004858F@gw.wicourts.gov обсуждение исходный текст |
Ответ на | [PATCH] Support for foreign keys with arrays (Gabriele Bartolini <gabriele.bartolini@2ndQuadrant.it>) |
Ответы |
Re: [PATCH] Support for foreign keys with arrays
Re: [PATCH] Support for foreign keys with arrays |
Список | pgsql-hackers |
Simon Riggs wrote: Misa Simic wrote: >> IMO, both approaches make sense... > > Agreed. Can someone provide a practical example of a "foreign key with array" use case? The only situations I'm able to think of right now are the same cases where you would now use a table with primary keys of two tables to provide a many-to-many linkage. Does this proposed feature handle other cases or handle this type of case better? The "referencing value is contained by the referenced value" has many obvious uses. For example, in our courts data we have a statute table which effectively has a statute cite and effective date range for the primary key, and we have a charge table with a statute cite and an offense date used to match it to a statute row. -Kevin
В списке pgsql-hackers по дате отправления: