Re: Progress reporting for pg_verify_checksums

Поиск
Список
Период
Сортировка
От Michael Banck
Тема Re: Progress reporting for pg_verify_checksums
Дата
Msg-id 1550505168.12689.26.camel@credativ.de
обсуждение исходный текст
Ответ на Re: Progress reporting for pg_verify_checksums  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Ответы Re: Progress reporting for pg_verify_checksums  (Bernd Helmle <mailings@oopsware.de>)
Список pgsql-hackers
Hi,

Am Montag, den 18.02.2019, 11:18 -0300 schrieb Alvaro Herrera:
> On 2019-Feb-17, Michael Banck wrote:
> > +    /*
> > +     * As progress status information may be requested, we need to scan the
> > +     * directory tree(s) twice, once to get the idea how much data we need to
> > +     * scan and finally to do the real legwork.
> > +     */
> > +    total_size = scan_directory(DataDir, "global", true);
> > +    total_size += scan_directory(DataDir, "base", true);
> > +    total_size += scan_directory(DataDir, "pg_tblspc", true);
> 
> Surely we know at that point whether this first scan is needed, and we
> can skip it if not?

Yeah - new patch attached.


Michael 

-- 
Michael Banck
Projektleiter / Senior Berater
Tel.: +49 2166 9901-171
Fax:  +49 2166 9901-100
Email: michael.banck@credativ.de

credativ GmbH, HRB Mönchengladbach 12080
USt-ID-Nummer: DE204566209
Trompeterallee 108, 41189 Mönchengladbach
Geschäftsführung: Dr. Michael Meskes, Jörg Folz, Sascha Heuer

Unser Umgang mit personenbezogenen Daten unterliegt
folgenden Bestimmungen: https://www.credativ.de/datenschutz
Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: unconstify equivalent for volatile
Следующее
От: Masahiko Sawada
Дата:
Сообщение: boolean and bool in documentation