Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WNFTM-0005Pp-O4 for pgsql-hackers@arkaria.postgresql.org; Tue, 11 Mar 2014 05:43:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WNFTL-00062V-Na for pgsql-hackers@arkaria.postgresql.org; Tue, 11 Mar 2014 05:43:27 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WNFTJ-00061W-AF for pgsql-hackers@postgresql.org; Tue, 11 Mar 2014 05:43:25 +0000 Received: from tama500.ecl.ntt.co.jp ([129.60.39.148]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WNFTG-0000BQ-0w for pgsql-hackers@postgresql.org; Tue, 11 Mar 2014 05:43:23 +0000 Received: from mfs5.rdh.ecl.ntt.co.jp (mfs5.rdh.ecl.ntt.co.jp [129.60.39.144]) by tama500.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id s2B5hJuB023585; Tue, 11 Mar 2014 14:43:19 +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 9C9ADE0143; Tue, 11 Mar 2014 14:43:19 +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 87DEBE0053; Tue, 11 Mar 2014 14:43:19 +0900 (JST) Received: from [129.60.241.182] ([129.60.241.182]) by imail3.m.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id s2B5hJt7031884; Tue, 11 Mar 2014 14:43:19 +0900 Message-ID: <531EA264.1000205@lab.ntt.co.jp> Date: Tue, 11 Mar 2014 14:43:00 +0900 From: Etsuro Fujita User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: Kyotaro HORIGUCHI CC: shigeru.hanada@gmail.com, pgsql-hackers@postgresql.org Subject: Re: inherit support for foreign tables References: <530C7464.6020006@lab.ntt.co.jp> <20140226.124857.17636723.horiguchi.kyotaro@lab.ntt.co.jp> <20140310.172911.79971075.horiguchi.kyotaro@lab.ntt.co.jp> <20140311.140751.146429295.horiguchi.kyotaro@lab.ntt.co.jp> In-Reply-To: <20140311.140751.146429295.horiguchi.kyotaro@lab.ntt.co.jp> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-MML: No 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 (2014/03/11 14:07), Kyotaro HORIGUCHI wrote: >> This seems far better than silently performing the command, >> except for the duplicated message:( New bitmap might required to >> avoid the duplication.. > > I rewrote it in more tidy way. ATController collects all affected > tables on ATRewriteCatalogs as first stage, then emit NOTICE > message according to the affected relations list. The message > looks like, > > | =# alter table passwd alter column uname set default 'hoge'; > | NOTICE: This command affects 2 foreign tables: cf1, cf2 > | ALTER TABLE > > Do you feel this too large or complicated? I think so a bit.. No. I think that would be a useful message for the user. My feeling is it would be better to show this kind of messages for all the affected tables whether or not the affected ones are foreign. How about introducing a VERBOSE option for ALTER TABLE? Though, I think that should be implemented as a separate patch. 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