diff options
author | Tatsuo Ishii <ishii@postgresql.org> | 2002-07-11 07:39:28 +0000 |
---|---|---|
committer | Tatsuo Ishii <ishii@postgresql.org> | 2002-07-11 07:39:28 +0000 |
commit | fcc962566a7cf0461778c97ef713fa4855303dfe (patch) | |
tree | 507fb3d31a7cba6a6258b40ec5c9364f3ec9a3a6 /src/backend/tcop/utility.c | |
parent | f2bb1cfa85eba18b185c8883a8da6077f7888ec2 (diff) |
Add new CREATE CONVERSION/DROP CONVERSION command.
This is the first cut toward CREATE CONVERSION/DROP CONVERSION implementaion.
The commands can now add/remove tuples to the new pg_conversion system
catalog, but that's all. Still need work to make them actually working.
Documentations, regression tests also need work.
Diffstat (limited to 'src/backend/tcop/utility.c')
-rw-r--r-- | src/backend/tcop/utility.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c index f5c38d071ed..e5e57d4a6de 100644 --- a/src/backend/tcop/utility.c +++ b/src/backend/tcop/utility.c @@ -10,7 +10,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.160 2002/07/01 15:27:56 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.161 2002/07/11 07:39:26 ishii Exp $ * *------------------------------------------------------------------------- */ @@ -24,6 +24,7 @@ #include "commands/cluster.h" #include "commands/comment.h" #include "commands/copy.h" +#include "commands/conversioncmds.h" #include "commands/dbcommands.h" #include "commands/defrem.h" #include "commands/explain.h" @@ -319,6 +320,11 @@ ProcessUtility(Node *parsetree, /* RemoveDomain does its own permissions checks */ RemoveDomain(names, stmt->behavior); break; + + case DROP_CONVERSION: + /* RemoveDomain does its own permissions checks */ + DropConversionCommand(names); + break; } /* @@ -823,6 +829,12 @@ ProcessUtility(Node *parsetree, } break; + case T_CreateConversionStmt: + { + CreateConversionCommand((CreateConversionStmt *) parsetree); + } + break; + default: elog(ERROR, "ProcessUtility: command #%d unsupported", nodeTag(parsetree)); |