Re: BUG #19686: Rolling back SET TABLESPACE

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alexandre Felipe <o(dot)alexandre(dot)felipe(at)gmail(dot)com>
Cc: Michael Paquier <michael(at)paquier(dot)xyz>, Andres Freund <andres(at)anarazel(dot)de>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: BUG #19686: Rolling back SET TABLESPACE
Date: 2026-09-30 13:40:21
Message-ID: 769661.1790775621@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Alexandre Felipe <o(dot)alexandre(dot)felipe(at)gmail(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2026-09-30 13:45:28 Re: Allow table AMs to define their own reloptions
Previous Message ZizhuanLiu X-MAN 2026-09-30 13:34:24 Re: Optimize MCV stats for sortable types and utilize sorted-order properties