pgsql: Only WAL-log the modified portion in an UPDATE, if possible.
В списке pgsql-committers по дате отправления:
| От | Heikki Linnakangas |
|---|---|
| Тема | pgsql: Only WAL-log the modified portion in an UPDATE, if possible. |
| Дата | |
| Msg-id | E1WNqjM-0003cz-EL@gemulon.postgresql.org обсуждение исходный текст |
| Ответы |
Re: pgsql: Only WAL-log the modified portion in an
UPDATE, if possible.
|
| Список | pgsql-committers |
Only WAL-log the modified portion in an UPDATE, if possible. When a row is updated, and the new tuple version is put on the same page as the old one, only WAL-log the part of the new tuple that's not identical to the old. This saves significantly on the amount of WAL that needs to be written, in the common case that most fields are not modified. Amit Kapila, with a lot of back and forth with me, Robert Haas, and others. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/a3115f0d9ec1ac93b82156535dc00b10172a4fe7 Modified Files -------------- src/backend/access/heap/heapam.c | 307 +++++++++++++++++++++++++++++-------- src/backend/access/transam/xlog.c | 23 +++ src/include/access/heapam_xlog.h | 19 ++- src/include/access/xlog.h | 1 + 4 files changed, 285 insertions(+), 65 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера