pg_get_functiondef
ivorysql · Get function’s definition
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 9170 | pg_get_functiondef | ivorysql | 1.0 | SIM | Apache-2.0 | C |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --s-dt- | No | Yes | No | Yes | no | yes |
| Relationships | |
|---|---|
| See Also | ddlx pg_readme pg_dbms_metadata pgdd meta pg_render pg_catcheck schedoc pg_query_rewrite pgpdf |
| Siblings | ivorysql_ora ora_btree_gin ora_btree_gist plisql gb18030_2022 |
Packages
| Linux / PG | PG19 | PG18 | PG17 | PG16 | PG15 |
|---|---|---|---|---|---|
| el8.x86_64 | PIGSTY 6.0 | PIGSTY 5.6 | N/A | N/A | N/A |
| el8.aarch64 | PIGSTY 6.0 | PIGSTY 5.6 | N/A | N/A | N/A |
| el9.x86_64 | PIGSTY 6.0 | PIGSTY 5.6 | N/A | N/A | N/A |
| el9.aarch64 | PIGSTY 6.0 | PIGSTY 5.6 | N/A | N/A | N/A |
| el10.x86_64 | PIGSTY 6.0 | PIGSTY 5.6 | N/A | N/A | N/A |
| el10.aarch64 | PIGSTY 6.0 | PIGSTY 5.6 | N/A | N/A | N/A |
| d12.x86_64 | PIGSTY 6.0 | PIGSTY 5.6 | N/A | N/A | N/A |
| d12.aarch64 | PIGSTY 6.0 | PIGSTY 5.6 | N/A | N/A | N/A |
| d13.x86_64 | PIGSTY 6.0 | PIGSTY 5.6 | N/A | N/A | N/A |
| d13.aarch64 | PIGSTY 6.0 | PIGSTY 5.6 | N/A | N/A | N/A |
| u22.x86_64 | PIGSTY 6.0 | PIGSTY 5.6 | N/A | N/A | N/A |
| u22.aarch64 | PIGSTY 6.0 | PIGSTY 5.6 | N/A | N/A | N/A |
| u24.x86_64 | PIGSTY 6.0 | PIGSTY 5.6 | N/A | N/A | N/A |
| u24.aarch64 | PIGSTY 6.0 | PIGSTY 5.6 | N/A | N/A | N/A |
| u26.x86_64 | PIGSTY 6.0 | PIGSTY 5.6 | N/A | N/A | N/A |
| u26.aarch64 | PIGSTY 6.0 | PIGSTY 5.6 | N/A | N/A | N/A |
Source
github.com/IvorySQL/IvorySQL/tree/2269591ea327cbf99e7db6f518ec6ecf67cdadee/contrib/pg_get_functiondef
ivorysql-6.0.tar.gz
ivorysql-5.6.tar.gz
Install
Make sure PGDG and PIGSTY repo available:
Install this extension with pig:
Create this extension with:
Usage
Sources:
The extension adds overloads of pg_get_functiondef that can look up several function names or OIDs in one call. The text overload returns a name and its definition for each result.
IvorySQL 6.0 is based on PostgreSQL 19.0 and ships pg_get_functiondef at SQL version 1.0. The PG18 package uses IvorySQL 5.6.
The following query uses the variadic text overload installed by the extension.
For OIDs, the extension also installs pg_get_functiondef(oid, VARIADIC oid[]). The zero-argument overload reports an error asking for a name or OID. PostgreSQL already provides a single-OID function.