• Robert Haas's avatar
    Add a generic command progress reporting facility. · b6fb6471
    Robert Haas authored
    Using this facility, any utility command can report the target relation
    upon which it is operating, if there is one, and up to 10 64-bit
    counters; the intent of this is that users should be able to figure out
    what a utility command is doing without having to resort to ugly hacks
    like attaching strace to a backend.
    
    As a demonstration, this adds very crude reporting to lazy vacuum; we
    just report the target relation and nothing else.  A forthcoming patch
    will make VACUUM report a bunch of additional data that will make this
    much more interesting.  But this gets the basic framework in place.
    
    Vinayak Pokale, Rahila Syed, Amit Langote, Robert Haas, reviewed by
    Kyotaro Horiguchi, Jim Nasby, Thom Brown, Masahiko Sawada, Fujii Masao,
    and Masanori Oyama.
    b6fb6471
vacuumlazy.c 60.8 KB