Improve consistency of error reporting in GUC assign_hook routines. Some
were reporting ERROR for interactive assignments and LOG for other cases,
some were saying nothing for non-interactive cases, and a few did yet other
things. Make them use a new function GUC_complaint_elevel() to establish
a reasonably uniform policy about how to report. There are still a few
edge cases such as assign_search_path(), but it's much better than before.
Per gripe from Devrim Gunduz and subsequent discussion.
As noted by Alvaro, it'd be better to fold these custom messages into the
standard "invalid parameter value" complaint from guc.c, perhaps as the DETAIL
field. However that will require more redesign than seems prudent for 8.3.
This is a relatively safe, low-impact change that we can afford to risk now.
tablespace.c (r1.51 -> r1.52)
variable.c (r1.122 -> r1.123)
postgres.c (r1.539 -> r1.540)
README (r1.7 -> r1.8)
guc.c (r1.427 -> r1.428)
guc.h (r1.88 -> r1.89)
pgsql-committers by date
|Next:||From: Peter Eisentraut||Date: 2007-12-28 11:13:55|
|Subject: pgsql: Update required TeX settings|
|Previous:||From: Tom Lane||Date: 2007-12-27 18:28:58|
|Subject: pgsql: Disallow digits and lower-case ASCII letters as the delimiter in |