Re: BUG #19686: Rolling back SET TABLESPACE - Mailing list pgsql-hackers

From Tom Lane
Subject Re: BUG #19686: Rolling back SET TABLESPACE
Date
Msg-id 769661.1790775621@sss.pgh.pa.us
Whole thread
In response to Re: BUG #19686: Rolling back SET TABLESPACE  (Alexandre Felipe <o.alexandre.felipe@gmail.com>)
Responses Re: BUG #19686: Rolling back SET TABLESPACE
List pgsql-hackers
Alexandre Felipe <o.alexandre.felipe@gmail.com> writes:
> What if we simply block modifications to the table in a transaction
> after it moved to a new tablespace?

If we were looking for a quick-n-dirty functionality-losing patch,
we'd just reject ALTER SET TABLESPACE within transaction blocks.
Perhaps that's the right answer for the back branches, but
I'd prefer not to go that way.

It seems to me that there is consensus among the senior hackers
who have looked at this about what to do.  I'm not sure why you
are pushing for a more complex and more risky answer.

            regards, tom lane



pgsql-hackers by date:

Previous
From: "ZizhuanLiu X-MAN"
Date:
Subject: Re: Optimize MCV stats for sortable types and utilize sorted-order properties
Next
From: Andrew Dunstan
Date:
Subject: Re: Allow table AMs to define their own reloptions