# User-Defined Functions

- [User-Defined Functions Overview](https://mariadb.com/docs/server/server-usage/user-defined-functions/user-defined-functions-overview.md): An introduction to User-Defined Functions (UDFs) in MariaDB, explaining how they extend the server's functionality by adding new native-like functions.
- [Creating User-Defined Functions](https://mariadb.com/docs/server/server-usage/user-defined-functions/creating-user-defined-functions.md): A guide for developers on writing UDFs in C/C++, covering the required interface functions, memory allocation, and thread safety.
- [CREATE FUNCTION UDF](https://mariadb.com/docs/server/server-usage/user-defined-functions/create-function-udf.md): Install a user-defined function from a shared library. This command loads an external compiled function into the server for extended capabilities.
- [DROP FUNCTION UDF](https://mariadb.com/docs/server/server-usage/user-defined-functions/drop-function-udf.md): Documentation for the DROP FUNCTION statement, which uninstalls a UDF and removes its entry from the system table.
- [User-Defined Functions Calling Sequences](https://mariadb.com/docs/server/server-usage/user-defined-functions/user-defined-functions-calling-sequences.md): Technical details on the execution flow of UDFs, explaining the sequence in which initialization, processing, and de-initialization functions are called.
- [User-Defined Functions Security](https://mariadb.com/docs/server/server-usage/user-defined-functions/user-defined-functions-security.md): Overview of security measures for UDFs, including file location restrictions, required privileges, and system variable configurations.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mariadb.com/docs/server/server-usage/user-defined-functions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
