From: Tom Lane <tgl@sss.pgh.pa.us>
To: Phil Endecott <spam_from_pgsql_list@chezphil.org>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Why can't I drop a tablespace?
Date: Mon, 12 Jul 2021 11:13:04 -0400
Message-ID: <2949871.1626102784@sss.pgh.pa.us> (raw)
In-Reply-To: <1626097395360@dmwebmail.dmwebmail.chezphil.org>
References: <d42b0363137266ba66d80af42ba29cd120379a85.camel@cybertec.at>
<1626097395360@dmwebmail.dmwebmail.chezphil.org>
"Phil Endecott" <spam_from_pgsql_list@chezphil.org> writes:
> Thanks Laurenz. I was looking at the source for "alter table set
> tablespace" yesterday trying to work out what is supposed to happen.
> There is a comment at tablecmds.c line 3989: "Thanks to the magic of
> MVCC, an error anywhere along the way rolls back the whole operation;
> we don't have to do anything special to clean up." But I guess that
> creating an entirely new file on a different filesystem is an
> exception to that.
No, but PANIC'ing during commit is :-(. Ordinarily the files created by a
failed transaction would be removed during transaction cleanup, but we
did not reach that code. So these were left behind, but the table's
original files in the original tablespace should be undamaged.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, spam_from_pgsql_list@chezphil.org
Subject: Re: Why can't I drop a tablespace?
In-Reply-To: <2949871.1626102784@sss.pgh.pa.us>
References: <d42b0363137266ba66d80af42ba29cd120379a85.camel@cybertec.at> <1626097395360@dmwebmail.dmwebmail.chezphil.org> <2949871.1626102784@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox