postgresql/src/backend/catalog
Peter Eisentraut 26f9012bee 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
2026-03-30 09:11:08 +02:00
..
aclchk.c Allow choosing specific grantors via GRANT/REVOKE ... GRANTED BY. 2026-03-19 11:41:39 -05:00
catalog.c Update copyright for 2026 2026-01-01 13:24:10 -05:00
Catalog.pm Update copyright for 2026 2026-01-01 13:24:10 -05:00
dependency.c SQL Property Graph Queries (SQL/PGQ) 2026-03-16 10:14:18 +01:00
genbki.pl Switch SysCacheIdentifier to a typedef enum 2026-02-18 09:58:38 +09:00
heap.c Avoid name collision with NOT NULL constraints 2026-02-21 12:22:08 +01:00
index.c Add some const qualifiers enabled by typeof_unqual change on copyObject 2026-03-19 06:35:54 +01:00
indexing.c Update copyright for 2026 2026-01-01 13:24:10 -05:00
information_schema.sql SQL Property Graph Queries (SQL/PGQ) 2026-03-16 10:14:18 +01:00
Makefile Update copyright for 2026 2026-01-01 13:24:10 -05:00
meson.build Update copyright for 2026 2026-01-01 13:24:10 -05:00
namespace.c Don't include proc.h in shm_mq.h 2026-02-27 10:53:47 +01:00
objectaccess.c Update copyright for 2026 2026-01-01 13:24:10 -05:00
objectaddress.c SQL Property Graph Queries (SQL/PGQ) 2026-03-16 10:14:18 +01:00
partition.c Update copyright for 2026 2026-01-01 13:24:10 -05:00
pg_aggregate.c Update copyright for 2026 2026-01-01 13:24:10 -05:00
pg_attrdef.c Stop including {brin,gin}_tuple.h in tuplesort.h 2026-01-12 18:09:49 +01:00
pg_cast.c Update copyright for 2026 2026-01-01 13:24:10 -05:00
pg_class.c SQL Property Graph Queries (SQL/PGQ) 2026-03-16 10:14:18 +01:00
pg_collation.c Update copyright for 2026 2026-01-01 13:24:10 -05:00
pg_constraint.c Reject ADD CONSTRAINT NOT NULL if name mismatches existing constraint 2026-02-03 12:33:29 +01:00
pg_conversion.c Update copyright for 2026 2026-01-01 13:24:10 -05:00
pg_db_role_setting.c Update copyright for 2026 2026-01-01 13:24:10 -05:00
pg_depend.c Harden _int_matchsel() against being attached to the wrong operator. 2026-02-09 10:14:22 -05:00
pg_enum.c Update copyright for 2026 2026-01-01 13:24:10 -05:00
pg_inherits.c Don't include storage/lock.h in so many headers 2026-03-24 17:11:12 +01:00
pg_largeobject.c Stop including {brin,gin}_tuple.h in tuplesort.h 2026-01-12 18:09:49 +01:00
pg_namespace.c Update copyright for 2026 2026-01-01 13:24:10 -05:00
pg_operator.c Update copyright for 2026 2026-01-01 13:24:10 -05:00
pg_parameter_acl.c Update copyright for 2026 2026-01-01 13:24:10 -05:00
pg_proc.c Replace pg_mblen() with bounds-checked versions. 2026-02-09 12:44:04 +13:00
pg_publication.c Add support for EXCEPT TABLE in ALTER PUBLICATION. 2026-03-20 11:36:09 +05:30
pg_range.c Record range constructor functions in pg_range 2026-01-22 15:56:29 +01:00
pg_shdepend.c Use fallthrough attribute instead of comment 2026-02-19 08:51:12 +01:00
pg_subscription.c Refactor to remove ForeignServerName(). 2026-03-24 15:20:28 -07:00
pg_tablespace.c Update copyright for 2026 2026-01-01 13:24:10 -05:00
pg_type.c Update copyright for 2026 2026-01-01 13:24:10 -05:00
sql_feature_packages.txt Update SQL features 2023-05-02 10:59:21 +02:00
sql_features.txt SQL Property Graph Queries (SQL/PGQ) 2026-03-16 10:14:18 +01:00
storage.c Update copyright for 2026 2026-01-01 13:24:10 -05:00
system_functions.sql Make cast function from circle to polygon error safe 2026-03-30 09:11:08 +02:00
system_views.sql Add support for lock statistics in pgstats 2026-03-24 15:32:09 +09:00
toasting.c Add all required calls to TupleDescFinalize() 2026-03-16 11:45:49 +13:00