Re: Table seems empty but its size is in gigabytes

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Table seems empty but its size is in gigabytes
Date: 2016-04-12 16:30:09
Message-ID: 570D2291.4050704@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 4/12/2016 9:16 AM, David G. Johnston wrote:
>
> Now my big table statistics shows tuples inserted and its size is
> in order of gigabytes, but a simple SELECT has no rows, is there
> any way to recover the data in this table?
>
>
> ​Do you want to recover the dead data or the space ​that it consumes?
>

to free the disk space, use...

vacuum full tablename;

I don't know how to reclaim tuples that were written but rolled back.

--
john r pierce, recycling bits in santa cruz

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2016-04-12 16:35:56 Re: Table seems empty but its size is in gigabytes
Previous Message David G. Johnston 2016-04-12 16:16:15 Re: Table seems empty but its size is in gigabytes