aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/cache/syscache.c
diff options
context:
space:
mode:
authorTatsuo Ishii <ishii@postgresql.org>2002-07-11 07:39:28 +0000
committerTatsuo Ishii <ishii@postgresql.org>2002-07-11 07:39:28 +0000
commitfcc962566a7cf0461778c97ef713fa4855303dfe (patch)
tree507fb3d31a7cba6a6258b40ec5c9364f3ec9a3a6 /src/backend/utils/cache/syscache.c
parentf2bb1cfa85eba18b185c8883a8da6077f7888ec2 (diff)
downloadpostgresql-fcc962566a7cf0461778c97ef713fa4855303dfe.tar.gz
postgresql-fcc962566a7cf0461778c97ef713fa4855303dfe.zip
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/utils/cache/syscache.c')
-rw-r--r--src/backend/utils/cache/syscache.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/backend/utils/cache/syscache.c b/src/backend/utils/cache/syscache.c
index e409ab7bc8e..a724a0874ee 100644
--- a/src/backend/utils/cache/syscache.c
+++ b/src/backend/utils/cache/syscache.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/cache/syscache.c,v 1.80 2002/06/20 20:29:39 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/cache/syscache.c,v 1.81 2002/07/11 07:39:27 ishii Exp $
*
* NOTES
* These routines allow the parser/planner/executor to perform
@@ -28,6 +28,7 @@
#include "catalog/pg_aggregate.h"
#include "catalog/pg_amop.h"
#include "catalog/pg_amproc.h"
+#include "catalog/pg_conversion.h"
#include "catalog/pg_group.h"
#include "catalog/pg_index.h"
#include "catalog/pg_inherits.h"
@@ -193,6 +194,16 @@ static const struct cachedesc cacheinfo[] = {
0,
0
}},
+ {ConversionRelationName, /* CONNAMENSP */
+ ConversionNameNspIndex,
+ 0,
+ 2,
+ {
+ Anum_pg_conversion_conname,
+ Anum_pg_conversion_connamespace,
+ 0,
+ 0
+ }},
{GroupRelationName, /* GRONAME */
GroupNameIndex,
0,