Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XgUzk-0002Na-Cr for pgsql-hackers@arkaria.postgresql.org; Tue, 21 Oct 2014 08:40:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XgUzj-0002oY-Nv for pgsql-hackers@arkaria.postgresql.org; Tue, 21 Oct 2014 08:40:43 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XgUzi-0002oP-F4 for pgsql-hackers@postgresql.org; Tue, 21 Oct 2014 08:40:42 +0000 Received: from tama50.ecl.ntt.co.jp ([129.60.39.147]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XgUzc-0002hI-PM for pgsql-hackers@postgresql.org; Tue, 21 Oct 2014 08:40:40 +0000 Received: from mfs5.rdh.ecl.ntt.co.jp (mfs5.rdh.ecl.ntt.co.jp [129.60.39.144]) by tama50.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id s9L8eVj8013539; Tue, 21 Oct 2014 17:40:31 +0900 Received: from mfs5.rdh.ecl.ntt.co.jp (localhost.localdomain [127.0.0.1]) by mfs5.rdh.ecl.ntt.co.jp (Postfix) with ESMTP id A7877E00DE; Tue, 21 Oct 2014 17:40:31 +0900 (JST) Received: from imail3.m.ecl.ntt.co.jp (imail3.m.ecl.ntt.co.jp [129.60.5.248]) by mfs5.rdh.ecl.ntt.co.jp (Postfix) with ESMTP id 91C35E00DD; Tue, 21 Oct 2014 17:40:31 +0900 (JST) Received: from [129.60.241.75] ([129.60.241.75]) by imail3.m.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id s9L8eUXx012734; Tue, 21 Oct 2014 17:40:31 +0900 Message-ID: <54461BEB.9000707@lab.ntt.co.jp> Date: Tue, 21 Oct 2014 17:40:11 +0900 From: Etsuro Fujita User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Heikki Linnakangas , Kyotaro HORIGUCHI CC: noah@leadboat.com, shigeru.hanada@gmail.com, pgsql-hackers@postgresql.org Subject: Re: inherit support for foreign tables References: <53F48245.6020204@lab.ntt.co.jp> <20140822025137.GA563733@tornado.leadboat.com> <53FEEF94.6040101@lab.ntt.co.jp> <20140902.142218.253402812.horiguchi.kyotaro@lab.ntt.co.jp> <5410A76B.20102@vmware.com> <541169C3.3030900@lab.ntt.co.jp> <54117D6E.3000008@vmware.com> <541187D5.4050301@lab.ntt.co.jp> <54118CDA.90009@vmware.com> <5412A112.9060009@lab.ntt.co.jp> <543D0261.6020803@lab.ntt.co.jp> In-Reply-To: <543D0261.6020803@lab.ntt.co.jp> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Pg-Spam-Score: -3.3 (---) 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 (2014/10/14 20:00), Etsuro Fujita wrote: > Here are separated patches. > > fdw-chk.patch - CHECK constraints on foreign tables > fdw-inh.patch - table inheritance with foreign tables > > The latter has been created on top of [1]. > [1] http://www.postgresql.org/message-id/540DA168.3040407@lab.ntt.co.jp To be exact, it has been created on top of [1] and fdw-chk.patch. I noticed that the latter disallows TRUNCATE on inheritance trees that contain at least one child foreign table. But I think it would be better to allow it, with the semantics that we quietly ignore the child foreign tables and apply the operation to the child plain tables, which is the same semantics as ALTER COLUMN SET STORAGE on such inheritance trees. Comments welcome. Thanks, 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