Re: [GENERAL] Querying dead rows - Mailing list pgsql-general

From Albe Laurenz
Subject Re: [GENERAL] Querying dead rows
Date
Msg-id A737B7A37273E048B164557ADEF4A58B539C4EF7@ntex2010i.host.magwien.gv.at
Whole thread Raw
In response to [GENERAL] Querying dead rows  (Rakesh Kumar <rakeshkumar464@outlook.com>)
List pgsql-general
Rakesh Kumar wrote:
> Is there a way to query dead rows (that is, rows which are dead and still not cleaned up by Vacuum)
> using SQL.  I am asking this just as an academical question.

Sort of.

You can use heap_page_item_attrs() from the pageinspect contrib module to get at the
data, but you will only see the binary representation.

If your question is motivated by security concerns, you cannot do this unless you
are a superuser.

Yours,
Laurenz Albe

pgsql-general by date:

Previous
From: Tom DalPozzo
Date:
Subject: [GENERAL] checkpoint clarifications needed
Next
From: Adrian Klaver
Date:
Subject: Re: [GENERAL] checkpoint clarifications needed