Re: [PATCH] Support for foreign keys with arrays

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PATCH] Support for foreign keys with arrays
Дата
Msg-id 12609.1332442965@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [PATCH] Support for foreign keys with arrays  (Marco Nenciarini <marco.nenciarini@2ndQuadrant.it>)
Ответы Re: [PATCH] Support for foreign keys with arrays
Re: [PATCH] Support for foreign keys with arrays
Список pgsql-hackers
Marco Nenciarini <marco.nenciarini@2ndQuadrant.it> writes:
> Attached is v5, which should address all the remaining issues.

I started to look at this patch a bit.  I'm quite confused by the fact
that some, but not all, of the possible FK action types now come in an
EACH variant.  This makes no sense at all to me.  ISTM that EACH is a
property of the FK constraint as a whole, that is that it says the
constraint is from array elements on the referencing side to column
values on the referenced side, rather than the normal case of column
values to column values.  Why would the possible actions be affected,
and why only these?  The patch documentation is extremely unclear about
this.  It's even less clear about what the semantics are in multi-key
cases.  Right offhand I would say that multi-key cases are nonsensical
and should be forbidden outright, because there is no way to figure out
which collections of elements of different arrays should be considered
to be a referencing item.

Could we see a specification of what the referencing semantics are
intended to be, please?
        regards, tom lane


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

Предыдущее
От: Peter Geoghegan
Дата:
Сообщение: Re: Re: pg_stat_statements normalisation without invasive changes to the parser (was: Next steps on pg_stat_statements normalisation)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Re: pg_stat_statements normalisation without invasive changes to the parser (was: Next steps on pg_stat_statements normalisation)