| From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Make cast functions to type money error safe |
| Date: | 2026-03-30 08:11:53 |
| Message-ID: | E1w77iy-0027Zi-1r@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Make cast functions to type money error safe
This converts the cast functions from types integer, bigint, and
numeric to type money to support soft errors.
Note: Casting from type money to type numeric (the other way, function
cash_numeric) is not yet error safe.
Author: jian he <jian(dot)universality(at)gmail(dot)com>
Discussion: https://www.postgresql.org/message-id/flat/CADkLM%3Dfv1JfY4Ufa-jcwwNbjQixNViskQ8jZu3Tz_p656i_4hQ%40mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/b36b95640487b9dc70408e9078c30e80963efccb
Modified Files
--------------
src/backend/utils/adt/cash.c | 28 +++++++++++++++++++---------
1 file changed, 19 insertions(+), 9 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Eisentraut | 2026-03-30 08:18:40 | pgsql: headerscheck: Avoid mutual inclusion of pg_config.h and c.h |
| Previous Message | John Naylor | 2026-03-30 07:40:06 | pgsql: Remove extraneous PGDLLIMPORT |