diff options
| author | Peter Eisentraut | 2015-04-26 14:33:14 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2015-04-26 14:33:14 +0000 |
| commit | cac76582053ef8ea07df65fed0757f352da23705 (patch) | |
| tree | 6ae01041aa61db9d686638b9d4c3ccd30d7c6487 /src/include/commands/defrem.h | |
| parent | f320cbb615e0374b18836337713239da58705cf3 (diff) | |
Add transforms feature
This provides a mechanism for specifying conversions between SQL data
types and procedural languages. As examples, there are transforms
for hstore and ltree for PL/Perl and PL/Python.
reviews by Pavel Stěhule and Andres Freund
Diffstat (limited to 'src/include/commands/defrem.h')
| -rw-r--r-- | src/include/commands/defrem.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/commands/defrem.h b/src/include/commands/defrem.h index 595f93f79a5..335f09cba4c 100644 --- a/src/include/commands/defrem.h +++ b/src/include/commands/defrem.h @@ -50,10 +50,13 @@ extern void SetFunctionArgType(Oid funcOid, int argIndex, Oid newArgType); extern ObjectAddress AlterFunction(AlterFunctionStmt *stmt); extern ObjectAddress CreateCast(CreateCastStmt *stmt); extern void DropCastById(Oid castOid); +extern Oid CreateTransform(CreateTransformStmt *stmt); +extern void DropTransformById(Oid transformOid); extern void IsThereFunctionInNamespace(const char *proname, int pronargs, oidvector *proargtypes, Oid nspOid); extern void ExecuteDoStmt(DoStmt *stmt); extern Oid get_cast_oid(Oid sourcetypeid, Oid targettypeid, bool missing_ok); +extern Oid get_transform_oid(Oid type_id, Oid lang_id, bool missing_ok); extern void interpret_function_parameter_list(List *parameters, Oid languageOid, bool is_aggregate, |
