Adjust errorcode in background worker code

From: Amit Langote <Langote_Amit_f8(at)lab(dot)ntt(dot)co(dot)jp>
To: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Adjust errorcode in background worker code
Date: 2015-06-29 02:36:51
Message-ID: 5590AF43.3090202@lab.ntt.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
pgut_readopt-error-level.patch text/x-diff 1.1 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Langote 2015-06-29 02:43:41 Re: Adjust errorcode in background worker code
Previous Message Robert Haas 2015-06-29 02:07:56 Re: anole: assorted stability problems