From fcc962566a7cf0461778c97ef713fa4855303dfe Mon Sep 17 00:00:00 2001 From: Tatsuo Ishii Date: Thu, 11 Jul 2002 07:39:28 +0000 Subject: 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. --- src/backend/tcop/utility.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/backend/tcop/utility.c') diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c index f5c38d071e..e5e57d4a6d 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)); -- cgit v1.2.1