Обсуждение: [GENERAL] Querying dead rows

Поиск
Список
Период
Сортировка

[GENERAL] Querying dead rows

От
Rakesh Kumar
Дата:
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
askingthis just as an academical question. 


Re: [GENERAL] Querying dead rows

От
Stephen Frost
Дата:
* Rakesh Kumar (rakeshkumar464@outlook.com) 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
askingthis just as an academical question. 

CREATE EXTENSION pageinspect;

https://www.postgresql.org/docs/9.6/static/pageinspect.html

Thanks!

Stephen

Вложения

Re: [GENERAL] Querying dead rows

От
Albe Laurenz
Дата:
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