Re: ALTER INDEX .. RENAME allows to rename tables/views as well - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: ALTER INDEX .. RENAME allows to rename tables/views as well
Date
Msg-id 202110182355.nh43d6xbkanl@alvherre.pgsql
Whole thread Raw
In response to Re: ALTER INDEX .. RENAME allows to rename tables/views as well  ("Bossart, Nathan" <bossartn@amazon.com>)
Responses Re: ALTER INDEX .. RENAME allows to rename tables/views as well  ("Bossart, Nathan" <bossartn@amazon.com>)
List pgsql-hackers
On 2021-Oct-07, Bossart, Nathan wrote:

> Good idea.  Patch attached.

Yeah, that sounds exactly what I was thinking.

Now, what is the worst that can happen if we rename a table under SUE
and somebody else is using the table concurrently?  Is there any way to
cause a backend crash or something like that?  As far as I can see,
because we grab a fresh catalog snapshot for each query, you can't cause
anything worse than reading from a different table.  I do lack
imagination for creating attacks, though.

So my inclination would be to apply this to master only.

-- 
Álvaro Herrera         PostgreSQL Developer  —  https://www.EnterpriseDB.com/
"The Gord often wonders why people threaten never to come back after they've
been told never to return" (www.actsofgord.com)



pgsql-hackers by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: XTS cipher mode for cluster file encryption
Next
From: Tomas Vondra
Date:
Subject: Re: XTS cipher mode for cluster file encryption