Make cast function from circle to polygon error safe
Peter Eisentraut <peter@eisentraut.org>
Author:
Peter Eisentraut <peter@eisentraut.org>
Date: 2026-03-30T07:11:08Z
Releases:
19 (unreleased)
Make cast function from circle to polygon error safe Previously, the function casting type circle to type polygon could not be made error safe, because it is an SQL language function. This refactors it as a C/internal function, by sharing code with the C/internal function that the SQL function previously wrapped, and soft error support is added. Author: jian he <jian.universality@gmail.com> Reviewed-by: Amul Sul <sulamul@gmail.com> Reviewed-by: Corey Huinker <corey.huinker@gmail.com> Discussion: Discussion: https://www.postgresql.org/message-id/flat/CADkLM%3Dfv1JfY4Ufa-jcwwNbjQixNViskQ8jZu3Tz_p656i_4hQ%40mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/catalog/system_functions.sql | modified | +0 −6 |
| src/backend/utils/adt/geo_ops.c | modified | +46 −13 |
| src/include/catalog/catversion.h | modified | +1 −1 |
| src/include/catalog/pg_proc.dat | modified | +2 −2 |
Discussion
- CAST(... ON DEFAULT) - WIP build on top of Error-Safe User Functions 94 messages · 2022-12-19 → 2026-07-07