Re: ERROR: tablespace "archive2" is not empty - Mailing list pgsql-general

From Josip Rodin
Subject Re: ERROR: tablespace "archive2" is not empty
Date
Msg-id 20151019182520.GA6498@entuzijast.net
Whole thread Raw
In response to Re: ERROR: tablespace "archive2" is not empty  (Adrian Klaver <adrian.klaver@aklaver.com>)
List pgsql-general
On Mon, Oct 19, 2015 at 11:15:08AM -0700, Adrian Klaver wrote:
> >Sorry, that's another typo. It's the latter. The symlink is indeed pointing to the 5 GB of leftovers.
>
> This:
>
> % sudo find /media/ssd/archive2/ -type f -ls
> 36962439 393940 -rw-------   1 postgres postgres 403390464 Jun 27
> 2014 /media/ssd/archive2
>
> is a typo or is there another symlink involved?
>
> So, is there anything at /media/archive2/psql?

This time I'll just paste command output to make sure it's verbatim :)

% sudo ls -la /media/ssd/postgresql/9.1/main/pg_tblspc/7849107
lrwxrwxrwx 1 postgres postgres 30 Sep 30  2014 /media/ssd/postgresql/9.1/main/pg_tblspc/7849107 ->
/media/ssd/archive2/postgresql

% sudo ls -la $(sudo readlink -f /media/ssd/postgresql/9.1/main/pg_tblspc/7849107)
total 12
drwx------ 3 postgres root     4096 Jun 25  2014 .
drwxr-xr-x 3 root     root     4096 Sep 30  2014 ..
drwx------ 3 postgres postgres 4096 Jun 25  2014 PG_9.1_201105231

% sudo ls -la /media/archive2/psql
ls: cannot access /media/archive2/psql: No such file or directory

> Or more to the point how did spclocation and the symlink get to be
> different?

No idea, I inherited this machine. But like Tom said, spclocation being
wrong is apparently harmless.

--
     2. That which causes joy or happiness.


pgsql-general by date:

Previous
From: Josip Rodin
Date:
Subject: Re: ERROR: tablespace "archive2" is not empty
Next
From: romeo407
Date:
Subject: Are there any major benefits to using point and not real data type