| От | Tom Lane |
|---|---|
| Тема | Re: slow, long-running 'commit prepared' |
| Дата | |
| Msg-id | 7080.1227707566@sss.pgh.pa.us обсуждение |
| Ответ на | slow, long-running 'commit prepared' ("John Smith" <sodgodofall@gmail.com>) |
| Ответы |
Re: slow, long-running 'commit prepared'
|
| Список | pgsql-general |
"John Smith" <sodgodofall@gmail.com> writes:
> I have a pg instance with 700GB of data, almost all of which is in one
> table. When I PREPARE and then COMMIT PREPARED a transaction that
> reads & writes to a large fraction of that data (about 10%,
> effectively randomly chosen rows and so every file in the table is
> modified), the COMMIT PREPARED sometimes takes a very long time--2 to
> 5 minutes. Is this expected?
It's impossible to say without knowing more about what the transaction
did. But one piece of data you could check easily is the size of the
2PC state file (look into $PGDATA/pg_twophase/).
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера