From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Restructure soft-error handling in formatting.c. |
Date: | 2022-12-10 01:16:10 |
Message-ID: | [email protected] |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Restructure soft-error handling in formatting.c.
Replace the error trapping scheme introduced in 5bc450629 with our
shiny new errsave/ereturn mechanism. This doesn't have any real
functional impact (although I think that the new coding is able
to report a few more errors softly than v15 did). And I doubt
there's any measurable performance difference either. But this
gets rid of an ad-hoc, one-of-a-kind design in favor of a mechanism
that will be widely used going forward, so it should be a net win
for code readability.
Discussion: https://postgr.es/m/[email protected]
Branch
------
master
Modified Files
--------------
src/backend/utils/adt/formatting.c | 666 ++++++++++++++++------------------
src/backend/utils/adt/jsonpath_exec.c | 12 +-
src/include/utils/formatting.h | 2 +-
3 files changed, 322 insertions(+), 358 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2022-12-10 04:36:37 | pgsql: Fix macro definitions in pgstatfuncs.c |
Previous Message | Tom Lane | 2022-12-09 21:08:06 | pgsql: Convert datetime input functions to use "soft" error reporting. |