Re: Adjust errorcode in background worker code - Mailing list pgsql-hackers

From Amit Langote
Subject Re: Adjust errorcode in background worker code
Date
Msg-id 5590B0DD.3020601@lab.ntt.co.jp
Whole thread Raw
In response to Adjust errorcode in background worker code  (Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>)
Responses Re: Adjust errorcode in background worker code  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
On 2015-06-29 AM 11:36, Amit Langote wrote:
> Hi,
>
> How about the attached that adjusts errorcode for the error related to
> checking the flag bgw_flags in BackgroundWorkerInitializeConnection*()
> functions so that it matches the treatment in SanityCheckBackgroundWorker()?
>
> s/ERRCODE_PROGRAM_LIMIT_EXCEEDED/ERRCODE_INVALID_PARAMETER_VALUE/g
>
> There is already a "/* XXX is this the right errcode? */" there.
>

Oops, a wrong thing got attached.

Please find correct one attached this time.

Thanks,
Amit

Attachment

pgsql-hackers by date:

Previous
From: Amit Langote
Date:
Subject: Adjust errorcode in background worker code
Next
From: Pavel Stehule
Date:
Subject: Re: proposal: condition blocks in psql