]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Make cast function from circle to polygon error safe
authorPeter Eisentraut <peter@eisentraut.org>
Mon, 30 Mar 2026 07:06:27 +0000 (09:06 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Mon, 30 Mar 2026 07:11:08 +0000 (09:11 +0200)
commit26f9012beecf36bcffc5a2081c7e698d3ecf6aa2
tree631106b30f04ade5302bdf05c757e414512ef782
parent2497dac55648e738b643577e807bfd2a3ac4c6e2
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
src/backend/catalog/system_functions.sql
src/backend/utils/adt/geo_ops.c
src/include/catalog/catversion.h
src/include/catalog/pg_proc.dat