pgsql: Improve the -l (limit) option recently added to contrib/vacuumlo
В списке pgsql-committers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | pgsql: Improve the -l (limit) option recently added to contrib/vacuumlo |
| Дата | |
| Msg-id | E1SA87q-0002Si-0t@gemulon.postgresql.org обсуждение исходный текст |
| Список | pgsql-committers |
Improve the -l (limit) option recently added to contrib/vacuumlo. Instead of just stopping after removing an arbitrary subset of orphaned large objects, commit and start a new transaction after each -l objects. This is just as effective as the original patch at limiting the number of locks used, and it doesn't require doing the OID collection process repeatedly to get everything. Since the option no longer changes the fundamental behavior of vacuumlo, and it avoids a known server-side limitation, enable it by default (with a default limit of 1000 LOs per transaction). In passing, be more careful about properly quoting the names of tables and fields, and do some other cosmetic cleanup. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/64c604898e812aa93c124c666e8709fff1b8dd26 Modified Files -------------- contrib/vacuumlo/vacuumlo.c | 131 +++++++++++++++++++++++++++++++------------ doc/src/sgml/vacuumlo.sgml | 26 +++++---- 2 files changed, 109 insertions(+), 48 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера