Re: ALTER TABLE name RENAME TO new_name; does not work immediately

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: ALTER TABLE name RENAME TO new_name; does not work immediately
Дата
Msg-id 20080810015817.GA3759@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: ALTER TABLE name RENAME TO new_name; does not work immediately  (Gregory Stark <stark@enterprisedb.com>)
Ответы Re: ALTER TABLE name RENAME TO new_name; does not workimmediately  (Gregory Stark <stark@enterprisedb.com>)
Список pgsql-bugs
Gregory Stark escribió:
>
> <megous@gmail.com> writes:
>
> > Here is a script that is able to reproduce the problem (on my machine
> > anyway), you may need to play with the number of rows or workmem
> > settings to be able to reproduce it:
>
> Egads, i can confirm that this script reproduces the problem on my machine as
> well:
>
> ALTER TABLE xxx RENAME TO yyy;
> ALTER TABLE
> ALTER TABLE yyy RENAME COLUMN  col1 TO colA;
> ERROR:  relation "yyy" does not exist

On what version?  Sounds like a problem in sinval message processing.

I could not reproduce it here, but didn't try very hard.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

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

Предыдущее
От: Gregory Stark
Дата:
Сообщение: Re: ALTER TABLE name RENAME TO new_name; does not work immediately
Следующее
От: Gregory Stark
Дата:
Сообщение: Re: ALTER TABLE name RENAME TO new_name; does not workimmediately