pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Why can't I drop a tablespace?
Date: Sat, 10 Jul 2021 11:13:23 -0500
Message-ID: <ec1116c6-c0b4-fc8d-6b74-da853ea615d5@gmail.com> (raw)
In-Reply-To: <1625931781020@dmwebmail.dmwebmail.chezphil.org>
References: <1625857495692@dmwebmail.dmwebmail.chezphil.org>
	<1625931781020@dmwebmail.dmwebmail.chezphil.org>

On 7/10/21 10:43 AM, Phil Endecott wrote:
> Phil Endecott wrote:
>> Yesterday I had a disk-nearly-full problem, and decided to try to resolve 
>> it by moving one large table to a spare disk in a new tablespace:
>>
>> =# create tablespace tempspace location "/db_temp";
>> =# alter table requests set tablespace tempspace;
[snip]
> - Is my idea that these files should have been deleted but weren't
> during the disk-full panic plausible?
>
> - If I do move them away, what will Postgres do if it tries to access
> them and finds they are missing? Is it well-behaved in this case?
>
> - If I move them away, I would try to exercise the database (e.g.
> do variants of "select sum(column1) from table") in some way to make
> sure that it is all functioning. Any suggestions about how best to do
> this?

I'd shut down postgres, rename those files, and then analyzing the relevant 
tables after startup.  Probably also run amcheck against the relevant 
tables' indices.

https://access.crunchydata.com/documentation/amcheck-next/1.5/#interface

-- 
Angular momentum makes the world go 'round.





view thread (7+ messages)  latest in thread

Message-ID: <ec1116c6-c0b4-fc8d-6b74-da853ea615d5@gmail.com>
Permalink:  ../ec1116c6-c0b4-fc8d-6b74-da853ea615d5@gmail.com/
Also on:    postgresql.org/message-id/ec1116c6-c0b4-fc8d-6b74-da853ea615d5@gmail.com

 · 

reply

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: ronljohnsonjr@gmail.com
  Subject: Re: Why can't I drop a tablespace?
  In-Reply-To: <ec1116c6-c0b4-fc8d-6b74-da853ea615d5@gmail.com>
  References: <1625857495692@dmwebmail.dmwebmail.chezphil.org> <1625931781020@dmwebmail.dmwebmail.chezphil.org> <ec1116c6-c0b4-fc8d-6b74-da853ea615d5@gmail.com>

* 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