Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cu2e5-00012A-VC for pgsql-hackers@arkaria.postgresql.org; Fri, 31 Mar 2017 19:55:42 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cu2e4-0003kD-SZ for pgsql-hackers@arkaria.postgresql.org; Fri, 31 Mar 2017 19:55:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cu2e3-0003k0-QW for pgsql-hackers@postgresql.org; Fri, 31 Mar 2017 19:55:39 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cu2e0-0006LH-4p for pgsql-hackers@postgresql.org; Fri, 31 Mar 2017 19:55:39 +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 v2VJtU6C015974; Fri, 31 Mar 2017 15:55:30 -0400 From: Tom Lane To: Robert Haas cc: Andres Freund , Amit Langote , Michael Paquier , Stephen Frost , PostgreSQL mailing lists Subject: Re: postgres_fdw IMPORT SCHEMA and partitioned tables In-reply-to: References: <20170309141531.GD9812@tamriel.snowman.net> <2cab6db2-cf10-b8f2-58ed-7d4a052dac34@lab.ntt.co.jp> <15303833-838d-079c-2fa2-c01e93771387@lab.ntt.co.jp> <20170331193135.wwg5pqsrc634p3dg@alap3.anarazel.de> Comments: In-reply-to Robert Haas message dated "Fri, 31 Mar 2017 15:32:33 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <15972.1490990130.1@sss.pgh.pa.us> Date: Fri, 31 Mar 2017 15:55:30 -0400 Message-ID: <15973.1490990130@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) 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 Fri, Mar 31, 2017 at 3:31 PM, Andres Freund wrote: >> Hm. Wonder if something like that shouldn't be backpatched - because >> otherwise using postgres_fdw from an old server against a newer one will >> do weird stuff. I don't know what kind of policy we've committed to >> with postgresImportForeignSchema... > I don't think I'd like to promise that postgres_fdw will always be > forward-compatible. Backward-compatibility is hard enough already. Unless I'm missing something, the behavior will be that an older version will simply ignore remote partitioned tables (they will not pass the relkind filter in the query). Seems pretty fail-soft, so I think it's fine. 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