Make cast functions to type money error safe
Peter Eisentraut <peter@eisentraut.org>
Author:
Peter Eisentraut <peter@eisentraut.org>
Date: 2026-03-30T08:10:56Z
Releases:
19 (unreleased)
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.universality@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/CADkLM%3Dfv1JfY4Ufa-jcwwNbjQixNViskQ8jZu3Tz_p656i_4hQ%40mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/cash.c | modified | +19 −9 |
Discussion
- CAST(... ON DEFAULT) - WIP build on top of Error-Safe User Functions 94 messages · 2022-12-19 → 2026-07-07