# 43. PL/pgSQL - SQL Procedural Language

- [43.1. Overview](https://docs.postgresql.tw/16/server-programming/pl-pgsql-sql-procedural-language/overview.md)
- [43.2. Structure of PL/pgSQL](https://docs.postgresql.tw/16/server-programming/pl-pgsql-sql-procedural-language/structure-of-pl-pgsql.md)
- [43.3. Declarations](https://docs.postgresql.tw/16/server-programming/pl-pgsql-sql-procedural-language/declarations.md)
- [43.4. Expressions](https://docs.postgresql.tw/16/server-programming/pl-pgsql-sql-procedural-language/expressions.md)
- [43.5. 基本語法](https://docs.postgresql.tw/16/server-programming/pl-pgsql-sql-procedural-language/basic-statements.md)
- [43.6. Control Structures](https://docs.postgresql.tw/16/server-programming/pl-pgsql-sql-procedural-language/control-structures.md)
- [43.7. Cursors](https://docs.postgresql.tw/16/server-programming/pl-pgsql-sql-procedural-language/43.7.-cursors.md)
- [43.8. Transaction Management](https://docs.postgresql.tw/16/server-programming/pl-pgsql-sql-procedural-language/43.8.-transaction-management.md)
- [43.9. Errors and Messages](https://docs.postgresql.tw/16/server-programming/pl-pgsql-sql-procedural-language/43.9.-errors-and-messages.md)
- [43.10. Trigger Functions](https://docs.postgresql.tw/16/server-programming/pl-pgsql-sql-procedural-language/43.10.-trigger-functions.md)
- [43.11. PL/pgSQL under the Hood](https://docs.postgresql.tw/16/server-programming/pl-pgsql-sql-procedural-language/43.11.-pl-pgsql-under-the-hood.md)
- [43.12. Tips for Developing in PL/pgSQL](https://docs.postgresql.tw/16/server-programming/pl-pgsql-sql-procedural-language/43.12.-tips-for-developing-in-pl-pgsql.md)
- [43.13. Porting from Oracle PL/SQL](https://docs.postgresql.tw/16/server-programming/pl-pgsql-sql-procedural-language/43.13.-porting-from-oracle-pl-sql.md)


---

# 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://docs.postgresql.tw/16/server-programming/pl-pgsql-sql-procedural-language.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.
