pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Sabyasachi Mukherjee <mukherjee.sabyasachi@outlook.com>
To: pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>
Subject: Re: Observation with Postgres table size
Date: Fri, 10 May 2024 16:01:03 +0200
Message-ID: <af12004ceb46afee9d7787946fe11c8d2f0fb3a5.camel@cybertec.at> (raw)
In-Reply-To: <DB4PR10MB7469DCC3427E61FEEE2F8D6F8CE72@DB4PR10MB7469.EURPRD10.PROD.OUTLOOK.COM>
References: <DB4PR10MB7469DCC3427E61FEEE2F8D6F8CE72@DB4PR10MB7469.EURPRD10.PROD.OUTLOOK.COM>

On Fri, 2024-05-10 at 13:57 +0000, Sabyasachi Mukherjee wrote:
> I am having an issue with the size of a Postgres DB table.
> The table have 17 columns. Out of them 5 jsonb columns. The table had 470000 rows when I checked from DBBeaver it showed the table size 34GB. After I deleted many rows from the table - it has currently 27038 rows. But the size of the table still shows 34GB.
> I was expecting the size of the DB table to be reduced.
> I event restarted the PG DB server service.
> I am using Postgres v16 .
> Can any body please advise, how to reduce the size of the table?

VACUUM (FULL) tablename;

Yours,
Laurenz Albe





view thread (5+ messages)  latest in thread

Message-ID: <af12004ceb46afee9d7787946fe11c8d2f0fb3a5.camel@cybertec.at>
Permalink:  ../af12004ceb46afee9d7787946fe11c8d2f0fb3a5.camel@cybertec.at/
Also on:    postgresql.org/message-id/af12004ceb46afee9d7787946fe11c8d2f0fb3a5.camel@cybertec.at

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: laurenz.albe@cybertec.at, mukherjee.sabyasachi@outlook.com, pgsql-admin@lists.postgresql.org
  Subject: Re: Observation with Postgres table size
  In-Reply-To: <af12004ceb46afee9d7787946fe11c8d2f0fb3a5.camel@cybertec.at>

* 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