跳至主要內容

KlustronDB大约 3 分钟

This part is about extending the server functionality with user-defined functions, data types, triggers, etc. These are advanced topics which should probably be approached only after all the other user documentation about PostgreSQL has been understood. Later chapters in this part describe the server-side programming languages available in the PostgreSQL distribution as well as general issues concerning server-side programming languages. It is essential to read at least the earlier sections of Chapter 38 (covering functions) before diving into the material about server-side programming languages.

Table of Contents

38. Extending SQL : 38.1. How Extensibility Works

[38.2. The PostgreSQL Type System](extend-type-system.md)

[38.3. User-defined Functions](xfunc.md)

[38.4. User-defined Procedures](xproc.md)

[38.5. Query Language (SQL) Functions](xfunc-sql.md)

[38.6. Function Overloading](xfunc-overload.md)

[38.7. Function Volatility Categories](xfunc-volatility.md)

[38.8. Procedural Language Functions](xfunc-pl.md)

[38.9. Internal Functions](xfunc-internal.md)

[38.10. C-Language Functions](xfunc-c.md)

[38.11. User-defined Aggregates](xaggr.md)

[38.12. User-defined Types](xtypes.md)

[38.13. User-defined Operators](xoper.md)

[38.14. Operator Optimization Information](xoper-optimization.md)

[38.15. Interfacing Extensions To Indexes](xindex.md)

[38.16. Packaging Related Objects into an Extension](extend-extensions.md)

[38.17. Extension Building Infrastructure](extend-pgxs.md)

39. Triggers : 39.1. Overview of Trigger Behavior

[39.2. Visibility of Data Changes](trigger-datachanges.md)

[39.3. Writing Trigger Functions in C](trigger-interface.md)

[39.4. A Complete Trigger Example](trigger-example.md)

40. Event Triggers : 40.1. Overview of Event Trigger Behavior

[40.2. Event Trigger Firing Matrix](event-trigger-matrix.md)

[40.3. Writing Event Trigger Functions in C](event-trigger-interface.md)

[40.4. A Complete Event Trigger Example](event-trigger-example.md)

[40.5. A Table Rewrite Event Trigger Example](event-trigger-table-rewrite-example.md)

41. The Rule System : 41.1. The Query Tree

[41.2. Views and the Rule System](rules-views.md)

[41.3. Materialized Views](rules-materializedviews.md)

[41.4. Rules on `INSERT`, `UPDATE`, and `DELETE`](rules-update.md)

[41.5. Rules and Privileges](rules-privileges.md)

[41.6. Rules and Command Status](rules-status.md)

[41.7. Rules Versus Triggers](rules-triggers.md)

42. Procedural Languages : 42.1. Installing Procedural Languages

43. PL/pgSQL - SQL Procedural Language : 43.1. Overview

[43.2. Structure of PL/pgSQL](plpgsql-structure.md)

[43.3. Declarations](plpgsql-declarations.md)

[43.4. Expressions](plpgsql-expressions.md)

[43.5. Basic Statements](plpgsql-statements.md)

[43.6. Control Structures](plpgsql-control-structures.md)

[43.7. Cursors](plpgsql-cursors.md)

[43.8. Transaction Management](plpgsql-transactions.md)

[43.9. Errors and Messages](plpgsql-errors-and-messages.md)

[43.10. Trigger Functions](plpgsql-trigger.md)

[43.11. PL/pgSQL Under the Hood](plpgsql-implementation.md)

[43.12. Tips for Developing in PL/pgSQL](plpgsql-development-tips.md)

[43.13. Porting from Oracle PL/SQL](plpgsql-porting.md)

44. PL/Tcl - Tcl Procedural Language : 44.1. Overview

[44.2. PL/Tcl Functions and Arguments](pltcl-functions.md)

[44.3. Data Values in PL/Tcl](pltcl-data.md)

[44.4. Global Data in PL/Tcl](pltcl-global.md)

[44.5. Database Access from PL/Tcl](pltcl-dbaccess.md)

[44.6. Trigger Functions in PL/Tcl](pltcl-trigger.md)

[44.7. Event Trigger Functions in PL/Tcl](pltcl-event-trigger.md)

[44.8. Error Handling in PL/Tcl](pltcl-error-handling.md)

[44.9. Explicit Subtransactions in PL/Tcl](pltcl-subtransactions.md)

[44.10. Transaction Management](pltcl-transactions.md)

[44.11. PL/Tcl Configuration](pltcl-config.md)

[44.12. Tcl Procedure Names](pltcl-procnames.md)

45. PL/Perl - Perl Procedural Language : 45.1. PL/Perl Functions and Arguments

[45.2. Data Values in PL/Perl](plperl-data.md)

[45.3. Built-in Functions](plperl-builtins.md)

[45.4. Global Values in PL/Perl](plperl-global.md)

[45.5. Trusted and Untrusted PL/Perl](plperl-trusted.md)

[45.6. PL/Perl Triggers](plperl-triggers.md)

[45.7. PL/Perl Event Triggers](plperl-event-triggers.md)

[45.8. PL/Perl Under the Hood](plperl-under-the-hood.md)

46. PL/Python - Python Procedural Language : 46.1. Python 2 vs. Python 3

[46.2. PL/Python Functions](plpython-funcs.md)

[46.3. Data Values](plpython-data.md)

[46.4. Sharing Data](plpython-sharing.md)

[46.5. Anonymous Code Blocks](plpython-do.md)

[46.6. Trigger Functions](plpython-trigger.md)

[46.7. Database Access](plpython-database.md)

[46.8. Explicit Subtransactions](plpython-subtransaction.md)

[46.9. Transaction Management](plpython-transactions.md)

[46.10. Utility Functions](plpython-util.md)

[46.11. Environment Variables](plpython-envar.md)

47. Server Programming Interface : 47.1. Interface Functions

[47.2. Interface Support Functions](spi-interface-support.md)

[47.3. Memory Management](spi-memory.md)

[47.4. Transaction Management](spi-transaction.md)

[47.5. Visibility of Data Changes](spi-visibility.md)

[47.6. Examples](spi-examples.md)

48. Background Worker Processes

49. Logical Decoding : 49.1. Logical Decoding Examples

[49.2. Logical Decoding Concepts](logicaldecoding-explanation.md)

[49.3. Streaming Replication Protocol Interface](logicaldecoding-walsender.md)

[49.4. Logical Decoding SQL Interface](logicaldecoding-sql.md)

[49.5. System Catalogs Related to Logical Decoding](logicaldecoding-catalogs.md)

[49.6. Logical Decoding Output Plugins](logicaldecoding-output-plugin.md)

[49.7. Logical Decoding Output Writers](logicaldecoding-writer.md)

[49.8. Synchronous Replication Support for Logical Decoding](logicaldecoding-synchronous.md)

50. Replication Progress Tracking