the dynamic loader loads the function's object code into memory,
and links the function with the running
Postgres executable. The SQL syntax
- for the
- endterm="sql-createfunction-title"> command links the SQL function
+ for CREATE FUNCTION
+ links the SQL function
to the C source function in one of two ways. If the SQL function
has the same name as the C source function the first form of the
statement is used. The string argument in the AS clause is the
for. This link symbol is just the function name in the C source
code.
- After it is used for the first time, a dynamically loaded, user
- function is retained in memory, and future calls to the function
- only incur the small overhead of a symbol table lookup.
+
+ After it is used for the first time, a dynamically loaded, user
+ function is retained in memory, and future calls to the function
+ only incur the small overhead of a symbol table lookup.
+
+
As of
Postgres v6.6, the alternative
- form of the AS clause for the SQL CREATE
- FUNCTION command described in
- linkend="sql-createfunction-title" endterm="sql-createfunction-title">
- decouples the SQL function name from the function name in the C
- source code. This is now the preferred technique to accomplish
- function overloading.
+ form of the AS clause for the SQL
+ CREATE FUNCTION command
+ decouples the SQL function name from the function name in the C
+ source code. This is now the preferred technique to accomplish
+ function overloading.