Re: Add Information during standby recovery conflicts - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Add Information during standby recovery conflicts
Date
Msg-id 20201004141034.GA6361@alvherre.pgsql
Whole thread Raw
In response to Re: Add Information during standby recovery conflicts  ("Drouvot, Bertrand" <bdrouvot@amazon.com>)
Responses Re: Add Information during standby recovery conflicts
List pgsql-hackers
> +extern const char *get_procsignal_reason_desc(ProcSignalReason reason)
> +    {
> +        const char *reasonDesc = "unknown reason";
> +
> +        switch (reason)
> +        {
> +            case PROCSIG_RECOVERY_CONFLICT_BUFFERPIN:
> +                reasonDesc = "buffer pin";
> +                break;

It doesn't work to construct sentences from pieces, for translatability
reasons.  Maybe you can return the whole errmsg sentence from this
routine instead.




pgsql-hackers by date:

Previous
From: "Drouvot, Bertrand"
Date:
Subject: Re: Add Information during standby recovery conflicts
Next
From: Tom Lane
Date:
Subject: Buglets in equivclass.c