Re: Ways to check the status of a long-running transaction

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: Ways to check the status of a long-running transaction
Дата
Msg-id 87llaopujb.fsf@stark.xeocode.com
обсуждение исходный текст
Ответ на Ways to check the status of a long-running transaction  ("Jim C. Nasby" <decibel@decibel.org>)
Список pgsql-general
"Jim C. Nasby" <decibel@decibel.org> writes:

> I recall this being discussed before, but I couldn't manage to find it
> in the archives.
>
> Is there any way to see how many rows a running transaction has written?
> vacuum analyze verbose only reports visible rows.

Not AFAIK. In the past I've done ls -l and then divided by the average row
size. But that required some guesswork and depended on the fact that I was
building the table from scratch.

I think there's a tool to dump the raw table data which might be handy if you
know the table didn't have a lot of dead tuples in it.

It would be *really* handy to have a working dirty read isolation level that
allowed other sessions to read uncommitted data.

--
greg

В списке pgsql-general по дате отправления:

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: Unique Index
Следующее
От: Cesar Schneider
Дата:
Сообщение: Re: pg_restore