From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | Neil Conway <nconway(at)klamath(dot)dyndns(dot)org>, pgsql-patches(at)postgresql(dot)org |
Subject: | Re: several minor cleanups |
Date: | 2002-06-25 18:11:25 |
Message-ID: | 9587.1025028685@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-patches |
Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
>> While I don't object to renaming the routines internally, I do have
>> strong doubts about changing the externally-visible error messages.
>> I'd suggest undoing the particular changes that pass routine names
>> to ExecConstraints, so that the error messages stay the same. We
>> can clean it up at some time *after* we offer error codes that clients
>> can test.
> Well, with no error codes on the horizon, and schemas appearing to break
> lots of stuff, I don't see the need to keep error messages consistent.
Schemas are NOT breaking clients that check to see which data-related
condition caused an insert/update to fail. I think it's important to
recognize the distinction between query-related errors (eg you
misspelled a column name) and data-related errors (the supplied value
failed a constraint check), because I believe client logic is much more
likely to contain pre-coded recovery behavior for specific types of
data errors.
Also, in places where we have changed error messages because of schemas,
there is a good feature-related reason to do so. This patch is adding
zero benefit as far as users are concerned, so I think its cost/benefit
ratio is too high to justify to users.
> Heck, the error messages says:
> elog(WARNING, "ExecReplace: replace can't run without transaction");
> and we haven't had replace since 1994 or so.
Yeah, and why do you think it hasn't been changed? Exactly this
consideration. I would probably have fixed those messages long ago
if I hadn't been worried about breaking clients.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2002-06-25 18:22:43 | Re: several minor cleanups |
Previous Message | Bruce Momjian | 2002-06-25 18:09:54 | Re: Page access |