Re: pg_dump

From: raghu ram <raghuchennuru(at)gmail(dot)com>
To: aaronenabs <aaronenabs(at)btconnect(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: pg_dump
Date: 2011-04-05 17:18:40
Message-ID: BANLkTik+2Kf+4CEBVHY+OZ7_ckv-4+vR=A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Mon, Apr 4, 2011 at 8:02 PM, aaronenabs <aaronenabs(at)btconnect(dot)com> wrote:

> Hi all,
>
> I wanted to find out if i can use pg_dump to display dead tuples/rows.
>
>

pg_dump utility does not display dead/live tuples count in a particular
tables.

You can identify the dead/live tuples count in a table using below SQL
statement::

postgres=# select relname,schemaname,n_live_tup,n_dead_tup from
pg_stat_user_tables;
relname | schemaname | n_live_tup | n_dead_tup
---------+------------+------------+------------
test3 | public | 10 | 7

--Raghu Ram

> Cheers
> Aaron
>
> --
> View this message in context:
> http://postgresql.1045698.n5.nabble.com/pg-dump-tp4281853p4281853.html
> Sent from the PostgreSQL - novice mailing list archive at Nabble.com.
>
> --
> Sent via pgsql-novice mailing list (pgsql-novice(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-novice
>

In response to

  • pg_dump at 2011-04-04 14:32:28 from aaronenabs

Browse pgsql-novice by date

  From Date Subject
Next Message java4dev 2011-04-05 18:26:12 Re: how to call stored procedures with output parameters
Previous Message slapo 2011-04-05 08:14:25 Re: PostgreSQL 9.0.3 cannot choose the best candidate function with type casts