VY
и обязательно ли sql бэкапы делать? или можно и бинарные?
- завтра 13.2 выходит, я бы на неё сразу прыгал
- можно воспользоваться
pg_upgrade
— есть и в доке, и видео+статьи доступныSize: a a a
VY
pg_upgrade
— есть и в доке, и видео+статьи доступныСХ
pg_upgrade
— есть и в доке, и видео+статьи доступныYS
VY
YS
AD
МШ
S
S
YS
AV
-[ RECORD 4 ]+---------------
databasename | zabbix
schemaname | public
tablename | history
can_estimate | t
est_rows | 3093980000
t_pct_bloat | 48
table_bloat | 140917.41
table_mb | 294726.766
index_name | history_1
i_bloat_pct | 75
index_bloat | 253000
index_mb | 336219.516
NOTICE Processing results: 37725024 pages left (80778176 pages including toasts and indexes), size reduced by 0 bytes (-24 kB including toasts and indexes) in total, approximately 51.85% (19559540 pages) that is 149 GB more were expected to be compacted after this attempt.
WARNING Processing incomplete: 1 tables left.
NOTICE Processing results: size reduced by 0 bytes (-24 kB including toasts and indexes) in total.
NOTICE Retrying to process, attempt: 2 from 10, 1 databases left.
INFO Vacuum initial: 37725024 pages left, duration 414.033 seconds.
NOTICE Statistics: 37725024 pages (80778176 pages including toasts and indexes), approximately 51.85% (19558898 pages) can be compacted reducing the size by 149 GB.
МШ
YS
МШ
МШ
YS
-[ RECORD 4 ]+---------------
databasename | zabbix
schemaname | public
tablename | history
can_estimate | t
est_rows | 3093980000
t_pct_bloat | 48
table_bloat | 140917.41
table_mb | 294726.766
index_name | history_1
i_bloat_pct | 75
index_bloat | 253000
index_mb | 336219.516
NOTICE Processing results: 37725024 pages left (80778176 pages including toasts and indexes), size reduced by 0 bytes (-24 kB including toasts and indexes) in total, approximately 51.85% (19559540 pages) that is 149 GB more were expected to be compacted after this attempt.
WARNING Processing incomplete: 1 tables left.
NOTICE Processing results: size reduced by 0 bytes (-24 kB including toasts and indexes) in total.
NOTICE Retrying to process, attempt: 2 from 10, 1 databases left.
INFO Vacuum initial: 37725024 pages left, duration 414.033 seconds.
NOTICE Statistics: 37725024 pages (80778176 pages including toasts and indexes), approximately 51.85% (19558898 pages) can be compacted reducing the size by 149 GB.
AV
INFO: vacuuming "public.history"
INFO: index "history_1" now contains 3108546446 row versions in 43036098 pages
DETAIL: 0 index row versions were removed.
20163592 index pages have been deleted, 20163592 are currently reusable.
CPU 234.04s/84.66u sec elapsed 446.86 sec.
INFO: "history": found 0 removable, 1226491 nonremovable row versions in 7951 out of 37725026 pages
DETAIL: 0 dead row versions cannot be removed yet.
There were 19502 unused item pointers.
Skipped 0 pages due to buffer pins.
0 pages are entirely empty.
CPU 234.14s/85.59u sec elapsed 447.89 sec.
-[ RECORD 1 ]------+--------------
locktype | advisory
database | 30862
relation |
page |
tuple |
virtualxid |
transactionid |
classid | 1259
objid | 31247
objsubid | 2
virtualtransaction | 246/0
pid | 23661
mode | ExclusiveLock
granted | t
fastpath | f
YS
INFO: vacuuming "public.history"
INFO: index "history_1" now contains 3108546446 row versions in 43036098 pages
DETAIL: 0 index row versions were removed.
20163592 index pages have been deleted, 20163592 are currently reusable.
CPU 234.04s/84.66u sec elapsed 446.86 sec.
INFO: "history": found 0 removable, 1226491 nonremovable row versions in 7951 out of 37725026 pages
DETAIL: 0 dead row versions cannot be removed yet.
There were 19502 unused item pointers.
Skipped 0 pages due to buffer pins.
0 pages are entirely empty.
CPU 234.14s/85.59u sec elapsed 447.89 sec.
-[ RECORD 1 ]------+--------------
locktype | advisory
database | 30862
relation |
page |
tuple |
virtualxid |
transactionid |
classid | 1259
objid | 31247
objsubid | 2
virtualtransaction | 246/0
pid | 23661
mode | ExclusiveLock
granted | t
fastpath | f
ВК
ВК