Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W9FuX-00017s-AB for pgsql-hackers@arkaria.postgresql.org; Fri, 31 Jan 2014 15:21:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W9FuW-0004q0-Q2 for pgsql-hackers@arkaria.postgresql.org; Fri, 31 Jan 2014 15:21:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W9FuV-0004pr-2d for pgsql-hackers@postgresql.org; Fri, 31 Jan 2014 15:21:39 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W9FuS-0000tP-3o for pgsql-hackers@postgresql.org; Fri, 31 Jan 2014 15:21:38 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id D74985F7DB; Fri, 31 Jan 2014 10:21:36 -0500 (EST) Date: Fri, 31 Jan 2014 10:21:36 -0500 From: Stephen Frost To: Robert Haas Cc: Tom Lane , Shigeru Hanada , Etsuro Fujita , PostgreSQL-development Subject: Re: inherit support for foreign tables Message-ID: <20140131152136.GJ2921@tamriel.snowman.net> References: <52E5F3FD.6050000@lab.ntt.co.jp> <52E6137B.1080704@lab.ntt.co.jp> <32648.1391097891@sss.pgh.pa.us> <20275.1391119500@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="opg8F0UgoHELSI+9" Content-Disposition: inline In-Reply-To: X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.8.0-35-generic (x86_64) X-Uptime: 10:14:59 up 1 day, 17:13, 4 users, load average: 0.08, 0.04, 0.05 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -2.5 (--) 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 --opg8F0UgoHELSI+9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Robert Haas (robertmhaas@gmail.com) wrote: > On Thu, Jan 30, 2014 at 5:05 PM, Tom Lane wrote: > > Robert Haas writes: > >> On Thu, Jan 30, 2014 at 11:04 AM, Tom Lane wrote: > >>> I think this is totally misguided. Who's to say that some weird FDW > >>> might not pay attention to attstorage? I could imagine a file-based > >>> FDW using that to decide whether to compress columns, for instance. > >>> Admittedly, the chances of that aren't large, but it's pretty hard > >>> to argue that going out of our way to prevent it is a useful activity. > > > >> I think that's a pretty tenuous position. There are already > >> FDW-specific options sufficient to let a particular FDW store whatever > >> kinds of options it likes; letting the user set options that were only > >> ever intended to be applied to tables just because we can seems sort > >> of dubious. I'm tempted by the idea of continuing to disallow SET > >> STORAGE on an unvarnished foreign table, but allowing it on an > >> inheritance hierarchy that contains at least one real table, with the > >> semantics that we quietly ignore the foreign tables and apply the > >> operation to the plain tables. > > > > [ shrug... ] By far the easiest implementation of that is just to apply > > the catalog change to all of them. According to your assumptions, it'll > > be a no-op on the foreign tables anyway. >=20 > Well, there's some point to that, too, I suppose. What do others think? I agree that using the FDW-specific options is the right approach and disallowing those to be set on foreign tables makes sense. I don't particularly like the idea of applying changes during inheiritance which we wouldn't allow the user to do directly. While it might be a no-op and no FDW might use it, it'd still be confusing. Thanks, Stephen --opg8F0UgoHELSI+9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAEBAgAGBQJS67+AAAoJEO1sijiDR2RVeGYP/jzevY+5rXsK6hxyK6hJHts/ gy96y+2tmD+slj0A5nJIORhReyX8UnxrnCAxepJZ8pu5YrcLBjYTUWcbE3FtLFcs IYerXItoCxlKkXzoeU2eE3M0RMP9PWjXFv/kk48erxN26cM35FV+R755lXYW2O3K JUW/+/8wuchnear/4gbiWiTrLUzhWxPgZjecUgN2JFnCCpsOIOpKbFROG0BWyY/c jDUbrrM/YyYLFOdnsoKtAVAzo5uIhtw6FIcdf8sQBGx3uriHDm52M7GGSmIOLMGY OEH55sz0OAsRTpkjlQWIyHhPK2+/jwaslEbT80OodABPo7ph/3qERyA1PpFGqtB/ 63gxf3zVDomQlcVdGnjr2Vdp0+cwrMDxt3TcNIQ0IOwOIFJQDiCFf+Cw4sMuw5Kp kiuH6O85e8cNfZ6wp6ZY81XTSpaL5q2/8scGu+l9u8HGjqkVBnQgKK2+lS2a/hrQ ORbVjyPzWQdV7eXuZM5NoPn5Sli5S540BE7XZdqmhVsNR/6JYnDjWg8M9QWbQrPY C7ycOzXwOsF3g4VExgMMthksfVugXj30SvXMp5TRslHDgyvBW8vle/gJpTY5Spna GfUsR0jANMWJn8sYfleq1Uf3OgCZI9unm+yLA2HtU5RlcT9BCxc3dD0kTm5LRR6Q tac8KUKNqEecPAJeimVk =dwDI -----END PGP SIGNATURE----- --opg8F0UgoHELSI+9--