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

From: Gregory Stark <stark(at)enterprisedb(dot)com>
To: <megous(at)gmail(dot)com>
Cc: <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: ALTER TABLE name RENAME TO new_name; does not work immediately
Date: 2008-08-09 17:38:42
Message-ID: 87proidr6l.fsf@oxford.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

<megous(at)gmail(dot)com> writes:

> ALTER TABLE name RENAME TO new_name;
> ALTER TABLE new_name
> RENAME COLUMN x TO y;
>
...
> I think the issue might be reproducible by creating table with a lot
> of rows, setting high work_mem and issuing the commands, but I did not
> try to reproduce it this way.

The commands you described should take the same length of time regardless of
the size of table and the memory settings are not relevant. I suspect you're
actually running some different commands?

--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's On-Demand Production Tuning

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message megous 2008-08-09 19:07:45 Re: ALTER TABLE name RENAME TO new_name; does not work immediately
Previous Message megous 2008-08-09 00:55:42 Re: ALTER TABLE name RENAME TO new_name; does not work immediately