| От | Tom Lane |
|---|---|
| Тема | Re: Tranactions and viewing updated data |
| Дата | |
| Msg-id | 16859.1128606471@sss.pgh.pa.us обсуждение |
| Ответ на | Tranactions and viewing updated data (Steve Tucknott <steve@retsol.co.uk>) |
| Список | pgsql-novice |
Steve Tucknott <steve@retsol.co.uk> writes:
> I can see from a ps statement that there is an UPDATE statement running,
> but is there anyway of seeing how far through the update it is?
You could use contrib/pgstattuple to determine how many dead tuples
there are in the table. It looks to me like pgstattuple will count rows
emitted by a still-in-progress UPDATE as dead rows, so what you want to
check is how fast that number is rising. (This is relatively expensive,
since pgstattuple has to scan the whole table for itself, but if you're
trying to figure out whether you might end up waiting for weeks, it's
worth it ...)
regards, tom lane
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера