How CockroachDB Implements UDFs and SPs
User-defined functions (UDFs) and stored procedures (SPs) are essential components of database systems, allowing users to define complex queries that can be executed with minimal input parameters. CockroachDB supports UDFs and SPs in SQL and PLpg/SQL languages for better performance and reduced errors. The blog post delves into the technical aspects of implementing these features in CockroachDB, including volatility options, routine implementation, handling multiple updates to a single table, and integrating PL/pgSQL with a SQL execution engine. It also discusses future work on increasing compatibility between CockroachDB and Postgres while optimizing efficiency.
Company
Cockroach Labs
Date published
Aug. 27, 2024
Author(s)
Drew Kimball
Word count
2139
Language
English
Hacker News points
None found.