Skip to content

Why didn't process of cleaning come to 100% ? #58

@Eliss-good

Description

@Eliss-good

Hi!
I've just encountered sometimes that process of pg_compacttable was stoped so much early than it must be.

Example:
Lunch command - pgcompacttable -h XXXX -p 6432 --dbname XXXX -f --delay-ratio=0 --password XXXX -u postgres
Capacity disk of database ~ 1000Gb

Description: process was stopped on 12% of progress and it did't continue its work, additional I checked existing connections of pg_compact in Postgres server and I didn't find active, sleep and etc processes, so I suppose that something completed this process, but I don't know why it did happen

Last logs:
[Tue Apr 22 16:47:48 2025] () Reindex forced: public.XXXX, initial size 296651 pages(2.263GB), has been reduced by 32% (757.062MB), duration 50 seconds. [Tue Apr 22 16:48:43 2025] ) Reindex forced: public.XXXXX, initial size 296679 pages(2.263GB), has been reduced by 32% (757.281MB), duration 54 seconds. [Tue Apr 22 16:48:43 2025] () Processing results: 1517860 pages left (1962402 pages including toasts and indexes), size reduced by -24.000KB (1.572GB including toasts and indexes) in total. [Tue Apr 22 17:01:14 2025] () Statistics: 3442922 pages (8066880 pages including toasts and indexes), it is expected that ~0.290% (9917 pages) can be compacted with the estimated space saving being 77.483MB. [Tue Apr 22 17:01:14 2025] () Processing forced. [Tue Apr 22 17:02:15 2025] () Progress: 12%, 1245 pages completed.

Questions:

  1. How can I expend level of log?
  2. Is it connected that I have a large table ?
  3. Is it connected that I became to use param - "delay-ratio=0" ?
  4. Did anybody encounter the same problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions