raminder-function_vc
In database version control for postgres functions
raminder-function_vc · In database version control for postgres functions
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101741 | raminder-function_vc | raminder-function_vc | 2.0.0 | ADMIN | Unknown | SQL |
Usage
Sources:
raminder-function_vc — In database version control for postgres functions. Use it when administering or automating the database behavior described above. Use the pinned upstream revision linked above as the API boundary and test it on the target PostgreSQL build.
Core Workflow
Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.
Important Objects
archive.save_function_history(function_name text, args text, return_type text, source_code text, schema_name text default 'public', lang_settings text default 'plpgsql')is an extension function and returnsvoid.archive.setup_function_history(schema_name text default 'public')is an extension function and returnsVOID.calculate_version()is an extension function and returnsTRIGGER.public.create_function_from_source(function_text text, schema_name text default 'public')is an extension function and returnstext.public.rollback_function(func_name text, schema_n text default 'public')is an extension function and returnstext.archive.function_historyis a table installed or managed by the extension.archiveis a schema created by the extension.before_insert_function_historyis an extension-defined trigger.
Requirements and Caveats
- The catalog records version
2.0.0. - This is a database.dev/pg_tle package; register or generate its package migration before issuing the quoted
CREATE EXTENSIONidentity. - Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.