Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1clysv-0004vG-4A for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Mar 2017 14:17:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1clysu-00058j-IZ for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Mar 2017 14:17:40 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1clyrS-0002U0-6e for pgsql-hackers@postgresql.org; Thu, 09 Mar 2017 14:16:10 +0000 Received: from tamriel.snowman.net ([72.66.115.51]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1clyrL-0002ft-6X for pgsql-hackers@postgresql.org; Thu, 09 Mar 2017 14:16:08 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 10D405F794; Thu, 9 Mar 2017 09:15:32 -0500 (EST) Date: Thu, 9 Mar 2017 09:15:31 -0500 From: Stephen Frost To: pgsql-hackers@postgresql.org Subject: postgres_fdw IMPORT SCHEMA and partitioned tables Message-ID: <20170309141531.GD9812@tamriel.snowman.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="HShZ9mKAOB5hSJfb" Content-Disposition: inline X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-91-generic (x86_64) X-Uptime: 09:03:04 up 243 days, 15:27, 17 users, load average: 0.13, 0.17, 0.15 User-Agent: Mutt/1.5.21 (2010-09-15) 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 --HShZ9mKAOB5hSJfb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Greetings, While reviewing Amit Langote's patch to handle partitioned tables properly in various contrib modules (mostly by throwing an error since things like pageinspect aren't going to work on the empty 'parent' table), I went looking through contrib for other modules that do something with relkind and noticed that postgres_fdw's IMPORT SCHEMA would pull in the child tables (relkind = 'r') but would ignore the parent table (relkind = 'P', or soon to be 'p', I guess). I tend to view this as an issue which should be added to the open items list and resolved before PG10 (though perhaps it could be done after feature freeze), but I could see an argument that it should be just a documented limitation of postgres_fdw and that adding such support would be a new feature. In any case, this seems like an issue that should be addressed one way or the other, so I'll add it to the open items list. I'm not planning to work on fixing it myself, but if someone proposes a patch which looks reasonable, I'll try to find time for it. Thanks! Stephen --HShZ9mKAOB5hSJfb Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJYwWODAAoJEO1sijiDR2RVAMAP/iM9N349BqzNOewwO9Bwc6GG XsC815bK15jW6iV7XYDNUGzhox1T2bbJ+2dWYAybgAyGE0+0tqwkNXhQqjBlAr0z +8jnGtxQWaHbQBqqCbuffqmqHFE8DQ8XT2s/ObP5VVSXkOcrs6WyhY7KoLqWTaW1 ciQ2LU06M9nGnkqE7Vb59Abjjhey/6Gkf4hJlWpb6Z1gkaHIvThSK4EFgrEa0mg1 nkrJ4ASJI/ZNv7ZLPrAzR42Z/umVVAFHtRQzOV/W6Whe3ZeEL3gV1Sks87IxjBjY AmUXqgjUacZ6TLyML2Ycl+sOMdec5hIUlG+k4d+IzsPg3CcVPsYCXX4dbLyhhyX/ apBajqEkqXk9bfcNIklVPTlNiiP3zvYYZG0l2lBFTFVrsVmjzZooazd7RSPOSSAQ RyHk6YECU9vaD0QIofgFS5iw4YtbeHvxLps3TiN6dWe9SFHs8AoOpsUStll3oxx+ JFltXCWnBIyW/NBtrKxU3+aw2E1ZPykzEueIHOpY38fV8J+lSflM1/OExhr3K7mz 0BnI6FWiDtdcNZUOfGSf5x0defoIqXMZmaOcL0zEqbnYpjao/GU79PFnkfW22NmW XR7ZTL9QylJ0eX9fegx/e59oRKmb4YCmUDYGgY+odC+YMpSUOHKNjQCN5F/Infa5 /IJqjDHKYfWTsWu9Ahvg =5F6t -----END PGP SIGNATURE----- --HShZ9mKAOB5hSJfb--