Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ViQEp-0000Lf-G0 for pgsql-hackers@arkaria.postgresql.org; Mon, 18 Nov 2013 14:55:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1ViQEo-0005Yg-5F for pgsql-hackers@arkaria.postgresql.org; Mon, 18 Nov 2013 14:55:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ViQEa-0005Fz-Jw for pgsql-hackers@postgresql.org; Mon, 18 Nov 2013 14:55:28 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ViQEX-0007oO-Kt for pgsql-hackers@postgresql.org; Mon, 18 Nov 2013 14:55:28 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id rAIEtOh3010164; Mon, 18 Nov 2013 09:55:24 -0500 From: Tom Lane To: Robert Haas cc: Shigeru Hanada , PostgreSQL-development Subject: Re: inherit support for foreign tables In-reply-to: References: <12432.1384406906@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Mon, 18 Nov 2013 09:36:50 -0500" Date: Mon, 18 Nov 2013 09:55:24 -0500 Message-ID: <10163.1384786524@sss.pgh.pa.us> X-Pg-Spam-Score: -2.4 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Robert Haas writes: > On Thu, Nov 14, 2013 at 12:28 AM, Tom Lane wrote: >>> 2) Allow foreign tables to have CHECK constraints >>> Like NOT NULL, I think we don't need to enforce the check duroing >>> INSERT/UPDATE against foreign table. >> Really? > I think it's been previously proposed that we have some version of a > CHECK constraint that effectively acts as an assertion for query > optimization purposes, but isn't actually enforced by the system. I > can see that being useful in a variety of situations, including this > one. Yeah, I think it would be much smarter to provide a different syntax to explicitly represent the notion that we're only assuming the condition is true, and not trying to enforce it. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers