Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WAA15-0000G7-8M for pgsql-hackers@arkaria.postgresql.org; Mon, 03 Feb 2014 03:16:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WAA14-0000pe-NG for pgsql-hackers@arkaria.postgresql.org; Mon, 03 Feb 2014 03:16:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WAA13-0000oK-9C for pgsql-hackers@postgresql.org; Mon, 03 Feb 2014 03:16:09 +0000 Received: from tama50.ecl.ntt.co.jp ([129.60.39.147]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WAA10-0004hM-Ct for pgsql-hackers@postgresql.org; Mon, 03 Feb 2014 03:16:08 +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 s133G2I8029702; Mon, 3 Feb 2014 12:16:02 +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 0FFC6E014B; Mon, 3 Feb 2014 12:16:02 +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 04630E0149; Mon, 3 Feb 2014 12:16:02 +0900 (JST) Received: from [129.60.241.153] ([129.60.241.153]) by imail3.m.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id s133G1lo027959; Mon, 3 Feb 2014 12:16:01 +0900 Message-ID: <52EF09D3.8060302@lab.ntt.co.jp> Date: Mon, 03 Feb 2014 12:15:31 +0900 From: Etsuro Fujita User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Robert Haas , Tom Lane CC: Shigeru Hanada , PostgreSQL-development Subject: Re: inherit support for foreign tables References: <12432.1384406906@sss.pgh.pa.us> <10163.1384786524@sss.pgh.pa.us> <52DDD071.9090405@ak.jp.nec.com> <52E5F3FD.6050000@lab.ntt.co.jp> <52E6137B.1080704@lab.ntt.co.jp> <32648.1391097891@sss.pgh.pa.us> <20275.1391119500@sss.pgh.pa.us> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-MML: No 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 (2014/01/31 9:56), Robert Haas 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. > > Well, there's some point to that, too, I suppose. What do others think? Allowing ALTER COLUMN SET STORAGE on foreign tables would make sense if for example, "SELECT * INTO local_table FROM foreign_table" did create a new local table of columns having the storage types associated with those of a foreign table? 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