Renaming tables to other schemas

Поиск
Список
Период
Сортировка
От ziga@ljudmila.org
Тема Renaming tables to other schemas
Дата
Msg-id 52262.193.77.253.204.1076166262.squirrel@webmail.ljudmila.org
обсуждение исходный текст
Ответы Re: Renaming tables to other schemas
Список pgsql-hackers
Hello!

The following SQL works:

ALTER TABLE a.foo RENAME TO bar;

But the following doesn't:

ALTER TABLE a.foo RENAME TO b.bar;

The capability to move objects to other schemas
would be quite useful.

Apparently, everything works OK if you change
pg_class.relnamespace with UPDATE, but this is
not very nice.

Are there any problems to be expected with this that
I am missing and if not, would it make sense to support
changing schemas with ALTER TABLE?



В списке pgsql-hackers по дате отправления: