[PATCH]Add a tip to the check mode - Mailing list pgsql-hackers

From Wen Yi
Subject [PATCH]Add a tip to the check mode
Date
Msg-id tencent_A8FDAB49A68A90F171166E30D2982E507508@qq.com
Whole thread Raw
Responses Re: [PATCH]Add a tip to the check mode
List pgsql-hackers
Hi community,
when I learn the source of PostgreSQL, I think it's better to add a tip to the postgres "check mode", this can help the postgres's user when they check the postgres's data directory.

src/backend/bootstrap/bootstrap.c

if (check_only)
    {
        SetProcessingMode(NormalProcessing);
        CheckerModeMain();
        abort();
    }

Instead of

if (check_only)
    {
        SetProcessingMode(NormalProcessing);
        CheckerModeMain();
        printf("PostgreSQL check success, there's no problem\n");
        abort();
    }

Yours,
Wen Yi
Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Support to define custom wait events for extensions
Next
From: Alvaro Herrera
Date:
Subject: Re: unrecognized node type while displaying a Path due to dangling pointer