aboutsummaryrefslogtreecommitdiff
path: root/src/include/utils
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2022-12-09 20:15:56 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2022-12-09 20:15:56 -0500
commit4dd687502d9eb0b2984c36579c2fcf5283adfa7c (patch)
treeb4150eb444a7b944308c77b6bceef311fc7cd677 /src/include/utils
parentc60488b4748b4316f1c92d62457671046e5c8994 (diff)
downloadpostgresql-4dd687502d9eb0b2984c36579c2fcf5283adfa7c.tar.gz
postgresql-4dd687502d9eb0b2984c36579c2fcf5283adfa7c.zip
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/3bbbb0df-7382-bf87-9737-340ba096e034@postgrespro.ru
Diffstat (limited to 'src/include/utils')
-rw-r--r--src/include/utils/formatting.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/utils/formatting.h b/src/include/utils/formatting.h
index 851e787bfdb..887e22d6f64 100644
--- a/src/include/utils/formatting.h
+++ b/src/include/utils/formatting.h
@@ -28,6 +28,6 @@ extern char *asc_initcap(const char *buff, size_t nbytes);
extern Datum parse_datetime(text *date_txt, text *fmt, Oid collid, bool strict,
Oid *typid, int32 *typmod, int *tz,
- bool *have_error);
+ struct Node *escontext);
#endif