Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XP9wo-00084U-Cf for pgsql-bugs@arkaria.postgresql.org; Wed, 03 Sep 2014 12:46:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XP9wn-0006jF-SO for pgsql-bugs@arkaria.postgresql.org; Wed, 03 Sep 2014 12:46:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XP9wn-0006i3-3T for pgsql-bugs@postgresql.org; Wed, 03 Sep 2014 12:46:01 +0000 Received: from smtp-outbound-2.vmware.com ([208.91.2.13]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XP9wh-0000lX-Ig for pgsql-bugs@postgresql.org; Wed, 03 Sep 2014 12:46:00 +0000 Received: from sc9-mailhost1.vmware.com (sc9-mailhost1.vmware.com [10.113.161.71]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id E7D06290E4; Wed, 3 Sep 2014 05:45:49 -0700 (PDT) Received: from EX13-CAS-008.vmware.com (EX13-CAS-008.vmware.com [10.113.191.58]) by sc9-mailhost1.vmware.com (Postfix) with ESMTP id E135B19267; Wed, 3 Sep 2014 05:45:49 -0700 (PDT) Received: from EX13-MBX-024.vmware.com (10.113.191.44) by EX13-MBX-012.vmware.com (10.113.191.32) with Microsoft SMTP Server (TLS) id 15.0.775.38; Wed, 3 Sep 2014 05:45:48 -0700 Received: from [192.168.1.90] (10.113.160.246) by EX13-MBX-024.vmware.com (10.113.191.44) with Microsoft SMTP Server (TLS) id 15.0.775.38; Wed, 3 Sep 2014 05:45:46 -0700 Message-ID: <54070D77.2090500@vmware.com> Date: Wed, 3 Sep 2014 15:45:43 +0300 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.0 MIME-Version: 1.0 To: , Subject: Re: BUG #11344: ALTER TABLE ... SET SCHEMA ... do not recurse to inherited tables References: <20140903123558.2924.6890@wrigleys.postgresql.org> In-Reply-To: <20140903123558.2924.6890@wrigleys.postgresql.org> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.113.160.246] X-ClientProxiedBy: EX13-CAS-013.vmware.com (10.113.191.65) To EX13-MBX-024.vmware.com (10.113.191.44) X-Pg-Spam-Score: -9.3 (---------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 09/03/2014 03:35 PM, bashtanov@imap.cc wrote: > The following bug has been logged on the website: > > Bug reference: 11344 > Logged by: Alexey Bashtanov > Email address: bashtanov@imap.cc > PostgreSQL version: 9.3.4 > Operating system: CentOS Linux > Description: > > Hello! > > I perform the following actions > 1) ALTER TABLE foo SET SCHEMA zzz > 2) ALTER TABLE bar * SET SCHEMA zzz > and expect the tables inherited from foo and bar to be moved to schema zzz > as well as the master tables. My expectations are based on docs: > http://www.postgresql.org/docs/9.3/static/sql-altertable.html > > However, only master tables are moved to zzz schema. Please fix either the > code or the docs. The manual says: > > SET SCHEMA > > This form moves the table into another schema. Associated indexes, constraints, and sequences owned by table columns are moved as well. It doesn't mention inherited tables at all. ? - Heikki -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs