From: Heikki Linnakangas <hlinnakangas@vmware.com>
To: bashtanov@imap.cc
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #11344: ALTER TABLE ... SET SCHEMA ... do not recurse to inherited tables
Date: Wed, 3 Sep 2014 15:45:43 +0300
Message-ID: <54070D77.2090500@vmware.com> (raw)
In-Reply-To: <20140903123558.2924.6890@wrigleys.postgresql.org>
References: <20140903123558.2924.6890@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: hlinnakangas@vmware.com, bashtanov@imap.cc
Subject: Re: BUG #11344: ALTER TABLE ... SET SCHEMA ... do not recurse to inherited tables
In-Reply-To: <54070D77.2090500@vmware.com>
References: <20140903123558.2924.6890@wrigleys.postgresql.org> <54070D77.2090500@vmware.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox