Re: Lost my tablespace

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: tel medola <tel(dot)medola(at)gmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Lost my tablespace
Date: 2017-05-29 14:57:07
Message-ID: 97bd2743-46c3-32c4-7b3f-62def38aea65@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On 05/29/2017 07:39 AM, tel medola wrote:
> I have a serious problem in my database. I have a table, divided into 4
>
>
> Postgres version?
>
> /PostgreSQL 9.3.5, compiled by Visual C++ build 1600, 64-bit/
>

>
> What was the command?

I meant the command you used to create the inheritance structure.

>
> If you execute the SELECT command pg_size_pretty (pg_database_size
> ('database_name')), the result comes complete, as if the tables were
> filled normally.
>
>
> What does
> /2848 GB/

Can you provide the parent and child table sizes?

>
> select * from pg_tablespace;

My mistake I should have asked for:

select oid, * from pg_tablespace;

Please run the command as above.

>
> show?
> /Yes, all tablespaces/
> /disco01/
> /disco02/
> /disco03/
> /disco04/
> /disco05
> /
>
> What does $PGDATA/pg_tblspc show?
> /this shortcouts:/
>
> /2193601 -> E:/
> /5205910 -> G:/
> /7245095 -> H:/
> /9277962 -> I:/
> /11242858-> J: (new)/

What do you mean by new?

>
>
> Thanks.
>
>
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2017-05-29 15:42:59 Re: Lost my tablespace
Previous Message tel medola 2017-05-29 14:39:14 Re: Lost my tablespace