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

From Amit Langote
Subject Adjust errorcode in background worker code
Date
Msg-id 5590AF43.3090202@lab.ntt.co.jp
Whole thread Raw
Responses Re: Adjust errorcode in background worker code  (Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>)
List pgsql-hackers
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.

Thanks,
Amit

Attachment

pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: anole: assorted stability problems
Next
From: Amit Langote
Date:
Subject: Re: Adjust errorcode in background worker code