Re: ERROR: tablespace "archive2" is not empty

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: ERROR: tablespace "archive2" is not empty
Дата
Msg-id 56250657.509@aklaver.com
обсуждение исходный текст
Ответ на Re: ERROR: tablespace "archive2" is not empty  (Josip Rodin <joy+pgsql@entuzijast.net>)
Список pgsql-general
On 10/19/2015 07:56 AM, Josip Rodin wrote:
> On Mon, Oct 19, 2015 at 07:38:32AM -0700, Adrian Klaver wrote:
>> What happens if you do?:
>>
>> select oid, * from pg_tablespace ;
>
> mydb=> select oid, * from pg_tablespace where spcname = 'archive2';
>     oid   | spcname  | spcowner |     spclocation      | spcacl | spcoptions
> ---------+----------+----------+----------------------+--------+------------
>   7849107 | archive2 |       10 | /media/archive2/psql |        |
> (1 row)
>
>> select * from pg_class where reltablespace = <archive2 oid>;
>
> mydb=> select * from pg_class where reltablespace = 7849107;
>   relname | relnamespace | reltype | reloftype | relowner | relam | relfilenode | reltablespace | relpages |
reltuples| reltoastrelid | reltoastidxid | relhasindex | relisshared | relpersistence | relkind | relnatts | relchecks
|relhasoids | relhaspkey | relhasrules | relhastriggers | relhassubclass | relfrozenxid | relacl | reloptions 
>
---------+--------------+---------+-----------+----------+-------+-------------+---------------+----------+-----------+---------------+---------------+-------------+-------------+----------------+---------+----------+-----------+------------+------------+-------------+----------------+----------------+--------------+--------+------------
> (0 rows)
>
> It's there, but it's not there-there :)
>

I think the important part is that:

/media/archive2/psql

is not the same as:

/media/ssd/archive2/postgresql

from your first post.


--
Adrian Klaver
adrian.klaver@aklaver.com


В списке pgsql-general по дате отправления:

Предыдущее
От: Josip Rodin
Дата:
Сообщение: Re: ERROR: tablespace "archive2" is not empty
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: ERROR: tablespace "archive2" is not empty