Re: [HACKERS] Another oddity in handling of WCO constraints in postgres_fdw

Поиск
Список
Период
Сортировка
От Etsuro Fujita
Тема Re: [HACKERS] Another oddity in handling of WCO constraints in postgres_fdw
Дата
Msg-id 5A058F21.2040201@lab.ntt.co.jp
обсуждение исходный текст
Ответ на Re: [HACKERS] Another oddity in handling of WCO constraints in postgres_fdw  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: [HACKERS] Another oddity in handling of WCO constraints in postgres_fdw
Re: [HACKERS] Another oddity in handling of WCO constraints inpostgres_fdw
Список pgsql-hackers
(2017/11/01 11:16), Robert Haas wrote:
> On Wed, Oct 4, 2017 at 5:58 PM, Ashutosh Bapat
> <ashutosh.bapat@enterprisedb.com>  wrote:
>> The view with WCO is local but the modification which violates WCO is
>> being made on remote server by a trigger on remote table. Trying to
>> control that doesn't seem to be a good idea, just like we can't
>> control what rows get inserted on the foreign server when they violate
>> local constraints.
>
> I think that's a fair point.

For local constraints on foreign tables, it's the user's responsibility 
to ensure that those constraints matches the remote side, so we don't 
need to ensure those constraints locally.  But I'm not sure if the same 
thing applies to WCOs on views defined on foreign tables, because in 
some case it's not possible to impose constraints on the remote side 
that match those WCOs, as I explained before.

Best regards,
Etsuro Fujita


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

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

Предыдущее
От: amul sul
Дата:
Сообщение: Re: [HACKERS] Runtime Partition Pruning
Следующее
От: Martín Marqués
Дата:
Сообщение: Re: [HACKERS] pg_basebackup --progress output for batch execution