Re: how to monitor the progress of really large bulk operations?

Поиск
Список
Период
Сортировка
От Mike Sofen
Тема Re: how to monitor the progress of really large bulk operations?
Дата
Msg-id 013b01d21984$9ecf02f0$dc6d08d0$@runbox.com
обсуждение исходный текст
Ответ на Re: how to monitor the progress of really large bulk operations?  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: how to monitor the progress of really large bulk operations?  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-general

From: Pavel Stehule    Sent: Tuesday, September 27, 2016 9:18 PM
2016-09-28 6:13 GMT+02:00 Pavel Stehule <pavel.stehule@gmail.com>:

Hi

2016-09-27 23:03 GMT+02:00 Mike Sofen <msofen@runbox.com>:

Hi gang,

how to view the state of a transaction in flight, seeing how many rows have been read or inserted (possible for a transaction in flight?), memory allocations across the various PG processes, etc.

 

pltoolbox has counter function https://github.com/okbob/pltoolbox/blob/master/utils.c

pavel=# insert into omega2 select (x.xx).* 
           from (select pst.counter(omega,200000, true) xx 
                    from omega
                ) x;
NOTICE:  processed 200000 rows, current value is '(5,8)'
NOTICE:  processed 200000 rows, current value is '(5,8)'

Regards

Pavel

 

 

Pavel - That’s a very interesting function and thanks for sharing your toolbox.  The big question of course, is what is the impact on performance, scalability and stability?  Would it work inside of a stored function that would allow me write out the progress to a tracking table? 

 

Mike

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Database fixed size
Следующее
От: Adir Shaban
Дата:
Сообщение: Re: Database fixed size