pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #11344: ALTER TABLE ... SET SCHEMA ... do not recurse to inherited tables
3+ messages / 3 participants
[nested] [flat]
* BUG #11344: ALTER TABLE ... SET SCHEMA ... do not recurse to inherited tables
@ 2014-09-03 12:35 bashtanov@imap.cc
0 siblings, 2 replies; 3+ messages in thread
From: bashtanov@imap.cc @ 2014-09-03 12:35 UTC (permalink / raw)
To: pgsql-bugs
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.
Regards, Alexey Bashtanov
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #11344: ALTER TABLE ... SET SCHEMA ... do not recurse to inherited tables
@ 2014-09-03 12:45 Heikki Linnakangas <hlinnakangas@vmware.com>
parent: bashtanov@imap.cc
1 sibling, 0 replies; 3+ messages in thread
From: Heikki Linnakangas @ 2014-09-03 12:45 UTC (permalink / raw)
To: bashtanov@imap.cc; pgsql-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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #11344: ALTER TABLE ... SET SCHEMA ... do not recurse to inherited tables
@ 2014-09-03 12:50 Matheus de Oliveira <matioli.matheus@gmail.com>
parent: bashtanov@imap.cc
1 sibling, 0 replies; 3+ messages in thread
From: Matheus de Oliveira @ 2014-09-03 12:50 UTC (permalink / raw)
To: bashtanov@imap.cc; +Cc: pgsql-bugs
On Wed, Sep 3, 2014 at 9:35 AM, <bashtanov@imap.cc> wrote:
> 1) ALTER TABLE foo SET SCHEMA zzz
> 2) ALTER TABLE bar * SET SCHEMA zzz
>
I think one confusion is that the command (2) and:
ALTER TABLE ONLY baz SET SCHEMA zzz;
are accepted. If SET SCHEMA does nothing about inherited table, why does it
accept ONLY and "*" ? Which are not accepted syntax from the docs.
Regards,
--
Matheus de Oliveira
Analista de Banco de Dados
Dextra Sistemas - MPS.Br nĂvel F!
www.dextra.com.br/postgres
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2014-09-03 12:50 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-09-03 12:35 BUG #11344: ALTER TABLE ... SET SCHEMA ... do not recurse to inherited tables bashtanov@imap.cc
2014-09-03 12:45 ` Heikki Linnakangas <hlinnakangas@vmware.com>
2014-09-03 12:50 ` Matheus de Oliveira <matioli.matheus@gmail.com>
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